bguard 0.3.0 → 0.4.0
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/README.md +270 -122
- package/lib/CommonSchema-DOh3bsL-.d.ts +110 -0
- package/lib/CommonSchema-wi9MOXGF.d.mts +110 -0
- package/lib/InferType.d.mts +6 -14
- package/lib/InferType.d.ts +6 -14
- package/lib/asserts/array/index.d.mts +6 -5
- package/lib/asserts/array/index.d.ts +6 -5
- package/lib/asserts/array/index.js +7 -7
- package/lib/asserts/array/index.js.map +1 -1
- package/lib/asserts/array/index.mjs +6 -6
- package/lib/asserts/array/index.mjs.map +1 -1
- package/lib/asserts/array/maxArrayLength.js +4 -4
- package/lib/asserts/array/maxArrayLength.mjs +2 -2
- package/lib/asserts/array/minArrayLength.js +4 -4
- package/lib/asserts/array/minArrayLength.mjs +2 -2
- package/lib/asserts/bigint/bigintMax.js +4 -4
- package/lib/asserts/bigint/bigintMax.mjs +2 -2
- package/lib/asserts/bigint/bigintMaxExcluded.js +4 -4
- package/lib/asserts/bigint/bigintMaxExcluded.mjs +2 -2
- package/lib/asserts/bigint/bigintMin.js +4 -4
- package/lib/asserts/bigint/bigintMin.mjs +2 -2
- package/lib/asserts/bigint/bigintMinExcluded.js +4 -4
- package/lib/asserts/bigint/bigintMinExcluded.mjs +2 -2
- package/lib/asserts/bigint/index.d.mts +5 -4
- package/lib/asserts/bigint/index.d.ts +5 -4
- package/lib/asserts/bigint/index.js +10 -10
- package/lib/asserts/bigint/index.js.map +1 -1
- package/lib/asserts/bigint/index.mjs +9 -9
- package/lib/asserts/bigint/index.mjs.map +1 -1
- package/lib/asserts/boolean/index.d.mts +5 -4
- package/lib/asserts/boolean/index.d.ts +5 -4
- package/lib/asserts/boolean/index.js +8 -8
- package/lib/asserts/boolean/index.js.map +1 -1
- package/lib/asserts/boolean/index.mjs +7 -7
- package/lib/asserts/boolean/index.mjs.map +1 -1
- package/lib/asserts/date/dateMax.js +5 -5
- package/lib/asserts/date/dateMax.mjs +2 -2
- package/lib/asserts/date/dateMin.js +5 -5
- package/lib/asserts/date/dateMin.mjs +2 -2
- package/lib/asserts/date/index.d.mts +5 -4
- package/lib/asserts/date/index.d.ts +5 -4
- package/lib/asserts/date/index.js +7 -7
- package/lib/asserts/date/index.js.map +1 -1
- package/lib/asserts/date/index.mjs +6 -6
- package/lib/asserts/date/index.mjs.map +1 -1
- package/lib/asserts/mix/equalTo.js +4 -4
- package/lib/asserts/mix/equalTo.mjs +3 -3
- package/lib/asserts/mix/index.d.mts +5 -4
- package/lib/asserts/mix/index.d.ts +5 -4
- package/lib/asserts/mix/index.js +6 -6
- package/lib/asserts/mix/index.js.map +1 -1
- package/lib/asserts/mix/index.mjs +5 -5
- package/lib/asserts/mix/index.mjs.map +1 -1
- package/lib/asserts/mix/oneOfValues.js +4 -4
- package/lib/asserts/mix/oneOfValues.mjs +3 -3
- package/lib/asserts/number/index.d.mts +4 -3
- package/lib/asserts/number/index.d.ts +4 -3
- package/lib/asserts/number/index.js +10 -10
- package/lib/asserts/number/index.js.map +1 -1
- package/lib/asserts/number/index.mjs +9 -9
- package/lib/asserts/number/index.mjs.map +1 -1
- package/lib/asserts/number/max.js +4 -4
- package/lib/asserts/number/max.mjs +2 -2
- package/lib/asserts/number/maxExcluded.js +4 -4
- package/lib/asserts/number/maxExcluded.mjs +2 -2
- package/lib/asserts/number/min.js +4 -4
- package/lib/asserts/number/min.mjs +2 -2
- package/lib/asserts/number/minExcluded.js +4 -4
- package/lib/asserts/number/minExcluded.mjs +2 -2
- package/lib/asserts/number/negative.js +4 -4
- package/lib/asserts/number/negative.mjs +2 -2
- package/lib/asserts/number/positive.js +4 -4
- package/lib/asserts/number/positive.mjs +2 -2
- package/lib/asserts/object/index.d.mts +6 -5
- package/lib/asserts/object/index.d.ts +6 -5
- package/lib/asserts/object/index.js +7 -7
- package/lib/asserts/object/index.js.map +1 -1
- package/lib/asserts/object/index.mjs +6 -6
- package/lib/asserts/object/index.mjs.map +1 -1
- package/lib/asserts/object/maxKeys.d.mts +30 -0
- package/lib/asserts/object/maxKeys.d.ts +30 -0
- package/lib/asserts/object/maxKeys.js +23 -0
- package/lib/asserts/object/maxKeys.js.map +1 -0
- package/lib/asserts/object/maxKeys.mjs +23 -0
- package/lib/asserts/object/maxKeys.mjs.map +1 -0
- package/lib/asserts/string/atLeastOneDigit.js +4 -4
- package/lib/asserts/string/atLeastOneDigit.mjs +2 -2
- package/lib/asserts/string/atLeastOneLowerChar.js +4 -4
- package/lib/asserts/string/atLeastOneLowerChar.mjs +2 -2
- package/lib/asserts/string/atLeastOneSpecialChar.js +4 -4
- package/lib/asserts/string/atLeastOneSpecialChar.mjs +2 -2
- package/lib/asserts/string/atLeastOneUpperChar.js +4 -4
- package/lib/asserts/string/atLeastOneUpperChar.mjs +2 -2
- package/lib/asserts/string/contains.js +4 -4
- package/lib/asserts/string/contains.mjs +2 -2
- package/lib/asserts/string/email.js +4 -4
- package/lib/asserts/string/email.mjs +2 -2
- package/lib/asserts/string/endsWith.js +4 -4
- package/lib/asserts/string/endsWith.mjs +2 -2
- package/lib/asserts/string/index.d.mts +5 -4
- package/lib/asserts/string/index.d.ts +5 -4
- package/lib/asserts/string/index.js +10 -10
- package/lib/asserts/string/index.js.map +1 -1
- package/lib/asserts/string/index.mjs +9 -9
- package/lib/asserts/string/index.mjs.map +1 -1
- package/lib/asserts/string/isValidDate.js +4 -4
- package/lib/asserts/string/isValidDate.mjs +2 -2
- package/lib/asserts/string/isValidDateTime.js +4 -4
- package/lib/asserts/string/isValidDateTime.mjs +2 -2
- package/lib/asserts/string/isValidTime.js +5 -5
- package/lib/asserts/string/isValidTime.mjs +2 -2
- package/lib/asserts/string/lowerCase.js +4 -4
- package/lib/asserts/string/lowerCase.mjs +2 -2
- package/lib/asserts/string/maxLength.js +4 -4
- package/lib/asserts/string/maxLength.mjs +2 -2
- package/lib/asserts/string/minLength.js +4 -4
- package/lib/asserts/string/minLength.mjs +2 -2
- package/lib/asserts/string/regExp.js +4 -4
- package/lib/asserts/string/regExp.mjs +2 -2
- package/lib/asserts/string/startsWith.js +4 -4
- package/lib/asserts/string/startsWith.mjs +2 -2
- package/lib/asserts/string/upperCase.js +4 -4
- package/lib/asserts/string/upperCase.mjs +2 -2
- package/lib/asserts/string/uuid.js +4 -4
- package/lib/asserts/string/uuid.mjs +2 -2
- package/lib/asserts/string/uuidV1.js +4 -4
- package/lib/asserts/string/uuidV1.mjs +2 -2
- package/lib/asserts/string/uuidV2.js +4 -4
- package/lib/asserts/string/uuidV2.mjs +2 -2
- package/lib/asserts/string/uuidV3.js +4 -4
- package/lib/asserts/string/uuidV3.mjs +2 -2
- package/lib/asserts/string/uuidV4.js +4 -4
- package/lib/asserts/string/uuidV4.mjs +2 -2
- package/lib/asserts/string/uuidV5.js +4 -4
- package/lib/asserts/string/uuidV5.mjs +2 -2
- package/lib/asserts/string/validUrl.js +4 -4
- package/lib/asserts/string/validUrl.mjs +2 -2
- package/lib/{chunk-OJSTQQ3N.js → chunk-2KQASECD.js} +5 -5
- package/lib/{chunk-OJSTQQ3N.js.map → chunk-2KQASECD.js.map} +1 -1
- package/lib/{chunk-AY7HKAG2.js → chunk-5P6AZJCN.js} +5 -3
- package/lib/chunk-5P6AZJCN.js.map +1 -0
- package/lib/{chunk-AN3VHQEQ.js → chunk-5WHCMWXK.js} +12 -9
- package/lib/chunk-5WHCMWXK.js.map +1 -0
- package/lib/{chunk-UZ2PWO4O.js → chunk-5YYRBKDP.js} +4 -4
- package/lib/{chunk-UZ2PWO4O.js.map → chunk-5YYRBKDP.js.map} +1 -1
- package/lib/{chunk-YPAFWVDL.mjs → chunk-6D5W7SSQ.mjs} +4 -4
- package/lib/chunk-6D5W7SSQ.mjs.map +1 -0
- package/lib/chunk-7NBOVYSP.mjs +136 -0
- package/lib/chunk-7NBOVYSP.mjs.map +1 -0
- package/lib/{chunk-5LLJ22IG.mjs → chunk-BNCT7NOR.mjs} +21 -7
- package/lib/chunk-BNCT7NOR.mjs.map +1 -0
- package/lib/{chunk-BUXOCPHI.mjs → chunk-C3EDEQ3W.mjs} +3 -3
- package/lib/{chunk-TQWUSDQD.mjs → chunk-CHUPE6SJ.mjs} +6 -6
- package/lib/chunk-CHUPE6SJ.mjs.map +1 -0
- package/lib/{chunk-ZVW3IHBW.js → chunk-ECBOZ3BM.js} +8 -8
- package/lib/chunk-ECBOZ3BM.js.map +1 -0
- package/lib/{chunk-NP64RC7B.mjs → chunk-FGZKNBDP.mjs} +5 -3
- package/lib/chunk-FGZKNBDP.mjs.map +1 -0
- package/lib/{chunk-ZWE5Q37U.mjs → chunk-FP5QAEVQ.mjs} +6 -6
- package/lib/chunk-FP5QAEVQ.mjs.map +1 -0
- package/lib/{chunk-PESVL5YJ.js → chunk-G55SHHAR.js} +10 -8
- package/lib/chunk-G55SHHAR.js.map +1 -0
- package/lib/{chunk-4GDBM5LP.mjs → chunk-H32B3NHW.mjs} +2 -2
- package/lib/{chunk-D42ISCFK.mjs → chunk-H6LHV3EA.mjs} +2 -2
- package/lib/{chunk-SPWF5IFU.js → chunk-HP3DRZWK.js} +5 -5
- package/lib/{chunk-SPWF5IFU.js.map → chunk-HP3DRZWK.js.map} +1 -1
- package/lib/{chunk-W2GOLG3K.js → chunk-IZ3CBVEE.js} +5 -5
- package/lib/{chunk-W2GOLG3K.js.map → chunk-IZ3CBVEE.js.map} +1 -1
- package/lib/{chunk-OHEMRF7Y.mjs → chunk-K7X6DVM2.mjs} +3 -3
- package/lib/{chunk-KBZUNXJB.mjs → chunk-LPR3G5T3.mjs} +4 -4
- package/lib/{chunk-KBZUNXJB.mjs.map → chunk-LPR3G5T3.mjs.map} +1 -1
- package/lib/{chunk-2MFBOVP2.mjs → chunk-MHBY5OIQ.mjs} +3 -3
- package/lib/{chunk-EU3ZZF7Y.js → chunk-MLNQZ445.js} +13 -13
- package/lib/chunk-MLNQZ445.js.map +1 -0
- package/lib/chunk-QIDWASOC.js +14 -0
- package/lib/{chunk-3ZPLJ5KC.js.map → chunk-QIDWASOC.js.map} +1 -1
- package/lib/chunk-SHJVKSEZ.js +136 -0
- package/lib/chunk-SHJVKSEZ.js.map +1 -0
- package/lib/{chunk-ADSMWGDJ.mjs → chunk-TRGMD7LA.mjs} +7 -5
- package/lib/chunk-TRGMD7LA.mjs.map +1 -0
- package/lib/{chunk-OKF3BVUD.mjs → chunk-TV5IZY4L.mjs} +9 -6
- package/lib/chunk-TV5IZY4L.mjs.map +1 -0
- package/lib/{chunk-OO6BTBVP.js → chunk-U4USIJV3.js} +11 -11
- package/lib/{chunk-OO6BTBVP.js.map → chunk-U4USIJV3.js.map} +1 -1
- package/lib/{chunk-P6V6S6TZ.js → chunk-UUY7DPHK.js} +12 -12
- package/lib/chunk-UUY7DPHK.js.map +1 -0
- package/lib/chunk-VW4RMQD4.js +28 -0
- package/lib/{chunk-LYNVPN3R.js.map → chunk-VW4RMQD4.js.map} +1 -1
- package/lib/{chunk-ZMEQCIRN.mjs → chunk-WK4FJ5GD.mjs} +6 -6
- package/lib/chunk-WK4FJ5GD.mjs.map +1 -0
- package/lib/{chunk-PIBDJJUU.js → chunk-X762EUSZ.js} +31 -17
- package/lib/chunk-X762EUSZ.js.map +1 -0
- package/lib/{chunk-5HT3PYSG.mjs → chunk-YUMUCQKL.mjs} +4 -4
- package/lib/{chunk-5HT3PYSG.mjs.map → chunk-YUMUCQKL.mjs.map} +1 -1
- package/lib/{chunk-2D5QE7F4.js → chunk-Z6QU36MM.js} +12 -12
- package/lib/chunk-Z6QU36MM.js.map +1 -0
- package/lib/codeGen.d.mts +2 -1
- package/lib/codeGen.d.ts +2 -1
- package/lib/codeGen.js +3 -3
- package/lib/codeGen.mjs +2 -2
- package/lib/commonTypes.d.mts +26 -2
- package/lib/commonTypes.d.ts +26 -2
- package/lib/exceptions.d.mts +3 -2
- package/lib/exceptions.d.ts +3 -2
- package/lib/exceptions.js +2 -2
- package/lib/exceptions.mjs +1 -1
- package/lib/helpers/core.d.mts +2 -1
- package/lib/helpers/core.d.ts +2 -1
- package/lib/helpers/core.js +3 -3
- package/lib/helpers/core.mjs +2 -2
- package/lib/helpers/setStrictType.d.mts +2 -1
- package/lib/helpers/setStrictType.d.ts +2 -1
- package/lib/helpers/setStrictType.js +4 -4
- package/lib/helpers/setStrictType.mjs +3 -3
- package/lib/index.d.mts +1 -8
- package/lib/index.d.ts +1 -8
- package/lib/index.js +6 -6
- package/lib/index.mjs +5 -5
- package/lib/parse.d.mts +1 -8
- package/lib/parse.d.ts +1 -8
- package/lib/parse.js +5 -5
- package/lib/parse.mjs +4 -4
- package/lib/parseOrFail.d.mts +1 -8
- package/lib/parseOrFail.d.ts +1 -8
- package/lib/parseOrFail.js +5 -5
- package/lib/parseOrFail.mjs +4 -4
- package/lib/schemas/ArraySchema.d.mts +3 -6
- package/lib/schemas/ArraySchema.d.ts +3 -6
- package/lib/schemas/ArraySchema.js +7 -7
- package/lib/schemas/ArraySchema.mjs +6 -6
- package/lib/schemas/BigIntSchema.d.mts +6 -9
- package/lib/schemas/BigIntSchema.d.ts +6 -9
- package/lib/schemas/BigIntSchema.js +10 -10
- package/lib/schemas/BigIntSchema.mjs +9 -9
- package/lib/schemas/BooleanSchema.d.mts +6 -9
- package/lib/schemas/BooleanSchema.d.ts +6 -9
- package/lib/schemas/BooleanSchema.js +8 -8
- package/lib/schemas/BooleanSchema.mjs +7 -7
- package/lib/schemas/CommonSchema.d.mts +2 -1
- package/lib/schemas/CommonSchema.d.ts +2 -1
- package/lib/schemas/CommonSchema.js +6 -6
- package/lib/schemas/CommonSchema.mjs +5 -5
- package/lib/schemas/DateSchema.d.mts +2 -1
- package/lib/schemas/DateSchema.d.ts +2 -1
- package/lib/schemas/DateSchema.js +7 -7
- package/lib/schemas/DateSchema.mjs +6 -6
- package/lib/schemas/NumberSchema.d.mts +6 -9
- package/lib/schemas/NumberSchema.d.ts +6 -9
- package/lib/schemas/NumberSchema.js +10 -10
- package/lib/schemas/NumberSchema.mjs +9 -9
- package/lib/schemas/ObjectSchema.d.mts +3 -5
- package/lib/schemas/ObjectSchema.d.ts +3 -5
- package/lib/schemas/ObjectSchema.js +7 -7
- package/lib/schemas/ObjectSchema.mjs +6 -6
- package/lib/schemas/StringSchema.d.mts +6 -9
- package/lib/schemas/StringSchema.d.ts +6 -9
- package/lib/schemas/StringSchema.js +10 -10
- package/lib/schemas/StringSchema.mjs +9 -9
- package/lib/translationMap.js +3 -3
- package/lib/translationMap.mjs +2 -2
- package/package.json +1 -1
- package/lib/CommonSchema-CiY7spmg.d.mts +0 -71
- package/lib/CommonSchema-D9QVJBJe.d.ts +0 -71
- package/lib/chunk-2D5QE7F4.js.map +0 -1
- package/lib/chunk-3IOQH3K4.js +0 -74
- package/lib/chunk-3IOQH3K4.js.map +0 -1
- package/lib/chunk-3ZPLJ5KC.js +0 -14
- package/lib/chunk-5LLJ22IG.mjs.map +0 -1
- package/lib/chunk-ADSMWGDJ.mjs.map +0 -1
- package/lib/chunk-AN3VHQEQ.js.map +0 -1
- package/lib/chunk-AOUFWACR.mjs +0 -74
- package/lib/chunk-AOUFWACR.mjs.map +0 -1
- package/lib/chunk-AY7HKAG2.js.map +0 -1
- package/lib/chunk-EU3ZZF7Y.js.map +0 -1
- package/lib/chunk-LYNVPN3R.js +0 -28
- package/lib/chunk-NP64RC7B.mjs.map +0 -1
- package/lib/chunk-OKF3BVUD.mjs.map +0 -1
- package/lib/chunk-P6V6S6TZ.js.map +0 -1
- package/lib/chunk-PESVL5YJ.js.map +0 -1
- package/lib/chunk-PIBDJJUU.js.map +0 -1
- package/lib/chunk-TQWUSDQD.mjs.map +0 -1
- package/lib/chunk-YPAFWVDL.mjs.map +0 -1
- package/lib/chunk-ZMEQCIRN.mjs.map +0 -1
- package/lib/chunk-ZVW3IHBW.js.map +0 -1
- package/lib/chunk-ZWE5Q37U.mjs.map +0 -1
- /package/lib/{chunk-BUXOCPHI.mjs.map → chunk-C3EDEQ3W.mjs.map} +0 -0
- /package/lib/{chunk-4GDBM5LP.mjs.map → chunk-H32B3NHW.mjs.map} +0 -0
- /package/lib/{chunk-D42ISCFK.mjs.map → chunk-H6LHV3EA.mjs.map} +0 -0
- /package/lib/{chunk-OHEMRF7Y.mjs.map → chunk-K7X6DVM2.mjs.map} +0 -0
- /package/lib/{chunk-2MFBOVP2.mjs.map → chunk-MHBY5OIQ.mjs.map} +0 -0
package/lib/parse.d.ts
CHANGED
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
import { InferType } from './InferType.js';
|
|
2
|
-
import { C as CommonSchema } from './CommonSchema-
|
|
2
|
+
import { C as CommonSchema } from './CommonSchema-DOh3bsL-.js';
|
|
3
3
|
import { ValidationErrorData } from './commonTypes.js';
|
|
4
|
-
import './schemas/ArraySchema.js';
|
|
5
|
-
import './schemas/BigIntSchema.js';
|
|
6
|
-
import './schemas/BooleanSchema.js';
|
|
7
|
-
import './schemas/DateSchema.js';
|
|
8
|
-
import './schemas/NumberSchema.js';
|
|
9
|
-
import './schemas/ObjectSchema.js';
|
|
10
|
-
import './schemas/StringSchema.js';
|
|
11
4
|
|
|
12
5
|
interface ParseOptions {
|
|
13
6
|
/**
|
package/lib/parse.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var _chunk5WHCMWXKjs = require('./chunk-5WHCMWXK.js');
|
|
4
|
+
require('./chunk-X762EUSZ.js');
|
|
5
5
|
require('./chunk-VBTWYDEM.js');
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
6
|
+
require('./chunk-5YYRBKDP.js');
|
|
7
|
+
require('./chunk-5P6AZJCN.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.parse =
|
|
10
|
+
exports.parse = _chunk5WHCMWXKjs.parse;
|
|
11
11
|
//# sourceMappingURL=parse.js.map
|
package/lib/parse.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parse
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-TV5IZY4L.mjs";
|
|
4
|
+
import "./chunk-BNCT7NOR.mjs";
|
|
5
5
|
import "./chunk-YBVMP4EI.mjs";
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-H32B3NHW.mjs";
|
|
7
|
+
import "./chunk-FGZKNBDP.mjs";
|
|
8
8
|
export {
|
|
9
9
|
parse
|
|
10
10
|
};
|
package/lib/parseOrFail.d.mts
CHANGED
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import { InferType } from './InferType.mjs';
|
|
2
|
-
import { C as CommonSchema } from './CommonSchema-
|
|
3
|
-
import './schemas/ArraySchema.mjs';
|
|
4
|
-
import './schemas/BigIntSchema.mjs';
|
|
5
|
-
import './schemas/BooleanSchema.mjs';
|
|
6
|
-
import './schemas/DateSchema.mjs';
|
|
7
|
-
import './schemas/NumberSchema.mjs';
|
|
8
|
-
import './schemas/ObjectSchema.mjs';
|
|
9
|
-
import './schemas/StringSchema.mjs';
|
|
2
|
+
import { C as CommonSchema } from './CommonSchema-wi9MOXGF.mjs';
|
|
10
3
|
import './commonTypes.mjs';
|
|
11
4
|
|
|
12
5
|
interface ParseOptions {
|
package/lib/parseOrFail.d.ts
CHANGED
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import { InferType } from './InferType.js';
|
|
2
|
-
import { C as CommonSchema } from './CommonSchema-
|
|
3
|
-
import './schemas/ArraySchema.js';
|
|
4
|
-
import './schemas/BigIntSchema.js';
|
|
5
|
-
import './schemas/BooleanSchema.js';
|
|
6
|
-
import './schemas/DateSchema.js';
|
|
7
|
-
import './schemas/NumberSchema.js';
|
|
8
|
-
import './schemas/ObjectSchema.js';
|
|
9
|
-
import './schemas/StringSchema.js';
|
|
2
|
+
import { C as CommonSchema } from './CommonSchema-DOh3bsL-.js';
|
|
10
3
|
import './commonTypes.js';
|
|
11
4
|
|
|
12
5
|
interface ParseOptions {
|
package/lib/parseOrFail.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var _chunkG55SHHARjs = require('./chunk-G55SHHAR.js');
|
|
4
|
+
require('./chunk-X762EUSZ.js');
|
|
5
5
|
require('./chunk-VBTWYDEM.js');
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
6
|
+
require('./chunk-5YYRBKDP.js');
|
|
7
|
+
require('./chunk-5P6AZJCN.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.parseOrFail =
|
|
10
|
+
exports.parseOrFail = _chunkG55SHHARjs.parseOrFail;
|
|
11
11
|
//# sourceMappingURL=parseOrFail.js.map
|
package/lib/parseOrFail.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parseOrFail
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-TRGMD7LA.mjs";
|
|
4
|
+
import "./chunk-BNCT7NOR.mjs";
|
|
5
5
|
import "./chunk-YBVMP4EI.mjs";
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-H32B3NHW.mjs";
|
|
7
|
+
import "./chunk-FGZKNBDP.mjs";
|
|
8
8
|
export {
|
|
9
9
|
parseOrFail
|
|
10
10
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { C as CommonSchema, V as ValidatorContext } from '../CommonSchema-
|
|
1
|
+
import { C as CommonSchema, V as ValidatorContext } from '../CommonSchema-wi9MOXGF.mjs';
|
|
2
|
+
import '../InferType.mjs';
|
|
2
3
|
import '../commonTypes.mjs';
|
|
3
4
|
|
|
4
5
|
declare class ArraySchema extends CommonSchema {
|
|
@@ -6,9 +7,5 @@ declare class ArraySchema extends CommonSchema {
|
|
|
6
7
|
constructor(ctx: ValidatorContext, arraySchema: CommonSchema);
|
|
7
8
|
private validateArrayEntry;
|
|
8
9
|
}
|
|
9
|
-
type WithArray<Y extends CommonSchema> = ArraySchema & {
|
|
10
|
-
validation_array: Y;
|
|
11
|
-
};
|
|
12
|
-
type ExtractFromArray<T> = T extends WithArray<infer X> ? X : never;
|
|
13
10
|
|
|
14
|
-
export { ArraySchema
|
|
11
|
+
export { ArraySchema };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { C as CommonSchema, V as ValidatorContext } from '../CommonSchema-
|
|
1
|
+
import { C as CommonSchema, V as ValidatorContext } from '../CommonSchema-DOh3bsL-.js';
|
|
2
|
+
import '../InferType.js';
|
|
2
3
|
import '../commonTypes.js';
|
|
3
4
|
|
|
4
5
|
declare class ArraySchema extends CommonSchema {
|
|
@@ -6,9 +7,5 @@ declare class ArraySchema extends CommonSchema {
|
|
|
6
7
|
constructor(ctx: ValidatorContext, arraySchema: CommonSchema);
|
|
7
8
|
private validateArrayEntry;
|
|
8
9
|
}
|
|
9
|
-
type WithArray<Y extends CommonSchema> = ArraySchema & {
|
|
10
|
-
validation_array: Y;
|
|
11
|
-
};
|
|
12
|
-
type ExtractFromArray<T> = T extends WithArray<infer X> ? X : never;
|
|
13
10
|
|
|
14
|
-
export { ArraySchema
|
|
11
|
+
export { ArraySchema };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
require('../chunk-
|
|
6
|
-
require('../chunk-
|
|
3
|
+
var _chunkVW4RMQD4js = require('../chunk-VW4RMQD4.js');
|
|
4
|
+
require('../chunk-SHJVKSEZ.js');
|
|
5
|
+
require('../chunk-G55SHHAR.js');
|
|
6
|
+
require('../chunk-X762EUSZ.js');
|
|
7
7
|
require('../chunk-VBTWYDEM.js');
|
|
8
|
-
require('../chunk-
|
|
9
|
-
require('../chunk-
|
|
8
|
+
require('../chunk-5YYRBKDP.js');
|
|
9
|
+
require('../chunk-5P6AZJCN.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
exports.ArraySchema =
|
|
12
|
+
exports.ArraySchema = _chunkVW4RMQD4js.ArraySchema;
|
|
13
13
|
//# sourceMappingURL=ArraySchema.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ArraySchema
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-LPR3G5T3.mjs";
|
|
4
|
+
import "../chunk-7NBOVYSP.mjs";
|
|
5
|
+
import "../chunk-TRGMD7LA.mjs";
|
|
6
|
+
import "../chunk-BNCT7NOR.mjs";
|
|
7
7
|
import "../chunk-YBVMP4EI.mjs";
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-H32B3NHW.mjs";
|
|
9
|
+
import "../chunk-FGZKNBDP.mjs";
|
|
10
10
|
export {
|
|
11
11
|
ArraySchema
|
|
12
12
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import '../
|
|
1
|
+
import { WithBGuardType } from '../commonTypes.mjs';
|
|
2
|
+
import { C as CommonSchema } from '../CommonSchema-wi9MOXGF.mjs';
|
|
3
|
+
import '../InferType.mjs';
|
|
3
4
|
|
|
4
5
|
declare class BigIntSchema extends CommonSchema {
|
|
5
6
|
protected _bigint: number;
|
|
@@ -12,7 +13,7 @@ declare class BigIntSchema extends CommonSchema {
|
|
|
12
13
|
*
|
|
13
14
|
* @example - bigint().equalTo(42n); // Infers the type 42n
|
|
14
15
|
*/
|
|
15
|
-
equalTo<Y extends bigint>(expectedValue: Y):
|
|
16
|
+
equalTo<Y extends bigint>(expectedValue: Y): WithBGuardType<this, Y>;
|
|
16
17
|
/**
|
|
17
18
|
* Restricts the schema to match one of the specified values and infers the union of those values as the TypeScript type.
|
|
18
19
|
*
|
|
@@ -22,12 +23,8 @@ declare class BigIntSchema extends CommonSchema {
|
|
|
22
23
|
* @example
|
|
23
24
|
* bigint().oneOfValues([5n, 7n]); // Infers the type 5n | 7n
|
|
24
25
|
*/
|
|
25
|
-
oneOfValues<Y extends bigint>(expectedValue: Y[]):
|
|
26
|
+
oneOfValues<Y extends bigint>(expectedValue: Y[]): WithBGuardType<this, Y>;
|
|
26
27
|
private limitCheck;
|
|
27
28
|
}
|
|
28
|
-
type WithBigInt<T extends BigIntSchema, Y = bigint> = T & {
|
|
29
|
-
validation_bigint: Y;
|
|
30
|
-
};
|
|
31
|
-
type ExtractFromBigInt<T> = T extends WithBigInt<BigIntSchema, infer Y> ? Y : never;
|
|
32
29
|
|
|
33
|
-
export { BigIntSchema
|
|
30
|
+
export { BigIntSchema };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import '../
|
|
1
|
+
import { WithBGuardType } from '../commonTypes.js';
|
|
2
|
+
import { C as CommonSchema } from '../CommonSchema-DOh3bsL-.js';
|
|
3
|
+
import '../InferType.js';
|
|
3
4
|
|
|
4
5
|
declare class BigIntSchema extends CommonSchema {
|
|
5
6
|
protected _bigint: number;
|
|
@@ -12,7 +13,7 @@ declare class BigIntSchema extends CommonSchema {
|
|
|
12
13
|
*
|
|
13
14
|
* @example - bigint().equalTo(42n); // Infers the type 42n
|
|
14
15
|
*/
|
|
15
|
-
equalTo<Y extends bigint>(expectedValue: Y):
|
|
16
|
+
equalTo<Y extends bigint>(expectedValue: Y): WithBGuardType<this, Y>;
|
|
16
17
|
/**
|
|
17
18
|
* Restricts the schema to match one of the specified values and infers the union of those values as the TypeScript type.
|
|
18
19
|
*
|
|
@@ -22,12 +23,8 @@ declare class BigIntSchema extends CommonSchema {
|
|
|
22
23
|
* @example
|
|
23
24
|
* bigint().oneOfValues([5n, 7n]); // Infers the type 5n | 7n
|
|
24
25
|
*/
|
|
25
|
-
oneOfValues<Y extends bigint>(expectedValue: Y[]):
|
|
26
|
+
oneOfValues<Y extends bigint>(expectedValue: Y[]): WithBGuardType<this, Y>;
|
|
26
27
|
private limitCheck;
|
|
27
28
|
}
|
|
28
|
-
type WithBigInt<T extends BigIntSchema, Y = bigint> = T & {
|
|
29
|
-
validation_bigint: Y;
|
|
30
|
-
};
|
|
31
|
-
type ExtractFromBigInt<T> = T extends WithBigInt<BigIntSchema, infer Y> ? Y : never;
|
|
32
29
|
|
|
33
|
-
export { BigIntSchema
|
|
30
|
+
export { BigIntSchema };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
require('../chunk-
|
|
3
|
+
var _chunkUUY7DPHKjs = require('../chunk-UUY7DPHK.js');
|
|
4
|
+
require('../chunk-HP3DRZWK.js');
|
|
5
|
+
require('../chunk-IZ3CBVEE.js');
|
|
6
6
|
require('../chunk-42J6CHIO.js');
|
|
7
|
-
require('../chunk-
|
|
8
|
-
require('../chunk-
|
|
9
|
-
require('../chunk-
|
|
10
|
-
require('../chunk-
|
|
7
|
+
require('../chunk-QIDWASOC.js');
|
|
8
|
+
require('../chunk-SHJVKSEZ.js');
|
|
9
|
+
require('../chunk-G55SHHAR.js');
|
|
10
|
+
require('../chunk-X762EUSZ.js');
|
|
11
11
|
require('../chunk-VBTWYDEM.js');
|
|
12
|
-
require('../chunk-
|
|
13
|
-
require('../chunk-
|
|
12
|
+
require('../chunk-5YYRBKDP.js');
|
|
13
|
+
require('../chunk-5P6AZJCN.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
exports.BigIntSchema =
|
|
16
|
+
exports.BigIntSchema = _chunkUUY7DPHKjs.BigIntSchema;
|
|
17
17
|
//# sourceMappingURL=BigIntSchema.js.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BigIntSchema
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-WK4FJ5GD.mjs";
|
|
4
|
+
import "../chunk-C3EDEQ3W.mjs";
|
|
5
|
+
import "../chunk-K7X6DVM2.mjs";
|
|
6
6
|
import "../chunk-ASZW6XRM.mjs";
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-H6LHV3EA.mjs";
|
|
8
|
+
import "../chunk-7NBOVYSP.mjs";
|
|
9
|
+
import "../chunk-TRGMD7LA.mjs";
|
|
10
|
+
import "../chunk-BNCT7NOR.mjs";
|
|
11
11
|
import "../chunk-YBVMP4EI.mjs";
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-H32B3NHW.mjs";
|
|
13
|
+
import "../chunk-FGZKNBDP.mjs";
|
|
14
14
|
export {
|
|
15
15
|
BigIntSchema
|
|
16
16
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { C as CommonSchema } from '../CommonSchema-
|
|
2
|
-
import '../commonTypes.mjs';
|
|
1
|
+
import { C as CommonSchema } from '../CommonSchema-wi9MOXGF.mjs';
|
|
2
|
+
import { WithBGuardType } from '../commonTypes.mjs';
|
|
3
|
+
import '../InferType.mjs';
|
|
3
4
|
|
|
4
5
|
declare class BooleanSchema extends CommonSchema {
|
|
5
6
|
protected _boolean: number;
|
|
@@ -10,7 +11,7 @@ declare class BooleanSchema extends CommonSchema {
|
|
|
10
11
|
*
|
|
11
12
|
* @example - boolean().onlyTrue(); // Infers the type true
|
|
12
13
|
*/
|
|
13
|
-
onlyTrue():
|
|
14
|
+
onlyTrue(): WithBGuardType<this, true>;
|
|
14
15
|
/**
|
|
15
16
|
* Restricts the schema to exactly match the boolean value false and infers the false value as the TypeScript type.
|
|
16
17
|
*
|
|
@@ -18,11 +19,7 @@ declare class BooleanSchema extends CommonSchema {
|
|
|
18
19
|
*
|
|
19
20
|
* @example - boolean().onlyFalse(); // Infers the type false
|
|
20
21
|
*/
|
|
21
|
-
onlyFalse():
|
|
22
|
+
onlyFalse(): WithBGuardType<this, false>;
|
|
22
23
|
}
|
|
23
|
-
type WithBoolean<T extends BooleanSchema, Y = boolean> = T & {
|
|
24
|
-
validation_boolean: Y;
|
|
25
|
-
};
|
|
26
|
-
type ExtractFromBoolean<T> = T extends WithBoolean<BooleanSchema, infer Y> ? Y : never;
|
|
27
24
|
|
|
28
|
-
export { BooleanSchema
|
|
25
|
+
export { BooleanSchema };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { C as CommonSchema } from '../CommonSchema-
|
|
2
|
-
import '../commonTypes.js';
|
|
1
|
+
import { C as CommonSchema } from '../CommonSchema-DOh3bsL-.js';
|
|
2
|
+
import { WithBGuardType } from '../commonTypes.js';
|
|
3
|
+
import '../InferType.js';
|
|
3
4
|
|
|
4
5
|
declare class BooleanSchema extends CommonSchema {
|
|
5
6
|
protected _boolean: number;
|
|
@@ -10,7 +11,7 @@ declare class BooleanSchema extends CommonSchema {
|
|
|
10
11
|
*
|
|
11
12
|
* @example - boolean().onlyTrue(); // Infers the type true
|
|
12
13
|
*/
|
|
13
|
-
onlyTrue():
|
|
14
|
+
onlyTrue(): WithBGuardType<this, true>;
|
|
14
15
|
/**
|
|
15
16
|
* Restricts the schema to exactly match the boolean value false and infers the false value as the TypeScript type.
|
|
16
17
|
*
|
|
@@ -18,11 +19,7 @@ declare class BooleanSchema extends CommonSchema {
|
|
|
18
19
|
*
|
|
19
20
|
* @example - boolean().onlyFalse(); // Infers the type false
|
|
20
21
|
*/
|
|
21
|
-
onlyFalse():
|
|
22
|
+
onlyFalse(): WithBGuardType<this, false>;
|
|
22
23
|
}
|
|
23
|
-
type WithBoolean<T extends BooleanSchema, Y = boolean> = T & {
|
|
24
|
-
validation_boolean: Y;
|
|
25
|
-
};
|
|
26
|
-
type ExtractFromBoolean<T> = T extends WithBoolean<BooleanSchema, infer Y> ? Y : never;
|
|
27
24
|
|
|
28
|
-
export { BooleanSchema
|
|
25
|
+
export { BooleanSchema };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
require('../chunk-
|
|
6
|
-
require('../chunk-
|
|
7
|
-
require('../chunk-
|
|
3
|
+
var _chunkECBOZ3BMjs = require('../chunk-ECBOZ3BM.js');
|
|
4
|
+
require('../chunk-QIDWASOC.js');
|
|
5
|
+
require('../chunk-SHJVKSEZ.js');
|
|
6
|
+
require('../chunk-G55SHHAR.js');
|
|
7
|
+
require('../chunk-X762EUSZ.js');
|
|
8
8
|
require('../chunk-VBTWYDEM.js');
|
|
9
|
-
require('../chunk-
|
|
10
|
-
require('../chunk-
|
|
9
|
+
require('../chunk-5YYRBKDP.js');
|
|
10
|
+
require('../chunk-5P6AZJCN.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
exports.BooleanSchema =
|
|
13
|
+
exports.BooleanSchema = _chunkECBOZ3BMjs.BooleanSchema;
|
|
14
14
|
//# sourceMappingURL=BooleanSchema.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BooleanSchema
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-6D5W7SSQ.mjs";
|
|
4
|
+
import "../chunk-H6LHV3EA.mjs";
|
|
5
|
+
import "../chunk-7NBOVYSP.mjs";
|
|
6
|
+
import "../chunk-TRGMD7LA.mjs";
|
|
7
|
+
import "../chunk-BNCT7NOR.mjs";
|
|
8
8
|
import "../chunk-YBVMP4EI.mjs";
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-H32B3NHW.mjs";
|
|
10
|
+
import "../chunk-FGZKNBDP.mjs";
|
|
11
11
|
export {
|
|
12
12
|
BooleanSchema
|
|
13
13
|
};
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import '../InferType.mjs';
|
|
1
2
|
import '../commonTypes.mjs';
|
|
2
|
-
export { C as CommonSchema,
|
|
3
|
+
export { C as CommonSchema, M as MapMixTypes, O as ObjectShapeSchemaType, V as ValidatorContext } from '../CommonSchema-wi9MOXGF.mjs';
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import '../InferType.js';
|
|
1
2
|
import '../commonTypes.js';
|
|
2
|
-
export { C as CommonSchema,
|
|
3
|
+
export { C as CommonSchema, M as MapMixTypes, O as ObjectShapeSchemaType, V as ValidatorContext } from '../CommonSchema-DOh3bsL-.js';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
require('../chunk-
|
|
3
|
+
var _chunkSHJVKSEZjs = require('../chunk-SHJVKSEZ.js');
|
|
4
|
+
require('../chunk-G55SHHAR.js');
|
|
5
|
+
require('../chunk-X762EUSZ.js');
|
|
6
6
|
require('../chunk-VBTWYDEM.js');
|
|
7
|
-
require('../chunk-
|
|
8
|
-
require('../chunk-
|
|
7
|
+
require('../chunk-5YYRBKDP.js');
|
|
8
|
+
require('../chunk-5P6AZJCN.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
exports.CommonSchema =
|
|
11
|
+
exports.CommonSchema = _chunkSHJVKSEZjs.CommonSchema;
|
|
12
12
|
//# sourceMappingURL=CommonSchema.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CommonSchema
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-7NBOVYSP.mjs";
|
|
4
|
+
import "../chunk-TRGMD7LA.mjs";
|
|
5
|
+
import "../chunk-BNCT7NOR.mjs";
|
|
6
6
|
import "../chunk-YBVMP4EI.mjs";
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-H32B3NHW.mjs";
|
|
8
|
+
import "../chunk-FGZKNBDP.mjs";
|
|
9
9
|
export {
|
|
10
10
|
CommonSchema
|
|
11
11
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { C as CommonSchema, V as ValidatorContext } from '../CommonSchema-
|
|
1
|
+
import { C as CommonSchema, V as ValidatorContext } from '../CommonSchema-wi9MOXGF.mjs';
|
|
2
|
+
import '../InferType.mjs';
|
|
2
3
|
import '../commonTypes.mjs';
|
|
3
4
|
|
|
4
5
|
declare class DateSchema extends CommonSchema {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { C as CommonSchema, V as ValidatorContext } from '../CommonSchema-
|
|
1
|
+
import { C as CommonSchema, V as ValidatorContext } from '../CommonSchema-DOh3bsL-.js';
|
|
2
|
+
import '../InferType.js';
|
|
2
3
|
import '../commonTypes.js';
|
|
3
4
|
|
|
4
5
|
declare class DateSchema extends CommonSchema {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
require('../chunk-
|
|
6
|
-
require('../chunk-
|
|
3
|
+
var _chunk2KQASECDjs = require('../chunk-2KQASECD.js');
|
|
4
|
+
require('../chunk-SHJVKSEZ.js');
|
|
5
|
+
require('../chunk-G55SHHAR.js');
|
|
6
|
+
require('../chunk-X762EUSZ.js');
|
|
7
7
|
require('../chunk-VBTWYDEM.js');
|
|
8
|
-
require('../chunk-
|
|
9
|
-
require('../chunk-
|
|
8
|
+
require('../chunk-5YYRBKDP.js');
|
|
9
|
+
require('../chunk-5P6AZJCN.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
exports.DateSchema =
|
|
12
|
+
exports.DateSchema = _chunk2KQASECDjs.DateSchema;
|
|
13
13
|
//# sourceMappingURL=DateSchema.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DateSchema
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-MHBY5OIQ.mjs";
|
|
4
|
+
import "../chunk-7NBOVYSP.mjs";
|
|
5
|
+
import "../chunk-TRGMD7LA.mjs";
|
|
6
|
+
import "../chunk-BNCT7NOR.mjs";
|
|
7
7
|
import "../chunk-YBVMP4EI.mjs";
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-H32B3NHW.mjs";
|
|
9
|
+
import "../chunk-FGZKNBDP.mjs";
|
|
10
10
|
export {
|
|
11
11
|
DateSchema
|
|
12
12
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import '../
|
|
1
|
+
import { WithBGuardType } from '../commonTypes.mjs';
|
|
2
|
+
import { C as CommonSchema } from '../CommonSchema-wi9MOXGF.mjs';
|
|
3
|
+
import '../InferType.mjs';
|
|
3
4
|
|
|
4
5
|
declare class NumberSchema extends CommonSchema {
|
|
5
6
|
protected _number: number;
|
|
@@ -12,7 +13,7 @@ declare class NumberSchema extends CommonSchema {
|
|
|
12
13
|
*
|
|
13
14
|
* @example - number().equalTo(42); // Infers the type 42
|
|
14
15
|
*/
|
|
15
|
-
equalTo<Y extends number>(expectedValue: Y):
|
|
16
|
+
equalTo<Y extends number>(expectedValue: Y): WithBGuardType<this, Y>;
|
|
16
17
|
/**
|
|
17
18
|
* Restricts the schema to match one of the specified values and infers the union of those values as the TypeScript type.
|
|
18
19
|
*
|
|
@@ -22,11 +23,7 @@ declare class NumberSchema extends CommonSchema {
|
|
|
22
23
|
* @example
|
|
23
24
|
* number().oneOfValues([5, 7]); // Infers the type 5 | 7
|
|
24
25
|
*/
|
|
25
|
-
oneOfValues<Y extends number>(expectedValue: Y[]):
|
|
26
|
+
oneOfValues<Y extends number>(expectedValue: Y[]): WithBGuardType<this, Y>;
|
|
26
27
|
}
|
|
27
|
-
type WithNumber<T extends NumberSchema, Y = number> = T & {
|
|
28
|
-
validation_number: Y;
|
|
29
|
-
};
|
|
30
|
-
type ExtractFromNumber<T> = T extends WithNumber<NumberSchema, infer Y> ? Y : never;
|
|
31
28
|
|
|
32
|
-
export {
|
|
29
|
+
export { NumberSchema };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import '../
|
|
1
|
+
import { WithBGuardType } from '../commonTypes.js';
|
|
2
|
+
import { C as CommonSchema } from '../CommonSchema-DOh3bsL-.js';
|
|
3
|
+
import '../InferType.js';
|
|
3
4
|
|
|
4
5
|
declare class NumberSchema extends CommonSchema {
|
|
5
6
|
protected _number: number;
|
|
@@ -12,7 +13,7 @@ declare class NumberSchema extends CommonSchema {
|
|
|
12
13
|
*
|
|
13
14
|
* @example - number().equalTo(42); // Infers the type 42
|
|
14
15
|
*/
|
|
15
|
-
equalTo<Y extends number>(expectedValue: Y):
|
|
16
|
+
equalTo<Y extends number>(expectedValue: Y): WithBGuardType<this, Y>;
|
|
16
17
|
/**
|
|
17
18
|
* Restricts the schema to match one of the specified values and infers the union of those values as the TypeScript type.
|
|
18
19
|
*
|
|
@@ -22,11 +23,7 @@ declare class NumberSchema extends CommonSchema {
|
|
|
22
23
|
* @example
|
|
23
24
|
* number().oneOfValues([5, 7]); // Infers the type 5 | 7
|
|
24
25
|
*/
|
|
25
|
-
oneOfValues<Y extends number>(expectedValue: Y[]):
|
|
26
|
+
oneOfValues<Y extends number>(expectedValue: Y[]): WithBGuardType<this, Y>;
|
|
26
27
|
}
|
|
27
|
-
type WithNumber<T extends NumberSchema, Y = number> = T & {
|
|
28
|
-
validation_number: Y;
|
|
29
|
-
};
|
|
30
|
-
type ExtractFromNumber<T> = T extends WithNumber<NumberSchema, infer Y> ? Y : never;
|
|
31
28
|
|
|
32
|
-
export {
|
|
29
|
+
export { NumberSchema };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
require('../chunk-
|
|
3
|
+
var _chunkMLNQZ445js = require('../chunk-MLNQZ445.js');
|
|
4
|
+
require('../chunk-HP3DRZWK.js');
|
|
5
|
+
require('../chunk-IZ3CBVEE.js');
|
|
6
6
|
require('../chunk-42J6CHIO.js');
|
|
7
|
-
require('../chunk-
|
|
8
|
-
require('../chunk-
|
|
9
|
-
require('../chunk-
|
|
10
|
-
require('../chunk-
|
|
7
|
+
require('../chunk-QIDWASOC.js');
|
|
8
|
+
require('../chunk-SHJVKSEZ.js');
|
|
9
|
+
require('../chunk-G55SHHAR.js');
|
|
10
|
+
require('../chunk-X762EUSZ.js');
|
|
11
11
|
require('../chunk-VBTWYDEM.js');
|
|
12
|
-
require('../chunk-
|
|
13
|
-
require('../chunk-
|
|
12
|
+
require('../chunk-5YYRBKDP.js');
|
|
13
|
+
require('../chunk-5P6AZJCN.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
exports.NumberSchema =
|
|
16
|
+
exports.NumberSchema = _chunkMLNQZ445js.NumberSchema;
|
|
17
17
|
//# sourceMappingURL=NumberSchema.js.map
|