Skip to content

Commit 5c7d20e

Browse files
chore: add higher order parsers and guards to exports
1 parent 7835c8e commit 5c7d20e

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

packages/test-app/src/exports.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,26 @@ import {
2727
// JSON
2828
import { JsonValue, parseJson, isJsonValue } from 'pure-parse'
2929

30+
// Higher order parsers
31+
import {
32+
array,
33+
object,
34+
oneOf,
35+
optional,
36+
withDefault,
37+
equals,
38+
map,
39+
chain,
40+
recover,
41+
} from 'pure-parse'
42+
43+
// Higher order guards
44+
import {
45+
equalsGuard,
46+
objectGuard,
47+
arrayGuard,
48+
optionalGuard,
49+
} from 'pure-parse'
50+
3051
// @ts-expect-error -- test that importing something that doesn't exist gives an error
3152
import { abcSomethingThatDoesNotExist } from 'pure-parse'

0 commit comments

Comments
 (0)