@duplojs/utils 1.2.16 → 1.2.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/array/chunk.cjs +16 -0
- package/dist/array/chunk.d.ts +2 -0
- package/dist/array/chunk.mjs +14 -0
- package/dist/array/index.cjs +30 -28
- package/dist/array/index.d.ts +1 -0
- package/dist/array/index.mjs +15 -14
- package/dist/array/reduce.cjs +0 -27
- package/dist/array/reduce.mjs +0 -27
- package/dist/array/reduceRight.cjs +0 -27
- package/dist/array/reduceRight.mjs +0 -27
- package/dist/common/createKindIdentifier.cjs +1 -26
- package/dist/common/createKindIdentifier.mjs +1 -26
- package/dist/common/instanceOf.cjs +0 -27
- package/dist/common/instanceOf.mjs +0 -27
- package/dist/common/override.cjs +1 -26
- package/dist/common/override.mjs +1 -26
- package/dist/dataParser/base.cjs +3 -27
- package/dist/dataParser/base.mjs +3 -27
- package/dist/dataParser/baseExtended.cjs +9 -71
- package/dist/dataParser/baseExtended.d.ts +4 -4
- package/dist/dataParser/baseExtended.mjs +9 -71
- package/dist/dataParser/extended/array.cjs +1 -48
- package/dist/dataParser/extended/array.d.ts +3 -3
- package/dist/dataParser/extended/array.mjs +1 -48
- package/dist/dataParser/extended/bigint.cjs +1 -48
- package/dist/dataParser/extended/bigint.d.ts +2 -2
- package/dist/dataParser/extended/bigint.mjs +1 -48
- package/dist/dataParser/extended/boolean.cjs +1 -48
- package/dist/dataParser/extended/boolean.d.ts +2 -2
- package/dist/dataParser/extended/boolean.mjs +1 -48
- package/dist/dataParser/extended/coerce/bigint.cjs +0 -21
- package/dist/dataParser/extended/coerce/bigint.mjs +0 -21
- package/dist/dataParser/extended/coerce/boolean.cjs +0 -21
- package/dist/dataParser/extended/coerce/boolean.mjs +0 -21
- package/dist/dataParser/extended/coerce/date.cjs +0 -21
- package/dist/dataParser/extended/coerce/date.mjs +0 -21
- package/dist/dataParser/extended/coerce/empty.cjs +0 -21
- package/dist/dataParser/extended/coerce/empty.mjs +0 -21
- package/dist/dataParser/extended/coerce/nil.cjs +0 -21
- package/dist/dataParser/extended/coerce/nil.mjs +0 -21
- package/dist/dataParser/extended/coerce/number.cjs +0 -21
- package/dist/dataParser/extended/coerce/number.mjs +0 -21
- package/dist/dataParser/extended/coerce/string.cjs +0 -21
- package/dist/dataParser/extended/coerce/string.mjs +0 -21
- package/dist/dataParser/extended/date.cjs +1 -48
- package/dist/dataParser/extended/date.d.ts +3 -2
- package/dist/dataParser/extended/date.mjs +1 -48
- package/dist/dataParser/extended/empty.cjs +1 -48
- package/dist/dataParser/extended/empty.d.ts +2 -2
- package/dist/dataParser/extended/empty.mjs +1 -48
- package/dist/dataParser/extended/lazy.cjs +1 -48
- package/dist/dataParser/extended/lazy.d.ts +3 -3
- package/dist/dataParser/extended/lazy.mjs +1 -48
- package/dist/dataParser/extended/literal.cjs +1 -48
- package/dist/dataParser/extended/literal.d.ts +2 -2
- package/dist/dataParser/extended/literal.mjs +1 -48
- package/dist/dataParser/extended/nil.cjs +1 -48
- package/dist/dataParser/extended/nil.d.ts +2 -2
- package/dist/dataParser/extended/nil.mjs +1 -48
- package/dist/dataParser/extended/nullable.cjs +1 -48
- package/dist/dataParser/extended/nullable.d.ts +3 -3
- package/dist/dataParser/extended/nullable.mjs +1 -48
- package/dist/dataParser/extended/number.cjs +1 -48
- package/dist/dataParser/extended/number.d.ts +2 -2
- package/dist/dataParser/extended/number.mjs +1 -48
- package/dist/dataParser/extended/object.cjs +5 -52
- package/dist/dataParser/extended/object.d.ts +2 -2
- package/dist/dataParser/extended/object.mjs +5 -52
- package/dist/dataParser/extended/optional.cjs +1 -48
- package/dist/dataParser/extended/optional.d.ts +3 -3
- package/dist/dataParser/extended/optional.mjs +1 -48
- package/dist/dataParser/extended/pipe.cjs +1 -48
- package/dist/dataParser/extended/pipe.d.ts +3 -3
- package/dist/dataParser/extended/pipe.mjs +1 -48
- package/dist/dataParser/extended/record.cjs +1 -48
- package/dist/dataParser/extended/record.d.ts +3 -3
- package/dist/dataParser/extended/record.mjs +1 -48
- package/dist/dataParser/extended/recover.cjs +1 -48
- package/dist/dataParser/extended/recover.d.ts +3 -3
- package/dist/dataParser/extended/recover.mjs +1 -48
- package/dist/dataParser/extended/string.cjs +1 -48
- package/dist/dataParser/extended/string.d.ts +2 -2
- package/dist/dataParser/extended/string.mjs +1 -48
- package/dist/dataParser/extended/templateLiteral.cjs +1 -48
- package/dist/dataParser/extended/templateLiteral.d.ts +2 -2
- package/dist/dataParser/extended/templateLiteral.mjs +1 -48
- package/dist/dataParser/extended/transform.cjs +1 -48
- package/dist/dataParser/extended/transform.d.ts +3 -3
- package/dist/dataParser/extended/transform.mjs +1 -48
- package/dist/dataParser/extended/tuple.cjs +1 -48
- package/dist/dataParser/extended/tuple.d.ts +3 -3
- package/dist/dataParser/extended/tuple.mjs +1 -48
- package/dist/dataParser/extended/union.cjs +1 -48
- package/dist/dataParser/extended/union.d.ts +3 -3
- package/dist/dataParser/extended/union.mjs +1 -48
- package/dist/dataParser/extended/unknown.cjs +1 -48
- package/dist/dataParser/extended/unknown.d.ts +2 -2
- package/dist/dataParser/extended/unknown.mjs +1 -48
- package/dist/dataParser/identifier.cjs +0 -5
- package/dist/dataParser/identifier.d.ts +6 -156
- package/dist/dataParser/identifier.mjs +0 -5
- package/dist/dataParser/index.cjs +52 -52
- package/dist/dataParser/index.mjs +19 -19
- package/dist/dataParser/kind.cjs +0 -27
- package/dist/dataParser/kind.mjs +0 -27
- package/dist/dataParser/parsers/array/index.cjs +1 -33
- package/dist/dataParser/parsers/array/index.mjs +1 -29
- package/dist/dataParser/parsers/bigint/index.cjs +1 -33
- package/dist/dataParser/parsers/bigint/index.mjs +1 -29
- package/dist/dataParser/parsers/boolean.cjs +1 -27
- package/dist/dataParser/parsers/boolean.mjs +1 -27
- package/dist/dataParser/parsers/coerce/bigint.cjs +0 -21
- package/dist/dataParser/parsers/coerce/bigint.mjs +0 -21
- package/dist/dataParser/parsers/coerce/boolean.cjs +0 -21
- package/dist/dataParser/parsers/coerce/boolean.mjs +0 -21
- package/dist/dataParser/parsers/coerce/date.cjs +0 -21
- package/dist/dataParser/parsers/coerce/date.mjs +0 -21
- package/dist/dataParser/parsers/coerce/empty.cjs +0 -21
- package/dist/dataParser/parsers/coerce/empty.mjs +0 -21
- package/dist/dataParser/parsers/coerce/nil.cjs +0 -21
- package/dist/dataParser/parsers/coerce/nil.mjs +0 -21
- package/dist/dataParser/parsers/coerce/number.cjs +0 -21
- package/dist/dataParser/parsers/coerce/number.mjs +0 -21
- package/dist/dataParser/parsers/coerce/string.cjs +0 -21
- package/dist/dataParser/parsers/coerce/string.mjs +0 -21
- package/dist/dataParser/parsers/date.cjs +2 -31
- package/dist/dataParser/parsers/date.mjs +2 -31
- package/dist/dataParser/parsers/empty.cjs +1 -27
- package/dist/dataParser/parsers/empty.mjs +1 -27
- package/dist/dataParser/parsers/lazy.cjs +2 -28
- package/dist/dataParser/parsers/lazy.mjs +2 -28
- package/dist/dataParser/parsers/literal.cjs +2 -28
- package/dist/dataParser/parsers/literal.mjs +2 -28
- package/dist/dataParser/parsers/nil.cjs +1 -27
- package/dist/dataParser/parsers/nil.mjs +1 -27
- package/dist/dataParser/parsers/nullable.cjs +1 -27
- package/dist/dataParser/parsers/nullable.mjs +1 -27
- package/dist/dataParser/parsers/number/index.cjs +1 -37
- package/dist/dataParser/parsers/number/index.mjs +1 -30
- package/dist/dataParser/parsers/object/index.cjs +7 -33
- package/dist/dataParser/parsers/object/index.mjs +7 -33
- package/dist/dataParser/parsers/object/omit.cjs +2 -29
- package/dist/dataParser/parsers/object/omit.mjs +2 -29
- package/dist/dataParser/parsers/object/pick.cjs +2 -29
- package/dist/dataParser/parsers/object/pick.mjs +2 -29
- package/dist/dataParser/parsers/optional.cjs +1 -27
- package/dist/dataParser/parsers/optional.mjs +1 -27
- package/dist/dataParser/parsers/pipe.cjs +1 -27
- package/dist/dataParser/parsers/pipe.mjs +1 -27
- package/dist/dataParser/parsers/record/findRecordRequiredKey.cjs +17 -46
- package/dist/dataParser/parsers/record/findRecordRequiredKey.mjs +17 -46
- package/dist/dataParser/parsers/record/index.cjs +1 -27
- package/dist/dataParser/parsers/record/index.mjs +1 -27
- package/dist/dataParser/parsers/recover.cjs +1 -27
- package/dist/dataParser/parsers/recover.mjs +1 -27
- package/dist/dataParser/parsers/string/index.cjs +1 -44
- package/dist/dataParser/parsers/string/index.mjs +1 -32
- package/dist/dataParser/parsers/templateLiteral/createTemplateLiteralPattern.cjs +14 -43
- package/dist/dataParser/parsers/templateLiteral/createTemplateLiteralPattern.mjs +14 -43
- package/dist/dataParser/parsers/templateLiteral/index.cjs +2 -28
- package/dist/dataParser/parsers/templateLiteral/index.mjs +2 -28
- package/dist/dataParser/parsers/transform.cjs +1 -27
- package/dist/dataParser/parsers/transform.mjs +1 -27
- package/dist/dataParser/parsers/tuple.cjs +1 -27
- package/dist/dataParser/parsers/tuple.mjs +1 -27
- package/dist/dataParser/parsers/union.cjs +1 -27
- package/dist/dataParser/parsers/union.mjs +1 -27
- package/dist/dataParser/parsers/unknown.cjs +1 -27
- package/dist/dataParser/parsers/unknown.mjs +1 -27
- package/dist/date/create.cjs +0 -25
- package/dist/date/create.mjs +0 -25
- package/dist/date/createOrThrow.cjs +2 -29
- package/dist/date/createOrThrow.mjs +2 -29
- package/dist/date/getters/getDayOfMonth.cjs +0 -30
- package/dist/date/getters/getDayOfMonth.mjs +0 -30
- package/dist/date/getters/getDayOfWeek.cjs +0 -30
- package/dist/date/getters/getDayOfWeek.mjs +0 -30
- package/dist/date/getters/getDayOfYear.cjs +0 -30
- package/dist/date/getters/getDayOfYear.mjs +0 -30
- package/dist/date/getters/getHour.cjs +0 -30
- package/dist/date/getters/getHour.mjs +0 -30
- package/dist/date/getters/getMilliseconds.cjs +0 -30
- package/dist/date/getters/getMilliseconds.mjs +0 -30
- package/dist/date/getters/getMinute.cjs +0 -30
- package/dist/date/getters/getMinute.mjs +0 -30
- package/dist/date/getters/getMonth.cjs +0 -30
- package/dist/date/getters/getMonth.mjs +0 -30
- package/dist/date/getters/getSecond.cjs +0 -30
- package/dist/date/getters/getSecond.mjs +0 -30
- package/dist/date/getters/getWeekOfYear.cjs +0 -30
- package/dist/date/getters/getWeekOfYear.mjs +0 -30
- package/dist/date/getters/getYear.cjs +0 -30
- package/dist/date/getters/getYear.mjs +0 -30
- package/dist/date/index.cjs +15 -15
- package/dist/date/index.mjs +7 -7
- package/dist/date/toTimestamp.cjs +2 -29
- package/dist/date/toTimestamp.mjs +2 -29
- package/dist/either/bool/falsy.cjs +3 -26
- package/dist/either/bool/falsy.mjs +3 -26
- package/dist/either/bool/truthy.cjs +5 -28
- package/dist/either/bool/truthy.mjs +5 -28
- package/dist/either/future/create.cjs +2 -27
- package/dist/either/future/create.mjs +2 -27
- package/dist/either/future/error.cjs +2 -25
- package/dist/either/future/error.mjs +2 -25
- package/dist/either/future/success.cjs +0 -23
- package/dist/either/future/success.mjs +0 -23
- package/dist/either/index.cjs +7 -7
- package/dist/either/index.mjs +3 -3
- package/dist/either/kind.cjs +0 -26
- package/dist/either/kind.mjs +0 -26
- package/dist/either/left/when.cjs +1 -28
- package/dist/either/left/when.mjs +1 -28
- package/dist/either/nullable/empty.cjs +4 -27
- package/dist/either/nullable/empty.mjs +4 -27
- package/dist/either/nullable/filled.cjs +4 -27
- package/dist/either/nullable/filled.mjs +4 -27
- package/dist/either/nullish/empty.cjs +4 -27
- package/dist/either/nullish/empty.mjs +4 -27
- package/dist/either/nullish/filled.cjs +4 -27
- package/dist/either/nullish/filled.mjs +4 -27
- package/dist/either/optional/empty.cjs +0 -23
- package/dist/either/optional/empty.mjs +0 -23
- package/dist/either/optional/filled.cjs +6 -29
- package/dist/either/optional/filled.mjs +6 -29
- package/dist/either/right/asyncPipe.cjs +3 -29
- package/dist/either/right/asyncPipe.mjs +3 -29
- package/dist/either/right/pipe.cjs +2 -28
- package/dist/either/right/pipe.mjs +2 -28
- package/dist/either/right/when.cjs +1 -28
- package/dist/either/right/when.mjs +1 -28
- package/dist/either/whenHasInformation.cjs +2 -28
- package/dist/either/whenHasInformation.mjs +2 -28
- package/dist/generator/asyncReduce.cjs +0 -27
- package/dist/generator/asyncReduce.mjs +0 -27
- package/dist/generator/chunk.cjs +24 -0
- package/dist/generator/chunk.d.ts +2 -0
- package/dist/generator/chunk.mjs +22 -0
- package/dist/generator/index.cjs +2 -0
- package/dist/generator/index.d.ts +1 -0
- package/dist/generator/index.mjs +1 -0
- package/dist/generator/reduce.cjs +0 -27
- package/dist/generator/reduce.mjs +0 -27
- package/dist/index.cjs +33 -33
- package/dist/index.mjs +33 -33
- package/dist/object/deepDiscriminate.cjs +1 -28
- package/dist/object/deepDiscriminate.mjs +1 -28
- package/dist/object/discriminate.cjs +0 -27
- package/dist/object/discriminate.mjs +0 -27
- package/dist/object/entries.cjs +1 -28
- package/dist/object/entries.mjs +1 -28
- package/dist/object/keys.cjs +1 -28
- package/dist/object/keys.mjs +1 -28
- package/dist/object/values.cjs +1 -28
- package/dist/object/values.mjs +1 -28
- package/dist/pattern/exhaustive.cjs +0 -27
- package/dist/pattern/exhaustive.mjs +0 -27
- package/dist/pattern/index.cjs +2 -2
- package/dist/pattern/index.mjs +1 -1
- package/dist/pattern/match/builder.cjs +2 -28
- package/dist/pattern/match/builder.mjs +2 -28
- package/dist/pattern/match/index.d.ts +3 -3
- package/dist/pattern/otherwise.cjs +1 -28
- package/dist/pattern/otherwise.mjs +1 -28
- package/dist/pattern/result.cjs +0 -27
- package/dist/pattern/result.mjs +0 -27
- package/dist/pattern/when.d.ts +5 -5
- package/dist/string/index.cjs +12 -12
- package/dist/string/index.mjs +6 -6
- package/package.json +2 -1
|
@@ -1,53 +1,6 @@
|
|
|
1
|
-
import '../../common/stringToBytes.mjs';
|
|
2
|
-
import '../../common/stringToMillisecond.mjs';
|
|
3
|
-
import '../../common/globalStore.mjs';
|
|
4
|
-
import '../../common/builder.mjs';
|
|
5
|
-
import '../../either/bool/falsy.mjs';
|
|
6
|
-
import '../../either/bool/truthy.mjs';
|
|
7
|
-
import '../../either/bool/base.mjs';
|
|
8
|
-
import '../../either/left/create.mjs';
|
|
9
|
-
import '../../either/left/error.mjs';
|
|
10
|
-
import '../../either/left/fail.mjs';
|
|
11
|
-
import '../../either/kind.mjs';
|
|
12
|
-
import '../../either/right/success.mjs';
|
|
13
|
-
import '../../either/right/create.mjs';
|
|
14
|
-
import '../../either/right/ok.mjs';
|
|
15
|
-
import '../../either/future/success.mjs';
|
|
16
|
-
import '../../either/future/error.mjs';
|
|
17
|
-
import '../../either/future/base.mjs';
|
|
18
|
-
import '../../either/nullable/empty.mjs';
|
|
19
|
-
import '../../either/nullable/filled.mjs';
|
|
20
|
-
import '../../either/nullable/base.mjs';
|
|
21
|
-
import '../../either/nullish/empty.mjs';
|
|
22
|
-
import '../../either/nullish/filled.mjs';
|
|
23
|
-
import '../../either/nullish/base.mjs';
|
|
24
|
-
import '../../either/optional/empty.mjs';
|
|
25
|
-
import '../../either/optional/filled.mjs';
|
|
26
|
-
import '../../either/optional/base.mjs';
|
|
27
|
-
import { createOverride } from '../../common/override.mjs';
|
|
28
1
|
import { dataParserExtendedInit } from '../baseExtended.mjs';
|
|
29
|
-
import '../parsers/string/index.mjs';
|
|
30
|
-
import '../parsers/object/index.mjs';
|
|
31
|
-
import '../parsers/number/index.mjs';
|
|
32
|
-
import '../parsers/date.mjs';
|
|
33
|
-
import '../parsers/literal.mjs';
|
|
34
|
-
import '../parsers/union.mjs';
|
|
35
|
-
import '../parsers/array/index.mjs';
|
|
36
|
-
import '../parsers/bigint/index.mjs';
|
|
37
|
-
import '../parsers/tuple.mjs';
|
|
38
|
-
import '../parsers/transform.mjs';
|
|
39
|
-
import '../parsers/nil.mjs';
|
|
40
|
-
import '../parsers/boolean.mjs';
|
|
41
|
-
import '../parsers/empty.mjs';
|
|
42
|
-
import '../parsers/templateLiteral/index.mjs';
|
|
43
|
-
import '../parsers/pipe.mjs';
|
|
44
|
-
import '../parsers/optional.mjs';
|
|
45
|
-
import '../parsers/nullable.mjs';
|
|
46
|
-
import '../parsers/lazy.mjs';
|
|
47
|
-
import '../parsers/unknown.mjs';
|
|
48
|
-
import '../parsers/record/index.mjs';
|
|
49
|
-
import '../parsers/refine.mjs';
|
|
50
2
|
import { recover as recover$1 } from '../parsers/recover.mjs';
|
|
3
|
+
import { createOverride } from '../../common/override.mjs';
|
|
51
4
|
|
|
52
5
|
function recover(inner, recoveredValue, definition) {
|
|
53
6
|
const self = dataParserExtendedInit(recover$1(inner, recoveredValue, definition), {});
|
|
@@ -1,60 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
require('../../common/stringToBytes.cjs');
|
|
4
|
-
require('../../common/stringToMillisecond.cjs');
|
|
5
|
-
require('../../common/globalStore.cjs');
|
|
6
|
-
require('../../common/builder.cjs');
|
|
7
|
-
require('../../either/bool/falsy.cjs');
|
|
8
|
-
require('../../either/bool/truthy.cjs');
|
|
9
|
-
require('../../either/bool/base.cjs');
|
|
10
|
-
require('../../either/left/create.cjs');
|
|
11
|
-
require('../../either/left/error.cjs');
|
|
12
|
-
require('../../either/left/fail.cjs');
|
|
13
|
-
require('../../either/kind.cjs');
|
|
14
|
-
require('../../either/right/success.cjs');
|
|
15
|
-
require('../../either/right/create.cjs');
|
|
16
|
-
require('../../either/right/ok.cjs');
|
|
17
|
-
require('../../either/future/success.cjs');
|
|
18
|
-
require('../../either/future/error.cjs');
|
|
19
|
-
require('../../either/future/base.cjs');
|
|
20
|
-
require('../../either/nullable/empty.cjs');
|
|
21
|
-
require('../../either/nullable/filled.cjs');
|
|
22
|
-
require('../../either/nullable/base.cjs');
|
|
23
|
-
require('../../either/nullish/empty.cjs');
|
|
24
|
-
require('../../either/nullish/filled.cjs');
|
|
25
|
-
require('../../either/nullish/base.cjs');
|
|
26
|
-
require('../../either/optional/empty.cjs');
|
|
27
|
-
require('../../either/optional/filled.cjs');
|
|
28
|
-
require('../../either/optional/base.cjs');
|
|
29
|
-
var override = require('../../common/override.cjs');
|
|
30
3
|
var baseExtended = require('../baseExtended.cjs');
|
|
31
4
|
var index = require('../parsers/string/index.cjs');
|
|
32
|
-
require('../parsers/object/index.cjs');
|
|
33
|
-
require('../parsers/number/index.cjs');
|
|
34
|
-
require('../parsers/date.cjs');
|
|
35
|
-
require('../parsers/literal.cjs');
|
|
36
|
-
require('../parsers/union.cjs');
|
|
37
|
-
require('../parsers/array/index.cjs');
|
|
38
|
-
require('../parsers/bigint/index.cjs');
|
|
39
|
-
require('../parsers/tuple.cjs');
|
|
40
|
-
require('../parsers/transform.cjs');
|
|
41
|
-
require('../parsers/nil.cjs');
|
|
42
|
-
require('../parsers/boolean.cjs');
|
|
43
|
-
require('../parsers/empty.cjs');
|
|
44
|
-
require('../parsers/templateLiteral/index.cjs');
|
|
45
|
-
require('../parsers/pipe.cjs');
|
|
46
|
-
require('../parsers/optional.cjs');
|
|
47
|
-
require('../parsers/nullable.cjs');
|
|
48
|
-
require('../parsers/lazy.cjs');
|
|
49
|
-
require('../parsers/unknown.cjs');
|
|
50
|
-
require('../parsers/record/index.cjs');
|
|
51
|
-
require('../parsers/refine.cjs');
|
|
52
|
-
require('../parsers/recover.cjs');
|
|
53
5
|
var email$1 = require('../parsers/string/checkers/email.cjs');
|
|
54
6
|
var url$1 = require('../parsers/string/checkers/url.cjs');
|
|
55
7
|
var regex = require('../parsers/string/checkers/regex.cjs');
|
|
56
8
|
var max = require('../parsers/string/checkers/max.cjs');
|
|
57
9
|
var min = require('../parsers/string/checkers/min.cjs');
|
|
10
|
+
var override = require('../../common/override.cjs');
|
|
58
11
|
|
|
59
12
|
function string(definition) {
|
|
60
13
|
const self = baseExtended.dataParserExtendedInit(index.string(definition), {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { type FixDeepFunctionInfer, type NeverCoalescing } from "../../common";
|
|
1
|
+
import { type FixDeepFunctionInfer, type Kind, type NeverCoalescing } from "../../common";
|
|
2
2
|
import { type DataParserExtended } from "../baseExtended";
|
|
3
3
|
import { type AddCheckersToDefinition, type MergeDefinition } from "../types";
|
|
4
4
|
import * as dataParsers from "../parsers";
|
|
5
5
|
import { type Output } from "../base";
|
|
6
|
-
type _DataParserStringExtended<GenericDefinition extends dataParsers.DataParserDefinitionString> = (dataParsers.
|
|
6
|
+
type _DataParserStringExtended<GenericDefinition extends dataParsers.DataParserDefinitionString> = (Kind<typeof dataParsers.stringKind.definition> & DataParserExtended<GenericDefinition, string, string>);
|
|
7
7
|
export interface DataParserStringExtended<GenericDefinition extends dataParsers.DataParserDefinitionString = dataParsers.DataParserDefinitionString> extends _DataParserStringExtended<GenericDefinition> {
|
|
8
8
|
addChecker<GenericChecker extends readonly [
|
|
9
9
|
dataParsers.DataParserStringCheckers,
|
|
@@ -1,58 +1,11 @@
|
|
|
1
|
-
import '../../common/stringToBytes.mjs';
|
|
2
|
-
import '../../common/stringToMillisecond.mjs';
|
|
3
|
-
import '../../common/globalStore.mjs';
|
|
4
|
-
import '../../common/builder.mjs';
|
|
5
|
-
import '../../either/bool/falsy.mjs';
|
|
6
|
-
import '../../either/bool/truthy.mjs';
|
|
7
|
-
import '../../either/bool/base.mjs';
|
|
8
|
-
import '../../either/left/create.mjs';
|
|
9
|
-
import '../../either/left/error.mjs';
|
|
10
|
-
import '../../either/left/fail.mjs';
|
|
11
|
-
import '../../either/kind.mjs';
|
|
12
|
-
import '../../either/right/success.mjs';
|
|
13
|
-
import '../../either/right/create.mjs';
|
|
14
|
-
import '../../either/right/ok.mjs';
|
|
15
|
-
import '../../either/future/success.mjs';
|
|
16
|
-
import '../../either/future/error.mjs';
|
|
17
|
-
import '../../either/future/base.mjs';
|
|
18
|
-
import '../../either/nullable/empty.mjs';
|
|
19
|
-
import '../../either/nullable/filled.mjs';
|
|
20
|
-
import '../../either/nullable/base.mjs';
|
|
21
|
-
import '../../either/nullish/empty.mjs';
|
|
22
|
-
import '../../either/nullish/filled.mjs';
|
|
23
|
-
import '../../either/nullish/base.mjs';
|
|
24
|
-
import '../../either/optional/empty.mjs';
|
|
25
|
-
import '../../either/optional/filled.mjs';
|
|
26
|
-
import '../../either/optional/base.mjs';
|
|
27
|
-
import { createOverride } from '../../common/override.mjs';
|
|
28
1
|
import { dataParserExtendedInit } from '../baseExtended.mjs';
|
|
29
2
|
import { string as string$1 } from '../parsers/string/index.mjs';
|
|
30
|
-
import '../parsers/object/index.mjs';
|
|
31
|
-
import '../parsers/number/index.mjs';
|
|
32
|
-
import '../parsers/date.mjs';
|
|
33
|
-
import '../parsers/literal.mjs';
|
|
34
|
-
import '../parsers/union.mjs';
|
|
35
|
-
import '../parsers/array/index.mjs';
|
|
36
|
-
import '../parsers/bigint/index.mjs';
|
|
37
|
-
import '../parsers/tuple.mjs';
|
|
38
|
-
import '../parsers/transform.mjs';
|
|
39
|
-
import '../parsers/nil.mjs';
|
|
40
|
-
import '../parsers/boolean.mjs';
|
|
41
|
-
import '../parsers/empty.mjs';
|
|
42
|
-
import '../parsers/templateLiteral/index.mjs';
|
|
43
|
-
import '../parsers/pipe.mjs';
|
|
44
|
-
import '../parsers/optional.mjs';
|
|
45
|
-
import '../parsers/nullable.mjs';
|
|
46
|
-
import '../parsers/lazy.mjs';
|
|
47
|
-
import '../parsers/unknown.mjs';
|
|
48
|
-
import '../parsers/record/index.mjs';
|
|
49
|
-
import '../parsers/refine.mjs';
|
|
50
|
-
import '../parsers/recover.mjs';
|
|
51
3
|
import { checkerEmail } from '../parsers/string/checkers/email.mjs';
|
|
52
4
|
import { checkerUrl } from '../parsers/string/checkers/url.mjs';
|
|
53
5
|
import { checkerStringRegex } from '../parsers/string/checkers/regex.mjs';
|
|
54
6
|
import { checkerStringMax } from '../parsers/string/checkers/max.mjs';
|
|
55
7
|
import { checkerStringMin } from '../parsers/string/checkers/min.mjs';
|
|
8
|
+
import { createOverride } from '../../common/override.mjs';
|
|
56
9
|
|
|
57
10
|
function string(definition) {
|
|
58
11
|
const self = dataParserExtendedInit(string$1(definition), {
|
|
@@ -1,55 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
require('../../common/stringToBytes.cjs');
|
|
4
|
-
require('../../common/stringToMillisecond.cjs');
|
|
5
|
-
require('../../common/globalStore.cjs');
|
|
6
|
-
require('../../common/builder.cjs');
|
|
7
|
-
require('../../either/bool/falsy.cjs');
|
|
8
|
-
require('../../either/bool/truthy.cjs');
|
|
9
|
-
require('../../either/bool/base.cjs');
|
|
10
|
-
require('../../either/left/create.cjs');
|
|
11
|
-
require('../../either/left/error.cjs');
|
|
12
|
-
require('../../either/left/fail.cjs');
|
|
13
|
-
require('../../either/kind.cjs');
|
|
14
|
-
require('../../either/right/success.cjs');
|
|
15
|
-
require('../../either/right/create.cjs');
|
|
16
|
-
require('../../either/right/ok.cjs');
|
|
17
|
-
require('../../either/future/success.cjs');
|
|
18
|
-
require('../../either/future/error.cjs');
|
|
19
|
-
require('../../either/future/base.cjs');
|
|
20
|
-
require('../../either/nullable/empty.cjs');
|
|
21
|
-
require('../../either/nullable/filled.cjs');
|
|
22
|
-
require('../../either/nullable/base.cjs');
|
|
23
|
-
require('../../either/nullish/empty.cjs');
|
|
24
|
-
require('../../either/nullish/filled.cjs');
|
|
25
|
-
require('../../either/nullish/base.cjs');
|
|
26
|
-
require('../../either/optional/empty.cjs');
|
|
27
|
-
require('../../either/optional/filled.cjs');
|
|
28
|
-
require('../../either/optional/base.cjs');
|
|
29
|
-
var override = require('../../common/override.cjs');
|
|
30
3
|
var baseExtended = require('../baseExtended.cjs');
|
|
31
|
-
require('../parsers/string/index.cjs');
|
|
32
|
-
require('../parsers/object/index.cjs');
|
|
33
|
-
require('../parsers/number/index.cjs');
|
|
34
|
-
require('../parsers/date.cjs');
|
|
35
|
-
require('../parsers/literal.cjs');
|
|
36
|
-
require('../parsers/union.cjs');
|
|
37
|
-
require('../parsers/array/index.cjs');
|
|
38
|
-
require('../parsers/bigint/index.cjs');
|
|
39
|
-
require('../parsers/tuple.cjs');
|
|
40
|
-
require('../parsers/transform.cjs');
|
|
41
|
-
require('../parsers/nil.cjs');
|
|
42
|
-
require('../parsers/boolean.cjs');
|
|
43
|
-
require('../parsers/empty.cjs');
|
|
44
4
|
var index = require('../parsers/templateLiteral/index.cjs');
|
|
45
|
-
require('
|
|
46
|
-
require('../parsers/optional.cjs');
|
|
47
|
-
require('../parsers/nullable.cjs');
|
|
48
|
-
require('../parsers/lazy.cjs');
|
|
49
|
-
require('../parsers/unknown.cjs');
|
|
50
|
-
require('../parsers/record/index.cjs');
|
|
51
|
-
require('../parsers/refine.cjs');
|
|
52
|
-
require('../parsers/recover.cjs');
|
|
5
|
+
var override = require('../../common/override.cjs');
|
|
53
6
|
|
|
54
7
|
function templateLiteral(template, definition) {
|
|
55
8
|
const self = baseExtended.dataParserExtendedInit(index.templateLiteral(template, definition), {});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { type FixDeepFunctionInfer, type NeverCoalescing } from "../../common";
|
|
1
|
+
import { type FixDeepFunctionInfer, type Kind, type NeverCoalescing } from "../../common";
|
|
2
2
|
import { type DataParserExtended } from "../baseExtended";
|
|
3
3
|
import { type AddCheckersToDefinition, type MergeDefinition } from "../types";
|
|
4
4
|
import * as dataParsers from "../parsers";
|
|
5
5
|
import { type Output } from "../base";
|
|
6
|
-
type _DataParserTemplateLiteralExtended<GenericDefinition extends dataParsers.DataParserDefinitionTemplateLiteral> = (dataParsers.
|
|
6
|
+
type _DataParserTemplateLiteralExtended<GenericDefinition extends dataParsers.DataParserDefinitionTemplateLiteral> = (Kind<typeof dataParsers.templateLiteralKind.definition> & DataParserExtended<GenericDefinition, dataParsers.TemplateLiteralShapeOutput<GenericDefinition["template"]>, dataParsers.TemplateLiteralShapeInput<GenericDefinition["template"]>>);
|
|
7
7
|
export interface DataParserTemplateLiteralExtended<GenericDefinition extends dataParsers.DataParserDefinitionTemplateLiteral = dataParsers.DataParserDefinitionTemplateLiteral> extends _DataParserTemplateLiteralExtended<GenericDefinition> {
|
|
8
8
|
addChecker<GenericChecker extends readonly [
|
|
9
9
|
dataParsers.DataParserTemplateLiteralCheckers<Output<this>>,
|
|
@@ -1,53 +1,6 @@
|
|
|
1
|
-
import '../../common/stringToBytes.mjs';
|
|
2
|
-
import '../../common/stringToMillisecond.mjs';
|
|
3
|
-
import '../../common/globalStore.mjs';
|
|
4
|
-
import '../../common/builder.mjs';
|
|
5
|
-
import '../../either/bool/falsy.mjs';
|
|
6
|
-
import '../../either/bool/truthy.mjs';
|
|
7
|
-
import '../../either/bool/base.mjs';
|
|
8
|
-
import '../../either/left/create.mjs';
|
|
9
|
-
import '../../either/left/error.mjs';
|
|
10
|
-
import '../../either/left/fail.mjs';
|
|
11
|
-
import '../../either/kind.mjs';
|
|
12
|
-
import '../../either/right/success.mjs';
|
|
13
|
-
import '../../either/right/create.mjs';
|
|
14
|
-
import '../../either/right/ok.mjs';
|
|
15
|
-
import '../../either/future/success.mjs';
|
|
16
|
-
import '../../either/future/error.mjs';
|
|
17
|
-
import '../../either/future/base.mjs';
|
|
18
|
-
import '../../either/nullable/empty.mjs';
|
|
19
|
-
import '../../either/nullable/filled.mjs';
|
|
20
|
-
import '../../either/nullable/base.mjs';
|
|
21
|
-
import '../../either/nullish/empty.mjs';
|
|
22
|
-
import '../../either/nullish/filled.mjs';
|
|
23
|
-
import '../../either/nullish/base.mjs';
|
|
24
|
-
import '../../either/optional/empty.mjs';
|
|
25
|
-
import '../../either/optional/filled.mjs';
|
|
26
|
-
import '../../either/optional/base.mjs';
|
|
27
|
-
import { createOverride } from '../../common/override.mjs';
|
|
28
1
|
import { dataParserExtendedInit } from '../baseExtended.mjs';
|
|
29
|
-
import '../parsers/string/index.mjs';
|
|
30
|
-
import '../parsers/object/index.mjs';
|
|
31
|
-
import '../parsers/number/index.mjs';
|
|
32
|
-
import '../parsers/date.mjs';
|
|
33
|
-
import '../parsers/literal.mjs';
|
|
34
|
-
import '../parsers/union.mjs';
|
|
35
|
-
import '../parsers/array/index.mjs';
|
|
36
|
-
import '../parsers/bigint/index.mjs';
|
|
37
|
-
import '../parsers/tuple.mjs';
|
|
38
|
-
import '../parsers/transform.mjs';
|
|
39
|
-
import '../parsers/nil.mjs';
|
|
40
|
-
import '../parsers/boolean.mjs';
|
|
41
|
-
import '../parsers/empty.mjs';
|
|
42
2
|
import { templateLiteral as templateLiteral$1 } from '../parsers/templateLiteral/index.mjs';
|
|
43
|
-
import '
|
|
44
|
-
import '../parsers/optional.mjs';
|
|
45
|
-
import '../parsers/nullable.mjs';
|
|
46
|
-
import '../parsers/lazy.mjs';
|
|
47
|
-
import '../parsers/unknown.mjs';
|
|
48
|
-
import '../parsers/record/index.mjs';
|
|
49
|
-
import '../parsers/refine.mjs';
|
|
50
|
-
import '../parsers/recover.mjs';
|
|
3
|
+
import { createOverride } from '../../common/override.mjs';
|
|
51
4
|
|
|
52
5
|
function templateLiteral(template, definition) {
|
|
53
6
|
const self = dataParserExtendedInit(templateLiteral$1(template, definition), {});
|
|
@@ -1,55 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
require('../../common/stringToBytes.cjs');
|
|
4
|
-
require('../../common/stringToMillisecond.cjs');
|
|
5
|
-
require('../../common/globalStore.cjs');
|
|
6
|
-
require('../../common/builder.cjs');
|
|
7
|
-
require('../../either/bool/falsy.cjs');
|
|
8
|
-
require('../../either/bool/truthy.cjs');
|
|
9
|
-
require('../../either/bool/base.cjs');
|
|
10
|
-
require('../../either/left/create.cjs');
|
|
11
|
-
require('../../either/left/error.cjs');
|
|
12
|
-
require('../../either/left/fail.cjs');
|
|
13
|
-
require('../../either/kind.cjs');
|
|
14
|
-
require('../../either/right/success.cjs');
|
|
15
|
-
require('../../either/right/create.cjs');
|
|
16
|
-
require('../../either/right/ok.cjs');
|
|
17
|
-
require('../../either/future/success.cjs');
|
|
18
|
-
require('../../either/future/error.cjs');
|
|
19
|
-
require('../../either/future/base.cjs');
|
|
20
|
-
require('../../either/nullable/empty.cjs');
|
|
21
|
-
require('../../either/nullable/filled.cjs');
|
|
22
|
-
require('../../either/nullable/base.cjs');
|
|
23
|
-
require('../../either/nullish/empty.cjs');
|
|
24
|
-
require('../../either/nullish/filled.cjs');
|
|
25
|
-
require('../../either/nullish/base.cjs');
|
|
26
|
-
require('../../either/optional/empty.cjs');
|
|
27
|
-
require('../../either/optional/filled.cjs');
|
|
28
|
-
require('../../either/optional/base.cjs');
|
|
29
|
-
var override = require('../../common/override.cjs');
|
|
30
3
|
var baseExtended = require('../baseExtended.cjs');
|
|
31
|
-
require('../parsers/string/index.cjs');
|
|
32
|
-
require('../parsers/object/index.cjs');
|
|
33
|
-
require('../parsers/number/index.cjs');
|
|
34
|
-
require('../parsers/date.cjs');
|
|
35
|
-
require('../parsers/literal.cjs');
|
|
36
|
-
require('../parsers/union.cjs');
|
|
37
|
-
require('../parsers/array/index.cjs');
|
|
38
|
-
require('../parsers/bigint/index.cjs');
|
|
39
|
-
require('../parsers/tuple.cjs');
|
|
40
4
|
var transform$1 = require('../parsers/transform.cjs');
|
|
41
|
-
require('
|
|
42
|
-
require('../parsers/boolean.cjs');
|
|
43
|
-
require('../parsers/empty.cjs');
|
|
44
|
-
require('../parsers/templateLiteral/index.cjs');
|
|
45
|
-
require('../parsers/pipe.cjs');
|
|
46
|
-
require('../parsers/optional.cjs');
|
|
47
|
-
require('../parsers/nullable.cjs');
|
|
48
|
-
require('../parsers/lazy.cjs');
|
|
49
|
-
require('../parsers/unknown.cjs');
|
|
50
|
-
require('../parsers/record/index.cjs');
|
|
51
|
-
require('../parsers/refine.cjs');
|
|
52
|
-
require('../parsers/recover.cjs');
|
|
5
|
+
var override = require('../../common/override.cjs');
|
|
53
6
|
|
|
54
7
|
function transform(inner, theFunction, definition) {
|
|
55
8
|
const self = baseExtended.dataParserExtendedInit(transform$1.transform(inner, theFunction, definition), {});
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { type FixDeepFunctionInfer, type NeverCoalescing } from "../../common";
|
|
1
|
+
import { type FixDeepFunctionInfer, type Kind, type NeverCoalescing } from "../../common";
|
|
2
2
|
import { type DataParserExtended } from "../baseExtended";
|
|
3
3
|
import { type AddCheckersToDefinition, type MergeDefinition } from "../types";
|
|
4
4
|
import * as dataParsers from "../parsers";
|
|
5
|
-
import { type DataParser, type Output } from "../base";
|
|
5
|
+
import { type DataParser, type Input, type Output } from "../base";
|
|
6
6
|
import { type DataParserError } from "../error";
|
|
7
|
-
type _DataParserTransformExtended<GenericDefinition extends dataParsers.DataParserDefinitionTransform> = (dataParsers.
|
|
7
|
+
type _DataParserTransformExtended<GenericDefinition extends dataParsers.DataParserDefinitionTransform> = (Kind<typeof dataParsers.transformKind.definition> & DataParserExtended<GenericDefinition, Output<dataParsers.DataParserTransform<GenericDefinition>>, Input<GenericDefinition["inner"]>>);
|
|
8
8
|
export interface DataParserTransformExtended<GenericDefinition extends dataParsers.DataParserDefinitionTransform = dataParsers.DataParserDefinitionTransform> extends _DataParserTransformExtended<GenericDefinition> {
|
|
9
9
|
addChecker<GenericChecker extends readonly [
|
|
10
10
|
dataParsers.DataParserTransformCheckers<Output<this>>,
|
|
@@ -1,53 +1,6 @@
|
|
|
1
|
-
import '../../common/stringToBytes.mjs';
|
|
2
|
-
import '../../common/stringToMillisecond.mjs';
|
|
3
|
-
import '../../common/globalStore.mjs';
|
|
4
|
-
import '../../common/builder.mjs';
|
|
5
|
-
import '../../either/bool/falsy.mjs';
|
|
6
|
-
import '../../either/bool/truthy.mjs';
|
|
7
|
-
import '../../either/bool/base.mjs';
|
|
8
|
-
import '../../either/left/create.mjs';
|
|
9
|
-
import '../../either/left/error.mjs';
|
|
10
|
-
import '../../either/left/fail.mjs';
|
|
11
|
-
import '../../either/kind.mjs';
|
|
12
|
-
import '../../either/right/success.mjs';
|
|
13
|
-
import '../../either/right/create.mjs';
|
|
14
|
-
import '../../either/right/ok.mjs';
|
|
15
|
-
import '../../either/future/success.mjs';
|
|
16
|
-
import '../../either/future/error.mjs';
|
|
17
|
-
import '../../either/future/base.mjs';
|
|
18
|
-
import '../../either/nullable/empty.mjs';
|
|
19
|
-
import '../../either/nullable/filled.mjs';
|
|
20
|
-
import '../../either/nullable/base.mjs';
|
|
21
|
-
import '../../either/nullish/empty.mjs';
|
|
22
|
-
import '../../either/nullish/filled.mjs';
|
|
23
|
-
import '../../either/nullish/base.mjs';
|
|
24
|
-
import '../../either/optional/empty.mjs';
|
|
25
|
-
import '../../either/optional/filled.mjs';
|
|
26
|
-
import '../../either/optional/base.mjs';
|
|
27
|
-
import { createOverride } from '../../common/override.mjs';
|
|
28
1
|
import { dataParserExtendedInit } from '../baseExtended.mjs';
|
|
29
|
-
import '../parsers/string/index.mjs';
|
|
30
|
-
import '../parsers/object/index.mjs';
|
|
31
|
-
import '../parsers/number/index.mjs';
|
|
32
|
-
import '../parsers/date.mjs';
|
|
33
|
-
import '../parsers/literal.mjs';
|
|
34
|
-
import '../parsers/union.mjs';
|
|
35
|
-
import '../parsers/array/index.mjs';
|
|
36
|
-
import '../parsers/bigint/index.mjs';
|
|
37
|
-
import '../parsers/tuple.mjs';
|
|
38
2
|
import { transform as transform$1 } from '../parsers/transform.mjs';
|
|
39
|
-
import '
|
|
40
|
-
import '../parsers/boolean.mjs';
|
|
41
|
-
import '../parsers/empty.mjs';
|
|
42
|
-
import '../parsers/templateLiteral/index.mjs';
|
|
43
|
-
import '../parsers/pipe.mjs';
|
|
44
|
-
import '../parsers/optional.mjs';
|
|
45
|
-
import '../parsers/nullable.mjs';
|
|
46
|
-
import '../parsers/lazy.mjs';
|
|
47
|
-
import '../parsers/unknown.mjs';
|
|
48
|
-
import '../parsers/record/index.mjs';
|
|
49
|
-
import '../parsers/refine.mjs';
|
|
50
|
-
import '../parsers/recover.mjs';
|
|
3
|
+
import { createOverride } from '../../common/override.mjs';
|
|
51
4
|
|
|
52
5
|
function transform(inner, theFunction, definition) {
|
|
53
6
|
const self = dataParserExtendedInit(transform$1(inner, theFunction, definition), {});
|
|
@@ -1,57 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
require('../../common/stringToBytes.cjs');
|
|
4
|
-
require('../../common/stringToMillisecond.cjs');
|
|
5
|
-
require('../../common/globalStore.cjs');
|
|
6
|
-
require('../../common/builder.cjs');
|
|
7
|
-
require('../../either/bool/falsy.cjs');
|
|
8
|
-
require('../../either/bool/truthy.cjs');
|
|
9
|
-
require('../../either/bool/base.cjs');
|
|
10
|
-
require('../../either/left/create.cjs');
|
|
11
|
-
require('../../either/left/error.cjs');
|
|
12
|
-
require('../../either/left/fail.cjs');
|
|
13
|
-
require('../../either/kind.cjs');
|
|
14
|
-
require('../../either/right/success.cjs');
|
|
15
|
-
require('../../either/right/create.cjs');
|
|
16
|
-
require('../../either/right/ok.cjs');
|
|
17
|
-
require('../../either/future/success.cjs');
|
|
18
|
-
require('../../either/future/error.cjs');
|
|
19
|
-
require('../../either/future/base.cjs');
|
|
20
|
-
require('../../either/nullable/empty.cjs');
|
|
21
|
-
require('../../either/nullable/filled.cjs');
|
|
22
|
-
require('../../either/nullable/base.cjs');
|
|
23
|
-
require('../../either/nullish/empty.cjs');
|
|
24
|
-
require('../../either/nullish/filled.cjs');
|
|
25
|
-
require('../../either/nullish/base.cjs');
|
|
26
|
-
require('../../either/optional/empty.cjs');
|
|
27
|
-
require('../../either/optional/filled.cjs');
|
|
28
|
-
require('../../either/optional/base.cjs');
|
|
29
|
-
var override = require('../../common/override.cjs');
|
|
30
3
|
var baseExtended = require('../baseExtended.cjs');
|
|
31
|
-
require('../parsers/string/index.cjs');
|
|
32
|
-
require('../parsers/object/index.cjs');
|
|
33
|
-
require('../parsers/number/index.cjs');
|
|
34
|
-
require('../parsers/date.cjs');
|
|
35
|
-
require('../parsers/literal.cjs');
|
|
36
|
-
require('../parsers/union.cjs');
|
|
37
|
-
require('../parsers/array/index.cjs');
|
|
38
|
-
require('../parsers/bigint/index.cjs');
|
|
39
4
|
var tuple$1 = require('../parsers/tuple.cjs');
|
|
40
|
-
require('../parsers/transform.cjs');
|
|
41
|
-
require('../parsers/nil.cjs');
|
|
42
|
-
require('../parsers/boolean.cjs');
|
|
43
|
-
require('../parsers/empty.cjs');
|
|
44
|
-
require('../parsers/templateLiteral/index.cjs');
|
|
45
|
-
require('../parsers/pipe.cjs');
|
|
46
|
-
require('../parsers/optional.cjs');
|
|
47
|
-
require('../parsers/nullable.cjs');
|
|
48
|
-
require('../parsers/lazy.cjs');
|
|
49
|
-
require('../parsers/unknown.cjs');
|
|
50
|
-
require('../parsers/record/index.cjs');
|
|
51
|
-
require('../parsers/refine.cjs');
|
|
52
|
-
require('../parsers/recover.cjs');
|
|
53
5
|
var max = require('../parsers/array/checkers/max.cjs');
|
|
54
6
|
var min = require('../parsers/array/checkers/min.cjs');
|
|
7
|
+
var override = require('../../common/override.cjs');
|
|
55
8
|
|
|
56
9
|
function tuple(shape, definition) {
|
|
57
10
|
const self = baseExtended.dataParserExtendedInit(tuple$1.tuple(shape, definition), {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { type FixDeepFunctionInfer, type NeverCoalescing } from "../../common";
|
|
1
|
+
import { type FixDeepFunctionInfer, type Kind, type NeverCoalescing } from "../../common";
|
|
2
2
|
import { type DataParserExtended } from "../baseExtended";
|
|
3
3
|
import { type AddCheckersToDefinition, type MergeDefinition } from "../types";
|
|
4
4
|
import * as dataParsers from "../parsers";
|
|
5
|
-
import { type Output } from "../base";
|
|
6
|
-
type _DataParserTupleExtended<GenericDefinition extends dataParsers.DataParserDefinitionTuple> = (dataParsers.
|
|
5
|
+
import { type Input, type Output } from "../base";
|
|
6
|
+
type _DataParserTupleExtended<GenericDefinition extends dataParsers.DataParserDefinitionTuple> = (Kind<typeof dataParsers.tupleKind.definition> & DataParserExtended<GenericDefinition, Output<dataParsers.DataParserTuple<GenericDefinition>>, Input<dataParsers.DataParserTuple<GenericDefinition>>>);
|
|
7
7
|
export interface DataParserTupleExtended<GenericDefinition extends dataParsers.DataParserDefinitionTuple = dataParsers.DataParserDefinitionTuple> extends _DataParserTupleExtended<GenericDefinition> {
|
|
8
8
|
addChecker<GenericChecker extends readonly [
|
|
9
9
|
dataParsers.DataParserTupleCheckers<Output<this>>,
|
|
@@ -1,55 +1,8 @@
|
|
|
1
|
-
import '../../common/stringToBytes.mjs';
|
|
2
|
-
import '../../common/stringToMillisecond.mjs';
|
|
3
|
-
import '../../common/globalStore.mjs';
|
|
4
|
-
import '../../common/builder.mjs';
|
|
5
|
-
import '../../either/bool/falsy.mjs';
|
|
6
|
-
import '../../either/bool/truthy.mjs';
|
|
7
|
-
import '../../either/bool/base.mjs';
|
|
8
|
-
import '../../either/left/create.mjs';
|
|
9
|
-
import '../../either/left/error.mjs';
|
|
10
|
-
import '../../either/left/fail.mjs';
|
|
11
|
-
import '../../either/kind.mjs';
|
|
12
|
-
import '../../either/right/success.mjs';
|
|
13
|
-
import '../../either/right/create.mjs';
|
|
14
|
-
import '../../either/right/ok.mjs';
|
|
15
|
-
import '../../either/future/success.mjs';
|
|
16
|
-
import '../../either/future/error.mjs';
|
|
17
|
-
import '../../either/future/base.mjs';
|
|
18
|
-
import '../../either/nullable/empty.mjs';
|
|
19
|
-
import '../../either/nullable/filled.mjs';
|
|
20
|
-
import '../../either/nullable/base.mjs';
|
|
21
|
-
import '../../either/nullish/empty.mjs';
|
|
22
|
-
import '../../either/nullish/filled.mjs';
|
|
23
|
-
import '../../either/nullish/base.mjs';
|
|
24
|
-
import '../../either/optional/empty.mjs';
|
|
25
|
-
import '../../either/optional/filled.mjs';
|
|
26
|
-
import '../../either/optional/base.mjs';
|
|
27
|
-
import { createOverride } from '../../common/override.mjs';
|
|
28
1
|
import { dataParserExtendedInit } from '../baseExtended.mjs';
|
|
29
|
-
import '../parsers/string/index.mjs';
|
|
30
|
-
import '../parsers/object/index.mjs';
|
|
31
|
-
import '../parsers/number/index.mjs';
|
|
32
|
-
import '../parsers/date.mjs';
|
|
33
|
-
import '../parsers/literal.mjs';
|
|
34
|
-
import '../parsers/union.mjs';
|
|
35
|
-
import '../parsers/array/index.mjs';
|
|
36
|
-
import '../parsers/bigint/index.mjs';
|
|
37
2
|
import { tuple as tuple$1 } from '../parsers/tuple.mjs';
|
|
38
|
-
import '../parsers/transform.mjs';
|
|
39
|
-
import '../parsers/nil.mjs';
|
|
40
|
-
import '../parsers/boolean.mjs';
|
|
41
|
-
import '../parsers/empty.mjs';
|
|
42
|
-
import '../parsers/templateLiteral/index.mjs';
|
|
43
|
-
import '../parsers/pipe.mjs';
|
|
44
|
-
import '../parsers/optional.mjs';
|
|
45
|
-
import '../parsers/nullable.mjs';
|
|
46
|
-
import '../parsers/lazy.mjs';
|
|
47
|
-
import '../parsers/unknown.mjs';
|
|
48
|
-
import '../parsers/record/index.mjs';
|
|
49
|
-
import '../parsers/refine.mjs';
|
|
50
|
-
import '../parsers/recover.mjs';
|
|
51
3
|
import { checkerArrayMax } from '../parsers/array/checkers/max.mjs';
|
|
52
4
|
import { checkerArrayMin } from '../parsers/array/checkers/min.mjs';
|
|
5
|
+
import { createOverride } from '../../common/override.mjs';
|
|
53
6
|
|
|
54
7
|
function tuple(shape, definition) {
|
|
55
8
|
const self = dataParserExtendedInit(tuple$1(shape, definition), {
|
|
@@ -1,55 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
require('../../common/stringToBytes.cjs');
|
|
4
|
-
require('../../common/stringToMillisecond.cjs');
|
|
5
|
-
require('../../common/globalStore.cjs');
|
|
6
|
-
require('../../common/builder.cjs');
|
|
7
|
-
require('../../either/bool/falsy.cjs');
|
|
8
|
-
require('../../either/bool/truthy.cjs');
|
|
9
|
-
require('../../either/bool/base.cjs');
|
|
10
|
-
require('../../either/left/create.cjs');
|
|
11
|
-
require('../../either/left/error.cjs');
|
|
12
|
-
require('../../either/left/fail.cjs');
|
|
13
|
-
require('../../either/kind.cjs');
|
|
14
|
-
require('../../either/right/success.cjs');
|
|
15
|
-
require('../../either/right/create.cjs');
|
|
16
|
-
require('../../either/right/ok.cjs');
|
|
17
|
-
require('../../either/future/success.cjs');
|
|
18
|
-
require('../../either/future/error.cjs');
|
|
19
|
-
require('../../either/future/base.cjs');
|
|
20
|
-
require('../../either/nullable/empty.cjs');
|
|
21
|
-
require('../../either/nullable/filled.cjs');
|
|
22
|
-
require('../../either/nullable/base.cjs');
|
|
23
|
-
require('../../either/nullish/empty.cjs');
|
|
24
|
-
require('../../either/nullish/filled.cjs');
|
|
25
|
-
require('../../either/nullish/base.cjs');
|
|
26
|
-
require('../../either/optional/empty.cjs');
|
|
27
|
-
require('../../either/optional/filled.cjs');
|
|
28
|
-
require('../../either/optional/base.cjs');
|
|
29
|
-
var override = require('../../common/override.cjs');
|
|
30
3
|
var baseExtended = require('../baseExtended.cjs');
|
|
31
|
-
require('../parsers/string/index.cjs');
|
|
32
|
-
require('../parsers/object/index.cjs');
|
|
33
|
-
require('../parsers/number/index.cjs');
|
|
34
|
-
require('../parsers/date.cjs');
|
|
35
|
-
require('../parsers/literal.cjs');
|
|
36
4
|
var union$1 = require('../parsers/union.cjs');
|
|
37
|
-
require('
|
|
38
|
-
require('../parsers/bigint/index.cjs');
|
|
39
|
-
require('../parsers/tuple.cjs');
|
|
40
|
-
require('../parsers/transform.cjs');
|
|
41
|
-
require('../parsers/nil.cjs');
|
|
42
|
-
require('../parsers/boolean.cjs');
|
|
43
|
-
require('../parsers/empty.cjs');
|
|
44
|
-
require('../parsers/templateLiteral/index.cjs');
|
|
45
|
-
require('../parsers/pipe.cjs');
|
|
46
|
-
require('../parsers/optional.cjs');
|
|
47
|
-
require('../parsers/nullable.cjs');
|
|
48
|
-
require('../parsers/lazy.cjs');
|
|
49
|
-
require('../parsers/unknown.cjs');
|
|
50
|
-
require('../parsers/record/index.cjs');
|
|
51
|
-
require('../parsers/refine.cjs');
|
|
52
|
-
require('../parsers/recover.cjs');
|
|
5
|
+
var override = require('../../common/override.cjs');
|
|
53
6
|
|
|
54
7
|
function union(options, definition) {
|
|
55
8
|
const self = baseExtended.dataParserExtendedInit(union$1.union(options, definition), {});
|