File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,3 +11,4 @@ export * from './optional'
1111export * from './instanceOfGuard'
1212export * from './unknown'
1313export * from './never'
14+ export * from './json'
Original file line number Diff line number Diff line change @@ -14,3 +14,4 @@ export * from './dictionary'
1414export * from './parseNumberFromString'
1515export * from './formatting'
1616export * from './ParseResult'
17+ export * from './json'
Original file line number Diff line number Diff line change 1+ // Tests that everthing is exported
2+
3+ // Primitives
4+ import {
5+ parseString ,
6+ parseNumber ,
7+ parseBoolean ,
8+ parseBigInt ,
9+ parseSymbol ,
10+ parseNull ,
11+ parseUndefined ,
12+ parseUnknown ,
13+ parseNever ,
14+ isString ,
15+ isNumber ,
16+ isBoolean ,
17+ isBigInt ,
18+ isSymbol ,
19+ isArray ,
20+ isObject ,
21+ isUndefined ,
22+ isNull ,
23+ isUnknown ,
24+ isNever ,
25+ } from 'pure-parse'
26+
27+ // JSON
28+ import { JsonValue , parseJson , isJsonValue } from 'pure-parse'
29+
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+
51+ // @ts -expect-error -- test that importing something that doesn't exist gives an error
52+ import { abcSomethingThatDoesNotExist } from 'pure-parse'
Original file line number Diff line number Diff line change 1515
1616 /* Linting */
1717 "strict" : true ,
18- "noUnusedLocals" : true ,
18+ "noUnusedLocals" : false ,
1919 "noUnusedParameters" : true ,
2020 "noFallthroughCasesInSwitch" : true
2121 },
You can’t perform that action at this time.
0 commit comments