@duplojs/lang 0.0.1-beta.3 → 0.0.1-beta.5
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/index.cjs +0 -3
- package/dist/array/index.d.ts +0 -1
- package/dist/array/index.mjs +1 -3
- package/dist/common/constraint/cast/number.d.ts +15 -0
- package/dist/common/constraint/cast/string.d.ts +9 -0
- package/dist/common/constraint/index.d.ts +1 -0
- package/dist/common/constraint/infer/array.d.ts +7 -0
- package/dist/{array/infer.cjs → common/constraint/infer/index.cjs} +1 -1
- package/dist/common/constraint/infer/index.d.ts +26 -0
- package/dist/{string/infer.mjs → common/constraint/infer/index.mjs} +1 -1
- package/dist/common/constraint/infer/number.d.ts +11 -0
- package/dist/common/constraint/infer/string.d.ts +10 -0
- package/dist/common/index.cjs +3 -0
- package/dist/common/index.mjs +3 -1
- package/dist/dataStructure/constraint/defaults/absolutePath.cjs +13 -0
- package/dist/dataStructure/constraint/defaults/absolutePath.d.ts +10 -0
- package/dist/dataStructure/constraint/defaults/absolutePath.mjs +12 -0
- package/dist/dataStructure/constraint/defaults/index.d.ts +2 -0
- package/dist/dataStructure/constraint/defaults/path.cjs +13 -0
- package/dist/dataStructure/constraint/defaults/path.d.ts +10 -0
- package/dist/dataStructure/constraint/defaults/path.mjs +12 -0
- package/dist/dataStructure/constraint/identifier.d.ts +1 -4
- package/dist/dataStructure/constraint/types/constraints.d.ts +2 -0
- package/dist/dataStructure/fundamentalType/identifier.d.ts +1 -4
- package/dist/dataStructure/helpers/absolutePath.cjs +7 -0
- package/dist/dataStructure/helpers/absolutePath.d.ts +2 -0
- package/dist/dataStructure/helpers/absolutePath.mjs +7 -0
- package/dist/dataStructure/helpers/index.d.ts +2 -0
- package/dist/dataStructure/helpers/path.cjs +7 -0
- package/dist/dataStructure/helpers/path.d.ts +2 -0
- package/dist/dataStructure/helpers/path.mjs +7 -0
- package/dist/dataStructure/index.cjs +16 -0
- package/dist/dataStructure/index.mjs +11 -1
- package/dist/dataStructure/structure/identifier.d.ts +1 -4
- package/dist/dataStructure/type/identifier.d.ts +1 -4
- package/dist/index.cjs +41 -39
- package/dist/index.mjs +3 -2
- package/dist/kind/createIdentifier.d.ts +8 -4
- package/dist/number/index.cjs +0 -3
- package/dist/number/index.d.ts +0 -1
- package/dist/number/index.mjs +1 -3
- package/dist/path/computeRelative.cjs +5 -6
- package/dist/path/computeRelative.d.ts +1 -1
- package/dist/path/computeRelative.mjs +5 -6
- package/dist/path/constraints/absolute.d.ts +1 -1
- package/dist/path/getBaseName.cjs +5 -7
- package/dist/path/getBaseName.d.ts +2 -2
- package/dist/path/getBaseName.mjs +5 -7
- package/dist/path/getExtensionName.cjs +7 -4
- package/dist/path/getExtensionName.d.ts +2 -2
- package/dist/path/getExtensionName.mjs +7 -4
- package/dist/path/getParentFolderPath.cjs +5 -4
- package/dist/path/getParentFolderPath.d.ts +1 -2
- package/dist/path/getParentFolderPath.mjs +5 -4
- package/dist/path/index.cjs +3 -3
- package/dist/path/index.d.ts +2 -2
- package/dist/path/index.mjs +3 -3
- package/dist/path/is.cjs +9 -4
- package/dist/path/is.d.ts +4 -2
- package/dist/path/is.mjs +9 -4
- package/dist/path/isAbsolute.cjs +3 -5
- package/dist/path/isAbsolute.d.ts +4 -2
- package/dist/path/isAbsolute.mjs +3 -5
- package/dist/path/normalize.cjs +18 -0
- package/dist/path/normalize.d.ts +2 -0
- package/dist/path/normalize.mjs +18 -0
- package/dist/path/resolveFrom.cjs +4 -5
- package/dist/path/resolveFrom.d.ts +9 -1
- package/dist/path/resolveFrom.mjs +4 -5
- package/dist/path/resolveRelative.cjs +17 -20
- package/dist/path/resolveRelative.d.ts +9 -2
- package/dist/path/resolveRelative.mjs +17 -20
- package/dist/path/types/index.d.ts +4 -0
- package/dist/path/types/isLiteralAbsolutePath.d.ts +2 -0
- package/dist/path/types/isLiteralPath.d.ts +20 -0
- package/dist/path/types/requireLiteralAbsolutePath.d.ts +3 -0
- package/dist/path/types/requireLiteralPath.d.ts +3 -0
- package/dist/string/index.cjs +0 -3
- package/dist/string/index.d.ts +0 -1
- package/dist/string/index.mjs +1 -3
- package/dist/string/types/split.d.ts +1 -1
- package/package.json +1 -1
- package/dist/array/infer.d.ts +0 -14
- package/dist/array/infer.mjs +0 -6
- package/dist/number/infer.cjs +0 -6
- package/dist/number/infer.d.ts +0 -12
- package/dist/number/infer.mjs +0 -6
- package/dist/path/fix.cjs +0 -8
- package/dist/path/fix.d.ts +0 -1
- package/dist/path/fix.mjs +0 -8
- package/dist/string/infer.cjs +0 -6
- package/dist/string/infer.d.ts +0 -12
|
@@ -5,6 +5,7 @@ const require_codec = require("./common/codec.cjs");
|
|
|
5
5
|
const require_error = require("./common/error.cjs");
|
|
6
6
|
const require_errorInterpreter = require("./common/errorInterpreter.cjs");
|
|
7
7
|
const require_base = require("./constraint/base.cjs");
|
|
8
|
+
const require_absolutePath = require("./constraint/defaults/absolutePath.cjs");
|
|
8
9
|
const require_allowedCharacters = require("./constraint/defaults/allowedCharacters.cjs");
|
|
9
10
|
const require_arrayLengthEqual = require("./constraint/defaults/arrayLengthEqual.cjs");
|
|
10
11
|
const require_betweenThan = require("./constraint/defaults/betweenThan.cjs");
|
|
@@ -25,6 +26,7 @@ const require_negative = require("./constraint/defaults/negative.cjs");
|
|
|
25
26
|
const require_notEmpty = require("./constraint/defaults/notEmpty.cjs");
|
|
26
27
|
const require_notZero = require("./constraint/defaults/notZero.cjs");
|
|
27
28
|
const require_odd = require("./constraint/defaults/odd.cjs");
|
|
29
|
+
const require_path = require("./constraint/defaults/path.cjs");
|
|
28
30
|
const require_positive = require("./constraint/defaults/positive.cjs");
|
|
29
31
|
const require_refine = require("./constraint/defaults/refine.cjs");
|
|
30
32
|
const require_safe = require("./constraint/defaults/safe.cjs");
|
|
@@ -46,6 +48,7 @@ const require_string = require("./fundamentalType/defaults/string.cjs");
|
|
|
46
48
|
const require_time = require("./fundamentalType/defaults/time.cjs");
|
|
47
49
|
const require_undefined = require("./fundamentalType/defaults/undefined.cjs");
|
|
48
50
|
const require_identifier$1 = require("./fundamentalType/identifier.cjs");
|
|
51
|
+
const require_absolutePath$1 = require("./helpers/absolutePath.cjs");
|
|
49
52
|
const require_allowedCharacters$1 = require("./helpers/allowedCharacters.cjs");
|
|
50
53
|
const require_base$2 = require("./structure/base.cjs");
|
|
51
54
|
const require_array = require("./structure/defaults/array.cjs");
|
|
@@ -106,6 +109,7 @@ const require_odd$1 = require("./helpers/odd.cjs");
|
|
|
106
109
|
const require_undefined$2 = require("./helpers/undefined.cjs");
|
|
107
110
|
const require_optional = require("./helpers/optional.cjs");
|
|
108
111
|
const require_partial = require("./helpers/partial.cjs");
|
|
112
|
+
const require_path$1 = require("./helpers/path.cjs");
|
|
109
113
|
const require_positive$1 = require("./helpers/positive.cjs");
|
|
110
114
|
const require_record$1 = require("./helpers/record.cjs");
|
|
111
115
|
const require_refine$1 = require("./helpers/refine.cjs");
|
|
@@ -122,6 +126,7 @@ const require_uuid$1 = require("./helpers/uuid.cjs");
|
|
|
122
126
|
const require_regex$1 = require("./helpers/regex.cjs");
|
|
123
127
|
//#region scripts/dataStructure/index.ts
|
|
124
128
|
var dataStructure_exports = /* @__PURE__ */ require_runtime.__exportAll({
|
|
129
|
+
AbsolutePathConstraint: () => require_absolutePath.AbsolutePathConstraint,
|
|
125
130
|
AllowedCharactersConstraint: () => require_allowedCharacters.AllowedCharactersConstraint,
|
|
126
131
|
ArrayLengthEqualConstraint: () => require_arrayLengthEqual.ArrayLengthEqualConstraint,
|
|
127
132
|
ArrayStructure: () => require_array.ArrayStructure,
|
|
@@ -155,6 +160,7 @@ var dataStructure_exports = /* @__PURE__ */ require_runtime.__exportAll({
|
|
|
155
160
|
NumberType: () => require_number$1.NumberType,
|
|
156
161
|
ObjectStructure: () => require_object.ObjectStructure,
|
|
157
162
|
OddConstraint: () => require_odd.OddConstraint,
|
|
163
|
+
PathConstraint: () => require_path.PathConstraint,
|
|
158
164
|
PositiveConstraint: () => require_positive.PositiveConstraint,
|
|
159
165
|
RecordStructure: () => require_record.RecordStructure,
|
|
160
166
|
RefineConstraint: () => require_refine.RefineConstraint,
|
|
@@ -182,6 +188,8 @@ var dataStructure_exports = /* @__PURE__ */ require_runtime.__exportAll({
|
|
|
182
188
|
UnionStructure: () => require_union.UnionStructure,
|
|
183
189
|
UrlConstraint: () => require_url.UrlConstraint,
|
|
184
190
|
UuidConstraint: () => require_uuid.UuidConstraint,
|
|
191
|
+
absolutePath: () => require_absolutePath$1.absolutePath,
|
|
192
|
+
absolutePathConstraintKind: () => require_absolutePath.absolutePathConstraintKind,
|
|
185
193
|
allowedCharacters: () => require_allowedCharacters$1.allowedCharacters,
|
|
186
194
|
allowedCharactersConstraintKind: () => require_allowedCharacters.allowedCharactersConstraintKind,
|
|
187
195
|
array: () => require_array$1.array,
|
|
@@ -273,6 +281,8 @@ var dataStructure_exports = /* @__PURE__ */ require_runtime.__exportAll({
|
|
|
273
281
|
oddConstraintKind: () => require_odd.oddConstraintKind,
|
|
274
282
|
optional: () => require_optional.optional,
|
|
275
283
|
partial: () => require_partial.partial,
|
|
284
|
+
path: () => require_path$1.path,
|
|
285
|
+
pathConstraintKind: () => require_path.pathConstraintKind,
|
|
276
286
|
positive: () => require_positive$1.positive,
|
|
277
287
|
positiveConstraintKind: () => require_positive.positiveConstraintKind,
|
|
278
288
|
record: () => require_record$1.record,
|
|
@@ -315,6 +325,7 @@ var dataStructure_exports = /* @__PURE__ */ require_runtime.__exportAll({
|
|
|
315
325
|
uuidConstraintKind: () => require_uuid.uuidConstraintKind
|
|
316
326
|
});
|
|
317
327
|
//#endregion
|
|
328
|
+
exports.AbsolutePathConstraint = require_absolutePath.AbsolutePathConstraint;
|
|
318
329
|
exports.AllowedCharactersConstraint = require_allowedCharacters.AllowedCharactersConstraint;
|
|
319
330
|
exports.ArrayLengthEqualConstraint = require_arrayLengthEqual.ArrayLengthEqualConstraint;
|
|
320
331
|
exports.ArrayStructure = require_array.ArrayStructure;
|
|
@@ -348,6 +359,7 @@ exports.NumberLiteralType = require_numberLiteral.NumberLiteralType;
|
|
|
348
359
|
exports.NumberType = require_number$1.NumberType;
|
|
349
360
|
exports.ObjectStructure = require_object.ObjectStructure;
|
|
350
361
|
exports.OddConstraint = require_odd.OddConstraint;
|
|
362
|
+
exports.PathConstraint = require_path.PathConstraint;
|
|
351
363
|
exports.PositiveConstraint = require_positive.PositiveConstraint;
|
|
352
364
|
exports.RecordStructure = require_record.RecordStructure;
|
|
353
365
|
exports.RefineConstraint = require_refine.RefineConstraint;
|
|
@@ -375,6 +387,8 @@ exports.UndefinedType = require_undefined$1.UndefinedType;
|
|
|
375
387
|
exports.UnionStructure = require_union.UnionStructure;
|
|
376
388
|
exports.UrlConstraint = require_url.UrlConstraint;
|
|
377
389
|
exports.UuidConstraint = require_uuid.UuidConstraint;
|
|
390
|
+
exports.absolutePath = require_absolutePath$1.absolutePath;
|
|
391
|
+
exports.absolutePathConstraintKind = require_absolutePath.absolutePathConstraintKind;
|
|
378
392
|
exports.allowedCharacters = require_allowedCharacters$1.allowedCharacters;
|
|
379
393
|
exports.allowedCharactersConstraintKind = require_allowedCharacters.allowedCharactersConstraintKind;
|
|
380
394
|
exports.array = require_array$1.array;
|
|
@@ -472,6 +486,8 @@ exports.odd = require_odd$1.odd;
|
|
|
472
486
|
exports.oddConstraintKind = require_odd.oddConstraintKind;
|
|
473
487
|
exports.optional = require_optional.optional;
|
|
474
488
|
exports.partial = require_partial.partial;
|
|
489
|
+
exports.path = require_path$1.path;
|
|
490
|
+
exports.pathConstraintKind = require_path.pathConstraintKind;
|
|
475
491
|
exports.positive = require_positive$1.positive;
|
|
476
492
|
exports.positiveConstraintKind = require_positive.positiveConstraintKind;
|
|
477
493
|
exports.record = require_record$1.record;
|
|
@@ -5,6 +5,7 @@ import { codecKind, codecsKind, createCodec, createCodecs } from "./common/codec
|
|
|
5
5
|
import { createErrorHandler, createGetErrorHandler, decodeIssueKind, encodeIssueKind, issueKind } from "./common/error.mjs";
|
|
6
6
|
import { createErrorInterpreter } from "./common/errorInterpreter.mjs";
|
|
7
7
|
import { constraintKind, createConstraint } from "./constraint/base.mjs";
|
|
8
|
+
import { AbsolutePathConstraint, absolutePathConstraintKind } from "./constraint/defaults/absolutePath.mjs";
|
|
8
9
|
import { AllowedCharactersConstraint, allowedCharactersConstraintKind } from "./constraint/defaults/allowedCharacters.mjs";
|
|
9
10
|
import { ArrayLengthEqualConstraint, arrayLengthEqualConstraintKind } from "./constraint/defaults/arrayLengthEqual.mjs";
|
|
10
11
|
import { BetweenThanConstraint, betweenThanConstraintKind } from "./constraint/defaults/betweenThan.mjs";
|
|
@@ -25,6 +26,7 @@ import { NegativeConstraint, negativeConstraintKind } from "./constraint/default
|
|
|
25
26
|
import { NotEmptyConstraint, notEmptyConstraintKind } from "./constraint/defaults/notEmpty.mjs";
|
|
26
27
|
import { NotZeroConstraint, notZeroConstraintKind } from "./constraint/defaults/notZero.mjs";
|
|
27
28
|
import { OddConstraint, oddConstraintKind } from "./constraint/defaults/odd.mjs";
|
|
29
|
+
import { PathConstraint, pathConstraintKind } from "./constraint/defaults/path.mjs";
|
|
28
30
|
import { PositiveConstraint, positiveConstraintKind } from "./constraint/defaults/positive.mjs";
|
|
29
31
|
import { RefineConstraint, refineConstraintKind } from "./constraint/defaults/refine.mjs";
|
|
30
32
|
import { SafeConstraint, safeConstraintKind } from "./constraint/defaults/safe.mjs";
|
|
@@ -46,6 +48,7 @@ import { TheString, stringFundamentalTypeKind } from "./fundamentalType/defaults
|
|
|
46
48
|
import { TheTime, timeFundamentalTypeKind } from "./fundamentalType/defaults/time.mjs";
|
|
47
49
|
import { TheUndefined, undefinedFundamentalTypeKind } from "./fundamentalType/defaults/undefined.mjs";
|
|
48
50
|
import { fundamentalTypeIdentifier } from "./fundamentalType/identifier.mjs";
|
|
51
|
+
import { absolutePath } from "./helpers/absolutePath.mjs";
|
|
49
52
|
import { allowedCharacters } from "./helpers/allowedCharacters.mjs";
|
|
50
53
|
import { StructureClass, createStructure, structureKind } from "./structure/base.mjs";
|
|
51
54
|
import { ArrayStructure, arrayStructureKind } from "./structure/defaults/array.mjs";
|
|
@@ -106,6 +109,7 @@ import { odd } from "./helpers/odd.mjs";
|
|
|
106
109
|
import { undefined as undefinedHelper } from "./helpers/undefined.mjs";
|
|
107
110
|
import { optional } from "./helpers/optional.mjs";
|
|
108
111
|
import { partial } from "./helpers/partial.mjs";
|
|
112
|
+
import { path } from "./helpers/path.mjs";
|
|
109
113
|
import { positive } from "./helpers/positive.mjs";
|
|
110
114
|
import { record } from "./helpers/record.mjs";
|
|
111
115
|
import { refine } from "./helpers/refine.mjs";
|
|
@@ -122,6 +126,7 @@ import { uuid } from "./helpers/uuid.mjs";
|
|
|
122
126
|
import { regex } from "./helpers/regex.mjs";
|
|
123
127
|
//#region scripts/dataStructure/index.ts
|
|
124
128
|
var dataStructure_exports = /* @__PURE__ */ __exportAll({
|
|
129
|
+
AbsolutePathConstraint: () => AbsolutePathConstraint,
|
|
125
130
|
AllowedCharactersConstraint: () => AllowedCharactersConstraint,
|
|
126
131
|
ArrayLengthEqualConstraint: () => ArrayLengthEqualConstraint,
|
|
127
132
|
ArrayStructure: () => ArrayStructure,
|
|
@@ -155,6 +160,7 @@ var dataStructure_exports = /* @__PURE__ */ __exportAll({
|
|
|
155
160
|
NumberType: () => NumberType,
|
|
156
161
|
ObjectStructure: () => ObjectStructure,
|
|
157
162
|
OddConstraint: () => OddConstraint,
|
|
163
|
+
PathConstraint: () => PathConstraint,
|
|
158
164
|
PositiveConstraint: () => PositiveConstraint,
|
|
159
165
|
RecordStructure: () => RecordStructure,
|
|
160
166
|
RefineConstraint: () => RefineConstraint,
|
|
@@ -182,6 +188,8 @@ var dataStructure_exports = /* @__PURE__ */ __exportAll({
|
|
|
182
188
|
UnionStructure: () => UnionStructure,
|
|
183
189
|
UrlConstraint: () => UrlConstraint,
|
|
184
190
|
UuidConstraint: () => UuidConstraint,
|
|
191
|
+
absolutePath: () => absolutePath,
|
|
192
|
+
absolutePathConstraintKind: () => absolutePathConstraintKind,
|
|
185
193
|
allowedCharacters: () => allowedCharacters,
|
|
186
194
|
allowedCharactersConstraintKind: () => allowedCharactersConstraintKind,
|
|
187
195
|
array: () => array,
|
|
@@ -273,6 +281,8 @@ var dataStructure_exports = /* @__PURE__ */ __exportAll({
|
|
|
273
281
|
oddConstraintKind: () => oddConstraintKind,
|
|
274
282
|
optional: () => optional,
|
|
275
283
|
partial: () => partial,
|
|
284
|
+
path: () => path,
|
|
285
|
+
pathConstraintKind: () => pathConstraintKind,
|
|
276
286
|
positive: () => positive,
|
|
277
287
|
positiveConstraintKind: () => positiveConstraintKind,
|
|
278
288
|
record: () => record,
|
|
@@ -315,4 +325,4 @@ var dataStructure_exports = /* @__PURE__ */ __exportAll({
|
|
|
315
325
|
uuidConstraintKind: () => uuidConstraintKind
|
|
316
326
|
});
|
|
317
327
|
//#endregion
|
|
318
|
-
export { AllowedCharactersConstraint, ArrayLengthEqualConstraint, ArrayStructure, BetweenThanConstraint, BetweenThanOrEqualConstraint, BigintLiteralType, BigintType, BooleanLiteralType, BooleanType, DateType, EmailConstraint, ErrorSymbol, EvenConstraint, GreaterThanConstraint, GreaterThanOrEqualConstraint, IntegerConstraint, LazyStructure, LessThanConstraint, LessThanOrEqualConstraint, MaxCharactersConstraint, MaxElementsConstraint, MinCharactersConstraint, MinElementsConstraint, MultipleOfConstraint, NegativeConstraint, NonEncodableStringStructure, NotEmptyConstraint, NotZeroConstraint, NullType, NumberLiteralType, NumberType, ObjectStructure, OddConstraint, PositiveConstraint, RecordStructure, RefineConstraint, RegexConstraint, SafeConstraint, StrictNegativeConstraint, StrictPositiveConstraint, StringLengthEqualConstraint, StringLiteralType, StringType, StructureClass, SuccessSymbol, TheBigint, TheBoolean, TheDate, TheNull, TheNumber, TheString, TheTime, TheUndefined, TimeType, TrimmedConstraint, TypeStructure, UndefinedType, UnionStructure, UrlConstraint, UuidConstraint, allowedCharacters, allowedCharactersConstraintKind, array, arrayLengthEqual, arrayLengthEqualConstraintKind, arrayStructureKind, betweenThan, betweenThanConstraintKind, betweenThanOrEqual, betweenThanOrEqualConstraintKind, bigint, bigintFundamentalTypeKind, bigintLiteralTypeKind, bigintTypeKind, boolean, booleanFundamentalTypeKind, booleanLiteralTypeKind, booleanTypeKind, codecKind, codecsKind, constraintIdentifier, constraintKind, createCodec, createCodecs, createConstraint, createErrorHandler, createErrorInterpreter, createFundamentalType, createGetErrorHandler, createKind, createStructure, createType, dataStructure_exports, date, dateFundamentalTypeKind, dateTypeKind, decodeIssueKind, email, emailConstraintKind, encodeIssueKind, even, evenConstraintKind, extend, fundamentalTypeIdentifier, fundamentalTypeKind, greaterThan, greaterThanConstraintKind, greaterThanOrEqual, greaterThanOrEqualConstraintKind, integer, integerConstraintKind, isNullStructure, isUndefinedStructure, issueKind, lazy, lazyStructureKind, lessThan, lessThanConstraintKind, lessThanOrEqual, lessThanOrEqualConstraintKind, literal, maxCharacters, maxCharactersConstraintKind, maxElements, maxElementsConstraintKind, minCharacters, minCharactersConstraintKind, minElements, minElementsConstraintKind, multipleOf, multipleOfConstraintKind, negative, negativeConstraintKind, nonEncodableStringStructureKind, notEmpty, notEmptyConstraintKind, notZero, notZeroConstraintKind, nullHelper as null, nullFundamentalTypeKind, nullTypeKind, nullable, number, numberFundamentalTypeKind, numberLiteralTypeKind, numberTypeKind, object, objectStructureKind, odd, oddConstraintKind, optional, partial, positive, positiveConstraintKind, record, recordStructureKind, refine, refineConstraintKind, regex, regexConstraintKind, required, safe, safeConstraintKind, strictNegative, strictNegativeConstraintKind, strictPositive, strictPositiveConstraintKind, string, stringFundamentalTypeKind, stringLengthEqual, stringLengthEqualConstraintKind, stringLiteralTypeKind, stringTypeKind, structureIdentifier, structureKind, time, timeFundamentalTypeKind, timeTypeKind, trimmed, trimmedConstraintKind, typeIdentifier, typeKind, typeStructureKind, undefinedHelper as undefined, undefinedFundamentalTypeKind, undefinedTypeKind, union, unionStructureKind, url, urlConstraintKind, uuid, uuidConstraintKind };
|
|
328
|
+
export { AbsolutePathConstraint, AllowedCharactersConstraint, ArrayLengthEqualConstraint, ArrayStructure, BetweenThanConstraint, BetweenThanOrEqualConstraint, BigintLiteralType, BigintType, BooleanLiteralType, BooleanType, DateType, EmailConstraint, ErrorSymbol, EvenConstraint, GreaterThanConstraint, GreaterThanOrEqualConstraint, IntegerConstraint, LazyStructure, LessThanConstraint, LessThanOrEqualConstraint, MaxCharactersConstraint, MaxElementsConstraint, MinCharactersConstraint, MinElementsConstraint, MultipleOfConstraint, NegativeConstraint, NonEncodableStringStructure, NotEmptyConstraint, NotZeroConstraint, NullType, NumberLiteralType, NumberType, ObjectStructure, OddConstraint, PathConstraint, PositiveConstraint, RecordStructure, RefineConstraint, RegexConstraint, SafeConstraint, StrictNegativeConstraint, StrictPositiveConstraint, StringLengthEqualConstraint, StringLiteralType, StringType, StructureClass, SuccessSymbol, TheBigint, TheBoolean, TheDate, TheNull, TheNumber, TheString, TheTime, TheUndefined, TimeType, TrimmedConstraint, TypeStructure, UndefinedType, UnionStructure, UrlConstraint, UuidConstraint, absolutePath, absolutePathConstraintKind, allowedCharacters, allowedCharactersConstraintKind, array, arrayLengthEqual, arrayLengthEqualConstraintKind, arrayStructureKind, betweenThan, betweenThanConstraintKind, betweenThanOrEqual, betweenThanOrEqualConstraintKind, bigint, bigintFundamentalTypeKind, bigintLiteralTypeKind, bigintTypeKind, boolean, booleanFundamentalTypeKind, booleanLiteralTypeKind, booleanTypeKind, codecKind, codecsKind, constraintIdentifier, constraintKind, createCodec, createCodecs, createConstraint, createErrorHandler, createErrorInterpreter, createFundamentalType, createGetErrorHandler, createKind, createStructure, createType, dataStructure_exports, date, dateFundamentalTypeKind, dateTypeKind, decodeIssueKind, email, emailConstraintKind, encodeIssueKind, even, evenConstraintKind, extend, fundamentalTypeIdentifier, fundamentalTypeKind, greaterThan, greaterThanConstraintKind, greaterThanOrEqual, greaterThanOrEqualConstraintKind, integer, integerConstraintKind, isNullStructure, isUndefinedStructure, issueKind, lazy, lazyStructureKind, lessThan, lessThanConstraintKind, lessThanOrEqual, lessThanOrEqualConstraintKind, literal, maxCharacters, maxCharactersConstraintKind, maxElements, maxElementsConstraintKind, minCharacters, minCharactersConstraintKind, minElements, minElementsConstraintKind, multipleOf, multipleOfConstraintKind, negative, negativeConstraintKind, nonEncodableStringStructureKind, notEmpty, notEmptyConstraintKind, notZero, notZeroConstraintKind, nullHelper as null, nullFundamentalTypeKind, nullTypeKind, nullable, number, numberFundamentalTypeKind, numberLiteralTypeKind, numberTypeKind, object, objectStructureKind, odd, oddConstraintKind, optional, partial, path, pathConstraintKind, positive, positiveConstraintKind, record, recordStructureKind, refine, refineConstraintKind, regex, regexConstraintKind, required, safe, safeConstraintKind, strictNegative, strictNegativeConstraintKind, strictPositive, strictPositiveConstraintKind, string, stringFundamentalTypeKind, stringLengthEqual, stringLengthEqualConstraintKind, stringLiteralTypeKind, stringTypeKind, structureIdentifier, structureKind, time, timeFundamentalTypeKind, timeTypeKind, trimmed, trimmedConstraintKind, typeIdentifier, typeKind, typeStructureKind, undefinedHelper as undefined, undefinedFundamentalTypeKind, undefinedTypeKind, union, unionStructureKind, url, urlConstraintKind, uuid, uuidConstraintKind };
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { Structure } from './base';
|
|
2
2
|
import { Structures } from './types';
|
|
3
3
|
import * as DKind from '../../kind';
|
|
4
|
-
export declare const structureIdentifier:
|
|
5
|
-
<GenericKindHandler extends DKind.Handler<DKind.Definition<"@DuplojsLangDataStructure/structure", unknown>> | DKind.Handler<DKind.Definition<"@DuplojsLangDataStructure/array-structure", unknown>> | DKind.Handler<DKind.Definition<"@DuplojsLangDataStructure/object-structure", unknown>> | DKind.Handler<DKind.Definition<"@DuplojsLangDataStructure/type-structure", unknown>> | DKind.Handler<DKind.Definition<"@DuplojsLangModeling/entity-structure", unknown>> | DKind.Handler<DKind.Definition<"@DuplojsLangModeling/tagged-object-structure", unknown>> | DKind.Handler<DKind.Definition<"@DuplojsLangDataStructure/lazy-structure", unknown>> | DKind.Handler<DKind.Definition<"@DuplojsLangDataStructure/record-structure", unknown>> | DKind.Handler<DKind.Definition<"@DuplojsLangDataStructure/union-structure", unknown>> | DKind.Handler<DKind.Definition<"@DuplojsLangDataStructure/non-encodable-string-structure", unknown>> | DKind.Handler<DKind.Definition<"@DuplojsLangModeling/new-type-structure", unknown>> | DKind.Handler<DKind.Definition<"@DuplojsLangDataStructure/structure", Record<string, unknown>>> | DKind.Handler<DKind.Definition<"@DuplojsLangDataStructure/structure", readonly unknown[]>> | DKind.Handler<DKind.Definition<"@DuplojsLangDataStructure/structure", import('../../modeling').Entity<string> & Record<string, unknown>>> | DKind.Handler<DKind.Definition<"@DuplojsLangDataStructure/structure", import('../../modeling').ObjectTag<string>>> | DKind.Handler<DKind.Definition<"@DuplojsLangDataStructure/structure", String>> | DKind.Handler<DKind.Definition<"@DuplojsLangDataStructure/structure", import('../../modeling').NewType<string, never>>>, GenericInput extends unknown, GenericGroupedKind extends GenericKindHandler extends DKind.Handler<DKind.Definition<string, unknown>> ? DKind.Kind<GenericKindHandler, GenericKindHandler["definition"]["value"]> : never>(kind: GenericKindHandler | GenericKindHandler[]): (input: GenericInput) => input is (GenericInput extends Structure<unknown, import('..').StructureDefinition<readonly import('..').Constraint<unknown, unknown, import('..').ConstraintDefinition>[]>> ? (Structure<unknown, import('..').StructureDefinition<readonly import('..').Constraint<unknown, unknown, import('..').ConstraintDefinition>[]>> extends infer T ? T extends Structure<unknown, import('..').StructureDefinition<readonly import('..').Constraint<unknown, unknown, import('..').ConstraintDefinition>[]>> ? T extends GenericInput ? GenericInput & Structures extends GenericGroupedKind ? GenericGroupedKind & GenericInput & Structures : never : never : never : never) | (import('..').ObjectStructure<Record<string, unknown>, readonly import('..').Constraint<Record<string, unknown>, Record<string, unknown>, import('..').ConstraintDefinition>[]> extends infer T_1 ? T_1 extends import('..').ObjectStructure<Record<string, unknown>, readonly import('..').Constraint<Record<string, unknown>, Record<string, unknown>, import('..').ConstraintDefinition>[]> ? T_1 extends GenericInput ? GenericInput & Structures extends GenericGroupedKind ? GenericGroupedKind & GenericInput & Structures : never : never : never : never) | (import('..').ArrayStructure<readonly unknown[], readonly import('..').Constraint<readonly unknown[], readonly unknown[], import('..').ConstraintDefinition>[]> extends infer T_2 ? T_2 extends import('..').ArrayStructure<readonly unknown[], readonly import('..').Constraint<readonly unknown[], readonly unknown[], import('..').ConstraintDefinition>[]> ? T_2 extends GenericInput ? GenericInput & Structures extends GenericGroupedKind ? GenericGroupedKind & GenericInput & Structures : never : never : never : never) | (import('..').TypeStructure<unknown, readonly import('..').Constraint<unknown, unknown, import('..').ConstraintDefinition>[]> extends infer T_3 ? T_3 extends import('..').TypeStructure<unknown, readonly import('..').Constraint<unknown, unknown, import('..').ConstraintDefinition>[]> ? T_3 extends GenericInput ? GenericInput & Structures extends GenericGroupedKind ? GenericGroupedKind & GenericInput & Structures : never : never : never : never) | (import('../../modeling').EntityStructure<string, Record<string, unknown>> extends infer T_4 ? T_4 extends import('../../modeling').EntityStructure<string, Record<string, unknown>> ? T_4 extends GenericInput ? GenericInput & Structures extends GenericGroupedKind ? GenericGroupedKind & GenericInput & Structures : never : never : never : never) | (import('../../modeling').TaggedObjectStructure<import('../../modeling').ObjectTag<string>> extends infer T_5 ? T_5 extends import('../../modeling').TaggedObjectStructure<import('../../modeling').ObjectTag<string>> ? T_5 extends GenericInput ? GenericInput & Structures extends GenericGroupedKind ? GenericGroupedKind & GenericInput & Structures : never : never : never : never) | (import('..').LazyStructure<unknown, readonly import('..').Constraint<unknown, unknown, import('..').ConstraintDefinition>[]> extends infer T_6 ? T_6 extends import('..').LazyStructure<unknown, readonly import('..').Constraint<unknown, unknown, import('..').ConstraintDefinition>[]> ? T_6 extends GenericInput ? GenericInput & Structures extends GenericGroupedKind ? GenericGroupedKind & GenericInput & Structures : never : never : never : never) | (import('..').RecordStructure<Record<string, unknown>, readonly import('..').Constraint<Record<string, unknown>, Record<string, unknown>, import('..').ConstraintDefinition>[]> extends infer T_7 ? T_7 extends import('..').RecordStructure<Record<string, unknown>, readonly import('..').Constraint<Record<string, unknown>, Record<string, unknown>, import('..').ConstraintDefinition>[]> ? T_7 extends GenericInput ? GenericInput & Structures extends GenericGroupedKind ? GenericGroupedKind & GenericInput & Structures : never : never : never : never) | (import('..').UnionStructure<unknown, readonly import('..').Constraint<unknown, unknown, import('..').ConstraintDefinition>[]> extends infer T_8 ? T_8 extends import('..').UnionStructure<unknown, readonly import('..').Constraint<unknown, unknown, import('..').ConstraintDefinition>[]> ? T_8 extends GenericInput ? GenericInput & Structures extends GenericGroupedKind ? GenericGroupedKind & GenericInput & Structures : never : never : never : never) | (import('..').NonEncodableStringStructure extends infer T_9 ? T_9 extends import('..').NonEncodableStringStructure ? T_9 extends GenericInput ? GenericInput & Structures extends GenericGroupedKind ? GenericGroupedKind & GenericInput & Structures : never : never : never : never) | (import('../../modeling').NewTypeStructure<string, unknown, readonly import('..').Constraint<unknown, unknown, import('..').ConstraintDefinition>[]> extends infer T_10 ? T_10 extends import('../../modeling').NewTypeStructure<string, unknown, readonly import('..').Constraint<unknown, unknown, import('..').ConstraintDefinition>[]> ? T_10 extends GenericInput ? GenericInput & Structures extends GenericGroupedKind ? GenericGroupedKind & GenericInput & Structures : never : never : never : never) : never) | Extract<GenericInput, GenericGroupedKind>;
|
|
6
|
-
<GenericKindHandler extends DKind.Handler<DKind.Definition<"@DuplojsLangDataStructure/structure", unknown>> | DKind.Handler<DKind.Definition<"@DuplojsLangDataStructure/array-structure", unknown>> | DKind.Handler<DKind.Definition<"@DuplojsLangDataStructure/object-structure", unknown>> | DKind.Handler<DKind.Definition<"@DuplojsLangDataStructure/type-structure", unknown>> | DKind.Handler<DKind.Definition<"@DuplojsLangModeling/entity-structure", unknown>> | DKind.Handler<DKind.Definition<"@DuplojsLangModeling/tagged-object-structure", unknown>> | DKind.Handler<DKind.Definition<"@DuplojsLangDataStructure/lazy-structure", unknown>> | DKind.Handler<DKind.Definition<"@DuplojsLangDataStructure/record-structure", unknown>> | DKind.Handler<DKind.Definition<"@DuplojsLangDataStructure/union-structure", unknown>> | DKind.Handler<DKind.Definition<"@DuplojsLangDataStructure/non-encodable-string-structure", unknown>> | DKind.Handler<DKind.Definition<"@DuplojsLangModeling/new-type-structure", unknown>> | DKind.Handler<DKind.Definition<"@DuplojsLangDataStructure/structure", Record<string, unknown>>> | DKind.Handler<DKind.Definition<"@DuplojsLangDataStructure/structure", readonly unknown[]>> | DKind.Handler<DKind.Definition<"@DuplojsLangDataStructure/structure", import('../../modeling').Entity<string> & Record<string, unknown>>> | DKind.Handler<DKind.Definition<"@DuplojsLangDataStructure/structure", import('../../modeling').ObjectTag<string>>> | DKind.Handler<DKind.Definition<"@DuplojsLangDataStructure/structure", String>> | DKind.Handler<DKind.Definition<"@DuplojsLangDataStructure/structure", import('../../modeling').NewType<string, never>>>, GenericInput extends unknown, GenericGroupedKind extends GenericKindHandler extends DKind.Handler<DKind.Definition<string, unknown>> ? DKind.Kind<GenericKindHandler, GenericKindHandler["definition"]["value"]> : never>(input: GenericInput, kind: GenericKindHandler | GenericKindHandler[]): input is (GenericInput extends Structure<unknown, import('..').StructureDefinition<readonly import('..').Constraint<unknown, unknown, import('..').ConstraintDefinition>[]>> ? (Structure<unknown, import('..').StructureDefinition<readonly import('..').Constraint<unknown, unknown, import('..').ConstraintDefinition>[]>> extends infer T ? T extends Structure<unknown, import('..').StructureDefinition<readonly import('..').Constraint<unknown, unknown, import('..').ConstraintDefinition>[]>> ? T extends GenericInput ? GenericInput & Structures extends GenericGroupedKind ? GenericGroupedKind & GenericInput & Structures : never : never : never : never) | (import('..').ObjectStructure<Record<string, unknown>, readonly import('..').Constraint<Record<string, unknown>, Record<string, unknown>, import('..').ConstraintDefinition>[]> extends infer T_1 ? T_1 extends import('..').ObjectStructure<Record<string, unknown>, readonly import('..').Constraint<Record<string, unknown>, Record<string, unknown>, import('..').ConstraintDefinition>[]> ? T_1 extends GenericInput ? GenericInput & Structures extends GenericGroupedKind ? GenericGroupedKind & GenericInput & Structures : never : never : never : never) | (import('..').ArrayStructure<readonly unknown[], readonly import('..').Constraint<readonly unknown[], readonly unknown[], import('..').ConstraintDefinition>[]> extends infer T_2 ? T_2 extends import('..').ArrayStructure<readonly unknown[], readonly import('..').Constraint<readonly unknown[], readonly unknown[], import('..').ConstraintDefinition>[]> ? T_2 extends GenericInput ? GenericInput & Structures extends GenericGroupedKind ? GenericGroupedKind & GenericInput & Structures : never : never : never : never) | (import('..').TypeStructure<unknown, readonly import('..').Constraint<unknown, unknown, import('..').ConstraintDefinition>[]> extends infer T_3 ? T_3 extends import('..').TypeStructure<unknown, readonly import('..').Constraint<unknown, unknown, import('..').ConstraintDefinition>[]> ? T_3 extends GenericInput ? GenericInput & Structures extends GenericGroupedKind ? GenericGroupedKind & GenericInput & Structures : never : never : never : never) | (import('../../modeling').EntityStructure<string, Record<string, unknown>> extends infer T_4 ? T_4 extends import('../../modeling').EntityStructure<string, Record<string, unknown>> ? T_4 extends GenericInput ? GenericInput & Structures extends GenericGroupedKind ? GenericGroupedKind & GenericInput & Structures : never : never : never : never) | (import('../../modeling').TaggedObjectStructure<import('../../modeling').ObjectTag<string>> extends infer T_5 ? T_5 extends import('../../modeling').TaggedObjectStructure<import('../../modeling').ObjectTag<string>> ? T_5 extends GenericInput ? GenericInput & Structures extends GenericGroupedKind ? GenericGroupedKind & GenericInput & Structures : never : never : never : never) | (import('..').LazyStructure<unknown, readonly import('..').Constraint<unknown, unknown, import('..').ConstraintDefinition>[]> extends infer T_6 ? T_6 extends import('..').LazyStructure<unknown, readonly import('..').Constraint<unknown, unknown, import('..').ConstraintDefinition>[]> ? T_6 extends GenericInput ? GenericInput & Structures extends GenericGroupedKind ? GenericGroupedKind & GenericInput & Structures : never : never : never : never) | (import('..').RecordStructure<Record<string, unknown>, readonly import('..').Constraint<Record<string, unknown>, Record<string, unknown>, import('..').ConstraintDefinition>[]> extends infer T_7 ? T_7 extends import('..').RecordStructure<Record<string, unknown>, readonly import('..').Constraint<Record<string, unknown>, Record<string, unknown>, import('..').ConstraintDefinition>[]> ? T_7 extends GenericInput ? GenericInput & Structures extends GenericGroupedKind ? GenericGroupedKind & GenericInput & Structures : never : never : never : never) | (import('..').UnionStructure<unknown, readonly import('..').Constraint<unknown, unknown, import('..').ConstraintDefinition>[]> extends infer T_8 ? T_8 extends import('..').UnionStructure<unknown, readonly import('..').Constraint<unknown, unknown, import('..').ConstraintDefinition>[]> ? T_8 extends GenericInput ? GenericInput & Structures extends GenericGroupedKind ? GenericGroupedKind & GenericInput & Structures : never : never : never : never) | (import('..').NonEncodableStringStructure extends infer T_9 ? T_9 extends import('..').NonEncodableStringStructure ? T_9 extends GenericInput ? GenericInput & Structures extends GenericGroupedKind ? GenericGroupedKind & GenericInput & Structures : never : never : never : never) | (import('../../modeling').NewTypeStructure<string, unknown, readonly import('..').Constraint<unknown, unknown, import('..').ConstraintDefinition>[]> extends infer T_10 ? T_10 extends import('../../modeling').NewTypeStructure<string, unknown, readonly import('..').Constraint<unknown, unknown, import('..').ConstraintDefinition>[]> ? T_10 extends GenericInput ? GenericInput & Structures extends GenericGroupedKind ? GenericGroupedKind & GenericInput & Structures : never : never : never : never) : never) | Extract<GenericInput, GenericGroupedKind>;
|
|
7
|
-
};
|
|
4
|
+
export declare const structureIdentifier: DKind.KindIdentifier<Structure<unknown, import('..').StructureDefinition<readonly import('..').Constraint<unknown, unknown, import('..').ConstraintDefinition>[]>>, Structures>;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { Type } from './base';
|
|
2
2
|
import { Types } from './types';
|
|
3
3
|
import * as DKind from '../../kind';
|
|
4
|
-
export declare const typeIdentifier:
|
|
5
|
-
<GenericKindHandler extends DKind.Handler<DKind.Definition<"@DuplojsLangDataStructure/bigint-type", unknown>> | DKind.Handler<DKind.Definition<"@DuplojsLangDataStructure/bigint-literal-type", unknown>> | DKind.Handler<DKind.Definition<"@DuplojsLangDataStructure/boolean-type", unknown>> | DKind.Handler<DKind.Definition<"@DuplojsLangDataStructure/boolean-literal-type", unknown>> | DKind.Handler<DKind.Definition<"@DuplojsLangDataStructure/date-type", unknown>> | DKind.Handler<DKind.Definition<"@DuplojsLangDataStructure/null-type", unknown>> | DKind.Handler<DKind.Definition<"@DuplojsLangDataStructure/number-type", unknown>> | DKind.Handler<DKind.Definition<"@DuplojsLangDataStructure/number-literal-type", unknown>> | DKind.Handler<DKind.Definition<"@DuplojsLangDataStructure/string-type", unknown>> | DKind.Handler<DKind.Definition<"@DuplojsLangDataStructure/string-literal-type", unknown>> | DKind.Handler<DKind.Definition<"@DuplojsLangDataStructure/time-type", unknown>> | DKind.Handler<DKind.Definition<"@DuplojsLangDataStructure/undefined-type", unknown>> | DKind.Handler<DKind.Definition<"@DuplojsLangDataStructure/type", bigint>> | DKind.Handler<DKind.Definition<"@DuplojsLangDataStructure/type", boolean>> | DKind.Handler<DKind.Definition<"@DuplojsLangDataStructure/type", import('../../chrono').TheDate>> | DKind.Handler<DKind.Definition<"@DuplojsLangDataStructure/type", null>> | DKind.Handler<DKind.Definition<"@DuplojsLangDataStructure/type", number>> | DKind.Handler<DKind.Definition<"@DuplojsLangDataStructure/type", string>> | DKind.Handler<DKind.Definition<"@DuplojsLangDataStructure/type", import('../../chrono').TheTime>> | DKind.Handler<DKind.Definition<"@DuplojsLangDataStructure/type", undefined>>, GenericInput extends unknown, GenericGroupedKind extends GenericKindHandler extends DKind.Handler<DKind.Definition<string, unknown>> ? DKind.Kind<GenericKindHandler, GenericKindHandler["definition"]["value"]> : never>(kind: GenericKindHandler | GenericKindHandler[]): (input: GenericInput) => input is (GenericInput extends Type<import('..').FundamentalType<unknown>, unknown, import('..').TypeDefinition> ? (import('..').BigintType extends infer T ? T extends import('..').BigintType ? T extends GenericInput ? GenericInput & Types extends GenericGroupedKind ? GenericGroupedKind & GenericInput & Types : never : never : never : never) | (import('..').BooleanType extends infer T_1 ? T_1 extends import('..').BooleanType ? T_1 extends GenericInput ? GenericInput & Types extends GenericGroupedKind ? GenericGroupedKind & GenericInput & Types : never : never : never : never) | (import('..').DateType extends infer T_2 ? T_2 extends import('..').DateType ? T_2 extends GenericInput ? GenericInput & Types extends GenericGroupedKind ? GenericGroupedKind & GenericInput & Types : never : never : never : never) | (import('..').NullType extends infer T_3 ? T_3 extends import('..').NullType ? T_3 extends GenericInput ? GenericInput & Types extends GenericGroupedKind ? GenericGroupedKind & GenericInput & Types : never : never : never : never) | (import('..').NumberType extends infer T_4 ? T_4 extends import('..').NumberType ? T_4 extends GenericInput ? GenericInput & Types extends GenericGroupedKind ? GenericGroupedKind & GenericInput & Types : never : never : never : never) | (import('..').StringType extends infer T_5 ? T_5 extends import('..').StringType ? T_5 extends GenericInput ? GenericInput & Types extends GenericGroupedKind ? GenericGroupedKind & GenericInput & Types : never : never : never : never) | (import('..').TimeType extends infer T_6 ? T_6 extends import('..').TimeType ? T_6 extends GenericInput ? GenericInput & Types extends GenericGroupedKind ? GenericGroupedKind & GenericInput & Types : never : never : never : never) | (import('..').UndefinedType extends infer T_7 ? T_7 extends import('..').UndefinedType ? T_7 extends GenericInput ? GenericInput & Types extends GenericGroupedKind ? GenericGroupedKind & GenericInput & Types : never : never : never : never) | (import('..').BigintLiteralType<bigint> extends infer T_8 ? T_8 extends import('..').BigintLiteralType<bigint> ? T_8 extends GenericInput ? GenericInput & Types extends GenericGroupedKind ? GenericGroupedKind & GenericInput & Types : never : never : never : never) | (import('..').BooleanLiteralType<boolean> extends infer T_9 ? T_9 extends import('..').BooleanLiteralType<boolean> ? T_9 extends GenericInput ? GenericInput & Types extends GenericGroupedKind ? GenericGroupedKind & GenericInput & Types : never : never : never : never) | (import('..').NumberLiteralType<number> extends infer T_10 ? T_10 extends import('..').NumberLiteralType<number> ? T_10 extends GenericInput ? GenericInput & Types extends GenericGroupedKind ? GenericGroupedKind & GenericInput & Types : never : never : never : never) | (import('..').StringLiteralType<string> extends infer T_11 ? T_11 extends import('..').StringLiteralType<string> ? T_11 extends GenericInput ? GenericInput & Types extends GenericGroupedKind ? GenericGroupedKind & GenericInput & Types : never : never : never : never) : never) | Extract<GenericInput, GenericGroupedKind>;
|
|
6
|
-
<GenericKindHandler extends DKind.Handler<DKind.Definition<"@DuplojsLangDataStructure/bigint-type", unknown>> | DKind.Handler<DKind.Definition<"@DuplojsLangDataStructure/bigint-literal-type", unknown>> | DKind.Handler<DKind.Definition<"@DuplojsLangDataStructure/boolean-type", unknown>> | DKind.Handler<DKind.Definition<"@DuplojsLangDataStructure/boolean-literal-type", unknown>> | DKind.Handler<DKind.Definition<"@DuplojsLangDataStructure/date-type", unknown>> | DKind.Handler<DKind.Definition<"@DuplojsLangDataStructure/null-type", unknown>> | DKind.Handler<DKind.Definition<"@DuplojsLangDataStructure/number-type", unknown>> | DKind.Handler<DKind.Definition<"@DuplojsLangDataStructure/number-literal-type", unknown>> | DKind.Handler<DKind.Definition<"@DuplojsLangDataStructure/string-type", unknown>> | DKind.Handler<DKind.Definition<"@DuplojsLangDataStructure/string-literal-type", unknown>> | DKind.Handler<DKind.Definition<"@DuplojsLangDataStructure/time-type", unknown>> | DKind.Handler<DKind.Definition<"@DuplojsLangDataStructure/undefined-type", unknown>> | DKind.Handler<DKind.Definition<"@DuplojsLangDataStructure/type", bigint>> | DKind.Handler<DKind.Definition<"@DuplojsLangDataStructure/type", boolean>> | DKind.Handler<DKind.Definition<"@DuplojsLangDataStructure/type", import('../../chrono').TheDate>> | DKind.Handler<DKind.Definition<"@DuplojsLangDataStructure/type", null>> | DKind.Handler<DKind.Definition<"@DuplojsLangDataStructure/type", number>> | DKind.Handler<DKind.Definition<"@DuplojsLangDataStructure/type", string>> | DKind.Handler<DKind.Definition<"@DuplojsLangDataStructure/type", import('../../chrono').TheTime>> | DKind.Handler<DKind.Definition<"@DuplojsLangDataStructure/type", undefined>>, GenericInput extends unknown, GenericGroupedKind extends GenericKindHandler extends DKind.Handler<DKind.Definition<string, unknown>> ? DKind.Kind<GenericKindHandler, GenericKindHandler["definition"]["value"]> : never>(input: GenericInput, kind: GenericKindHandler | GenericKindHandler[]): input is (GenericInput extends Type<import('..').FundamentalType<unknown>, unknown, import('..').TypeDefinition> ? (import('..').BigintType extends infer T ? T extends import('..').BigintType ? T extends GenericInput ? GenericInput & Types extends GenericGroupedKind ? GenericGroupedKind & GenericInput & Types : never : never : never : never) | (import('..').BooleanType extends infer T_1 ? T_1 extends import('..').BooleanType ? T_1 extends GenericInput ? GenericInput & Types extends GenericGroupedKind ? GenericGroupedKind & GenericInput & Types : never : never : never : never) | (import('..').DateType extends infer T_2 ? T_2 extends import('..').DateType ? T_2 extends GenericInput ? GenericInput & Types extends GenericGroupedKind ? GenericGroupedKind & GenericInput & Types : never : never : never : never) | (import('..').NullType extends infer T_3 ? T_3 extends import('..').NullType ? T_3 extends GenericInput ? GenericInput & Types extends GenericGroupedKind ? GenericGroupedKind & GenericInput & Types : never : never : never : never) | (import('..').NumberType extends infer T_4 ? T_4 extends import('..').NumberType ? T_4 extends GenericInput ? GenericInput & Types extends GenericGroupedKind ? GenericGroupedKind & GenericInput & Types : never : never : never : never) | (import('..').StringType extends infer T_5 ? T_5 extends import('..').StringType ? T_5 extends GenericInput ? GenericInput & Types extends GenericGroupedKind ? GenericGroupedKind & GenericInput & Types : never : never : never : never) | (import('..').TimeType extends infer T_6 ? T_6 extends import('..').TimeType ? T_6 extends GenericInput ? GenericInput & Types extends GenericGroupedKind ? GenericGroupedKind & GenericInput & Types : never : never : never : never) | (import('..').UndefinedType extends infer T_7 ? T_7 extends import('..').UndefinedType ? T_7 extends GenericInput ? GenericInput & Types extends GenericGroupedKind ? GenericGroupedKind & GenericInput & Types : never : never : never : never) | (import('..').BigintLiteralType<bigint> extends infer T_8 ? T_8 extends import('..').BigintLiteralType<bigint> ? T_8 extends GenericInput ? GenericInput & Types extends GenericGroupedKind ? GenericGroupedKind & GenericInput & Types : never : never : never : never) | (import('..').BooleanLiteralType<boolean> extends infer T_9 ? T_9 extends import('..').BooleanLiteralType<boolean> ? T_9 extends GenericInput ? GenericInput & Types extends GenericGroupedKind ? GenericGroupedKind & GenericInput & Types : never : never : never : never) | (import('..').NumberLiteralType<number> extends infer T_10 ? T_10 extends import('..').NumberLiteralType<number> ? T_10 extends GenericInput ? GenericInput & Types extends GenericGroupedKind ? GenericGroupedKind & GenericInput & Types : never : never : never : never) | (import('..').StringLiteralType<string> extends infer T_11 ? T_11 extends import('..').StringLiteralType<string> ? T_11 extends GenericInput ? GenericInput & Types extends GenericGroupedKind ? GenericGroupedKind & GenericInput & Types : never : never : never : never) : never) | Extract<GenericInput, GenericGroupedKind>;
|
|
7
|
-
};
|
|
4
|
+
export declare const typeIdentifier: DKind.KindIdentifier<Type<import('..').FundamentalType<unknown>, unknown, import('..').TypeDefinition>, Types>;
|
package/dist/index.cjs
CHANGED
|
@@ -15,6 +15,7 @@ const require_callThen = require("./common/callThen.cjs");
|
|
|
15
15
|
const require_index$1 = require("./object/index.cjs");
|
|
16
16
|
const require_clone = require("./common/clone.cjs");
|
|
17
17
|
const require_index$2 = require("./common/constraint/cast/index.cjs");
|
|
18
|
+
const require_index$3 = require("./common/constraint/infer/index.cjs");
|
|
18
19
|
const require_remove = require("./common/constraint/remove.cjs");
|
|
19
20
|
const require_detachObjectMethod = require("./common/detachObjectMethod.cjs");
|
|
20
21
|
const require_enum = require("./common/enum.cjs");
|
|
@@ -22,10 +23,10 @@ const require_equal = require("./common/equal.cjs");
|
|
|
22
23
|
const require_escapeRegExp = require("./common/escapeRegExp.cjs");
|
|
23
24
|
const require_externalPromise = require("./common/externalPromise.cjs");
|
|
24
25
|
const require_falsy = require("./common/falsy.cjs");
|
|
25
|
-
const require_index$
|
|
26
|
-
const require_index$
|
|
27
|
-
const require_index$
|
|
28
|
-
const require_index$
|
|
26
|
+
const require_index$4 = require("./array/index.cjs");
|
|
27
|
+
const require_index$5 = require("./generator/index.cjs");
|
|
28
|
+
const require_index$6 = require("./either/index.cjs");
|
|
29
|
+
const require_index$7 = require("./chrono/index.cjs");
|
|
29
30
|
const require_formData = require("./common/formData.cjs");
|
|
30
31
|
const require_forward = require("./common/forward.cjs");
|
|
31
32
|
const require_forwardAsserts = require("./common/forwardAsserts.cjs");
|
|
@@ -50,7 +51,7 @@ const require_promiseAll = require("./common/promiseAll.cjs");
|
|
|
50
51
|
const require_promiseObject = require("./common/promiseObject.cjs");
|
|
51
52
|
const require_queue = require("./common/queue.cjs");
|
|
52
53
|
const require_simpleClone = require("./common/simpleClone.cjs");
|
|
53
|
-
const require_index$
|
|
54
|
+
const require_index$8 = require("./string/index.cjs");
|
|
54
55
|
const require_stringToBytes = require("./common/stringToBytes.cjs");
|
|
55
56
|
const require_stringToMillisecond = require("./common/stringToMillisecond.cjs");
|
|
56
57
|
const require_toCurriedPredicate = require("./common/toCurriedPredicate.cjs");
|
|
@@ -60,68 +61,68 @@ const require_truthy = require("./common/truthy.cjs");
|
|
|
60
61
|
const require_when = require("./common/when.cjs");
|
|
61
62
|
const require_whenElse = require("./common/whenElse.cjs");
|
|
62
63
|
const require_whenNot = require("./common/whenNot.cjs");
|
|
63
|
-
const require_index$
|
|
64
|
-
const require_index$
|
|
65
|
-
const require_index$
|
|
66
|
-
const require_index$
|
|
67
|
-
const require_index$
|
|
68
|
-
const require_index$
|
|
69
|
-
const require_index$
|
|
70
|
-
const require_index$
|
|
71
|
-
const require_index$
|
|
64
|
+
const require_index$9 = require("./common/index.cjs");
|
|
65
|
+
const require_index$10 = require("./path/index.cjs");
|
|
66
|
+
const require_index$11 = require("./number/index.cjs");
|
|
67
|
+
const require_index$12 = require("./dataStructure/index.cjs");
|
|
68
|
+
const require_index$13 = require("./tuple/index.cjs");
|
|
69
|
+
const require_index$14 = require("./modeling/index.cjs");
|
|
70
|
+
const require_index$15 = require("./pattern/index.cjs");
|
|
71
|
+
const require_index$16 = require("./invocation/index.cjs");
|
|
72
|
+
const require_index$17 = require("./printer/index.cjs");
|
|
72
73
|
Object.defineProperty(exports, "A", {
|
|
73
74
|
enumerable: true,
|
|
74
75
|
get: function() {
|
|
75
|
-
return require_index$
|
|
76
|
+
return require_index$4.array_exports;
|
|
76
77
|
}
|
|
77
78
|
});
|
|
78
79
|
exports.AssertsError = require_asserts.AssertsError;
|
|
79
80
|
Object.defineProperty(exports, "C", {
|
|
80
81
|
enumerable: true,
|
|
81
82
|
get: function() {
|
|
82
|
-
return require_index$
|
|
83
|
+
return require_index$7.chrono_exports;
|
|
83
84
|
}
|
|
84
85
|
});
|
|
85
86
|
Object.defineProperty(exports, "DArray", {
|
|
86
87
|
enumerable: true,
|
|
87
88
|
get: function() {
|
|
88
|
-
return require_index$
|
|
89
|
+
return require_index$4.array_exports;
|
|
89
90
|
}
|
|
90
91
|
});
|
|
91
92
|
Object.defineProperty(exports, "DChrono", {
|
|
92
93
|
enumerable: true,
|
|
93
94
|
get: function() {
|
|
94
|
-
return require_index$
|
|
95
|
+
return require_index$7.chrono_exports;
|
|
95
96
|
}
|
|
96
97
|
});
|
|
97
98
|
Object.defineProperty(exports, "DCommon", {
|
|
98
99
|
enumerable: true,
|
|
99
100
|
get: function() {
|
|
100
|
-
return require_index$
|
|
101
|
+
return require_index$9.common_exports;
|
|
101
102
|
}
|
|
102
103
|
});
|
|
103
104
|
Object.defineProperty(exports, "DDataStructure", {
|
|
104
105
|
enumerable: true,
|
|
105
106
|
get: function() {
|
|
106
|
-
return require_index$
|
|
107
|
+
return require_index$12.dataStructure_exports;
|
|
107
108
|
}
|
|
108
109
|
});
|
|
109
110
|
Object.defineProperty(exports, "DEither", {
|
|
110
111
|
enumerable: true,
|
|
111
112
|
get: function() {
|
|
112
|
-
return require_index$
|
|
113
|
+
return require_index$6.either_exports;
|
|
113
114
|
}
|
|
114
115
|
});
|
|
115
116
|
Object.defineProperty(exports, "DGenerator", {
|
|
116
117
|
enumerable: true,
|
|
117
118
|
get: function() {
|
|
118
|
-
return require_index$
|
|
119
|
+
return require_index$5.generator_exports;
|
|
119
120
|
}
|
|
120
121
|
});
|
|
121
122
|
Object.defineProperty(exports, "DInvocation", {
|
|
122
123
|
enumerable: true,
|
|
123
124
|
get: function() {
|
|
124
|
-
return require_index$
|
|
125
|
+
return require_index$16.invocation_exports;
|
|
125
126
|
}
|
|
126
127
|
});
|
|
127
128
|
Object.defineProperty(exports, "DKind", {
|
|
@@ -133,13 +134,13 @@ Object.defineProperty(exports, "DKind", {
|
|
|
133
134
|
Object.defineProperty(exports, "DModeling", {
|
|
134
135
|
enumerable: true,
|
|
135
136
|
get: function() {
|
|
136
|
-
return require_index$
|
|
137
|
+
return require_index$14.modeling_exports;
|
|
137
138
|
}
|
|
138
139
|
});
|
|
139
140
|
Object.defineProperty(exports, "DNumber", {
|
|
140
141
|
enumerable: true,
|
|
141
142
|
get: function() {
|
|
142
|
-
return require_index$
|
|
143
|
+
return require_index$11.number_exports;
|
|
143
144
|
}
|
|
144
145
|
});
|
|
145
146
|
Object.defineProperty(exports, "DObject", {
|
|
@@ -151,55 +152,55 @@ Object.defineProperty(exports, "DObject", {
|
|
|
151
152
|
Object.defineProperty(exports, "DPath", {
|
|
152
153
|
enumerable: true,
|
|
153
154
|
get: function() {
|
|
154
|
-
return require_index$
|
|
155
|
+
return require_index$10.path_exports;
|
|
155
156
|
}
|
|
156
157
|
});
|
|
157
158
|
Object.defineProperty(exports, "DPattern", {
|
|
158
159
|
enumerable: true,
|
|
159
160
|
get: function() {
|
|
160
|
-
return require_index$
|
|
161
|
+
return require_index$15.pattern_exports;
|
|
161
162
|
}
|
|
162
163
|
});
|
|
163
164
|
Object.defineProperty(exports, "DPrinter", {
|
|
164
165
|
enumerable: true,
|
|
165
166
|
get: function() {
|
|
166
|
-
return require_index$
|
|
167
|
+
return require_index$17.printer_exports;
|
|
167
168
|
}
|
|
168
169
|
});
|
|
169
170
|
Object.defineProperty(exports, "DS", {
|
|
170
171
|
enumerable: true,
|
|
171
172
|
get: function() {
|
|
172
|
-
return require_index$
|
|
173
|
+
return require_index$12.dataStructure_exports;
|
|
173
174
|
}
|
|
174
175
|
});
|
|
175
176
|
Object.defineProperty(exports, "DString", {
|
|
176
177
|
enumerable: true,
|
|
177
178
|
get: function() {
|
|
178
|
-
return require_index$
|
|
179
|
+
return require_index$8.string_exports;
|
|
179
180
|
}
|
|
180
181
|
});
|
|
181
182
|
Object.defineProperty(exports, "DTuple", {
|
|
182
183
|
enumerable: true,
|
|
183
184
|
get: function() {
|
|
184
|
-
return require_index$
|
|
185
|
+
return require_index$13.tuple_exports;
|
|
185
186
|
}
|
|
186
187
|
});
|
|
187
188
|
Object.defineProperty(exports, "E", {
|
|
188
189
|
enumerable: true,
|
|
189
190
|
get: function() {
|
|
190
|
-
return require_index$
|
|
191
|
+
return require_index$6.either_exports;
|
|
191
192
|
}
|
|
192
193
|
});
|
|
193
194
|
Object.defineProperty(exports, "G", {
|
|
194
195
|
enumerable: true,
|
|
195
196
|
get: function() {
|
|
196
|
-
return require_index$
|
|
197
|
+
return require_index$5.generator_exports;
|
|
197
198
|
}
|
|
198
199
|
});
|
|
199
200
|
Object.defineProperty(exports, "I", {
|
|
200
201
|
enumerable: true,
|
|
201
202
|
get: function() {
|
|
202
|
-
return require_index$
|
|
203
|
+
return require_index$16.invocation_exports;
|
|
203
204
|
}
|
|
204
205
|
});
|
|
205
206
|
exports.InvalidBytesInStringError = require_stringToBytes.InvalidBytesInStringError;
|
|
@@ -207,14 +208,14 @@ exports.InvalidMillisecondInStringError = require_stringToMillisecond.InvalidMil
|
|
|
207
208
|
Object.defineProperty(exports, "M", {
|
|
208
209
|
enumerable: true,
|
|
209
210
|
get: function() {
|
|
210
|
-
return require_index$
|
|
211
|
+
return require_index$14.modeling_exports;
|
|
211
212
|
}
|
|
212
213
|
});
|
|
213
214
|
exports.MissingBuilderMethodsError = require_builder.MissingBuilderMethodsError;
|
|
214
215
|
Object.defineProperty(exports, "N", {
|
|
215
216
|
enumerable: true,
|
|
216
217
|
get: function() {
|
|
217
|
-
return require_index$
|
|
218
|
+
return require_index$11.number_exports;
|
|
218
219
|
}
|
|
219
220
|
});
|
|
220
221
|
Object.defineProperty(exports, "O", {
|
|
@@ -226,19 +227,19 @@ Object.defineProperty(exports, "O", {
|
|
|
226
227
|
Object.defineProperty(exports, "P", {
|
|
227
228
|
enumerable: true,
|
|
228
229
|
get: function() {
|
|
229
|
-
return require_index$
|
|
230
|
+
return require_index$15.pattern_exports;
|
|
230
231
|
}
|
|
231
232
|
});
|
|
232
233
|
Object.defineProperty(exports, "S", {
|
|
233
234
|
enumerable: true,
|
|
234
235
|
get: function() {
|
|
235
|
-
return require_index$
|
|
236
|
+
return require_index$8.string_exports;
|
|
236
237
|
}
|
|
237
238
|
});
|
|
238
239
|
Object.defineProperty(exports, "T", {
|
|
239
240
|
enumerable: true,
|
|
240
241
|
get: function() {
|
|
241
|
-
return require_index$
|
|
242
|
+
return require_index$13.tuple_exports;
|
|
242
243
|
}
|
|
243
244
|
});
|
|
244
245
|
exports.TheFormData = require_formData.TheFormData;
|
|
@@ -269,6 +270,7 @@ exports.falsy = require_falsy.falsy;
|
|
|
269
270
|
exports.forward = require_forward.forward;
|
|
270
271
|
exports.forwardAsserts = require_forwardAsserts.forwardAsserts;
|
|
271
272
|
exports.forwardLog = require_forwardLog.forwardLog;
|
|
273
|
+
exports.infer = require_index$3.infer;
|
|
272
274
|
exports.innerPipe = require_innerPipe.innerPipe;
|
|
273
275
|
exports.instanceOf = require_instanceOf.instanceOf;
|
|
274
276
|
exports.isType = require_isType.isType;
|
package/dist/index.mjs
CHANGED
|
@@ -14,6 +14,7 @@ import { callThen } from "./common/callThen.mjs";
|
|
|
14
14
|
import { object_exports } from "./object/index.mjs";
|
|
15
15
|
import { clone } from "./common/clone.mjs";
|
|
16
16
|
import { cast, shameOnYou } from "./common/constraint/cast/index.mjs";
|
|
17
|
+
import { infer } from "./common/constraint/infer/index.mjs";
|
|
17
18
|
import { removeConstraint } from "./common/constraint/remove.mjs";
|
|
18
19
|
import { detachObjectMethod } from "./common/detachObjectMethod.mjs";
|
|
19
20
|
import { createEnum } from "./common/enum.mjs";
|
|
@@ -60,12 +61,12 @@ import { when } from "./common/when.mjs";
|
|
|
60
61
|
import { whenElse } from "./common/whenElse.mjs";
|
|
61
62
|
import { whenNot } from "./common/whenNot.mjs";
|
|
62
63
|
import { common_exports } from "./common/index.mjs";
|
|
64
|
+
import { path_exports } from "./path/index.mjs";
|
|
63
65
|
import { number_exports } from "./number/index.mjs";
|
|
64
66
|
import { dataStructure_exports } from "./dataStructure/index.mjs";
|
|
65
67
|
import { tuple_exports } from "./tuple/index.mjs";
|
|
66
68
|
import { modeling_exports } from "./modeling/index.mjs";
|
|
67
69
|
import { pattern_exports } from "./pattern/index.mjs";
|
|
68
70
|
import { invocation_exports } from "./invocation/index.mjs";
|
|
69
|
-
import { path_exports } from "./path/index.mjs";
|
|
70
71
|
import { printer_exports } from "./printer/index.mjs";
|
|
71
|
-
export { array_exports as A, AssertsError, chrono_exports as C, array_exports as DArray, chrono_exports as DChrono, common_exports as DCommon, dataStructure_exports as DDataStructure, either_exports as DEither, generator_exports as DGenerator, invocation_exports as DInvocation, kind_exports as DKind, modeling_exports as DModeling, number_exports as DNumber, object_exports as DObject, path_exports as DPath, pattern_exports as DPattern, printer_exports as DPrinter, dataStructure_exports as DS, string_exports as DString, tuple_exports as DTuple, either_exports as E, generator_exports as G, invocation_exports as I, InvalidBytesInStringError, InvalidMillisecondInStringError, modeling_exports as M, MissingBuilderMethodsError, number_exports as N, object_exports as O, pattern_exports as P, string_exports as S, tuple_exports as T, TheFormData, and, asserts, asyncInnerPipe, asyncLoop, asyncPipe, bindPrototypeMethods, builderKind, callThen, cast, clone, createAsyncRetry, createBuilder, createEnum, createExternalPromise, createFormData, createGlobalStore, createInterpolation, createKind, createQueue, createTransformer, detachObjectMethod, equal, escapeRegExp, falsy, forward, forwardAsserts, forwardLog, innerPipe, instanceOf, isType, justExec, justReturn, loop, memo, memoObject, memoPromise, mimeType, or, pipe, pipeCall, prepareAsyncPipe, preparePipe, promiseAll, promiseObject, queueKind, removeConstraint, shameOnYou, simpleClone, stringToBytes, stringToMillisecond, timeout, toCurriedPredicate, toJSON, toNative, toRegExp, transformer, truthy, useAsyncRetry, when, whenElse, whenNot };
|
|
72
|
+
export { array_exports as A, AssertsError, chrono_exports as C, array_exports as DArray, chrono_exports as DChrono, common_exports as DCommon, dataStructure_exports as DDataStructure, either_exports as DEither, generator_exports as DGenerator, invocation_exports as DInvocation, kind_exports as DKind, modeling_exports as DModeling, number_exports as DNumber, object_exports as DObject, path_exports as DPath, pattern_exports as DPattern, printer_exports as DPrinter, dataStructure_exports as DS, string_exports as DString, tuple_exports as DTuple, either_exports as E, generator_exports as G, invocation_exports as I, InvalidBytesInStringError, InvalidMillisecondInStringError, modeling_exports as M, MissingBuilderMethodsError, number_exports as N, object_exports as O, pattern_exports as P, string_exports as S, tuple_exports as T, TheFormData, and, asserts, asyncInnerPipe, asyncLoop, asyncPipe, bindPrototypeMethods, builderKind, callThen, cast, clone, createAsyncRetry, createBuilder, createEnum, createExternalPromise, createFormData, createGlobalStore, createInterpolation, createKind, createQueue, createTransformer, detachObjectMethod, equal, escapeRegExp, falsy, forward, forwardAsserts, forwardLog, infer, innerPipe, instanceOf, isType, justExec, justReturn, loop, memo, memoObject, memoPromise, mimeType, or, pipe, pipeCall, prepareAsyncPipe, preparePipe, promiseAll, promiseObject, queueKind, removeConstraint, shameOnYou, simpleClone, stringToBytes, stringToMillisecond, timeout, toCurriedPredicate, toJSON, toNative, toRegExp, transformer, truthy, useAsyncRetry, when, whenElse, whenNot };
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { Kind, Handler } from './base';
|
|
2
2
|
import { GetHandler } from './types';
|
|
3
3
|
import type * as DCommon from '../common';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
type KindIdentifierHandlers<GenericParent extends Kind<Handler>, GenericChildren extends GenericParent> = GenericChildren extends infer InferredChildren ? InferredChildren extends GenericParent ? GetHandler<InferredChildren> : never : never;
|
|
5
|
+
type KindIdentifierResult<GenericParent extends Kind<Handler>, GenericChildren extends GenericParent, GenericInput extends unknown, GenericGroupedKind extends unknown> = ((GenericInput extends GenericParent ? GenericChildren extends GenericInput ? GenericChildren extends GenericGroupedKind ? GenericChildren : never : never : never) | Extract<GenericInput, GenericGroupedKind>);
|
|
6
|
+
export interface KindIdentifier<GenericParent extends Kind<Handler>, GenericChildren extends GenericParent> {
|
|
7
|
+
<GenericKindHandler extends KindIdentifierHandlers<GenericParent, GenericChildren>, GenericInput extends unknown, GenericGroupedKind extends DCommon.Forward<GenericKindHandler extends Handler ? Kind<GenericKindHandler> : never>>(kind: GenericKindHandler | GenericKindHandler[]): (input: GenericInput) => input is KindIdentifierResult<GenericParent, GenericChildren, GenericInput, GenericGroupedKind>;
|
|
8
|
+
<GenericKindHandler extends KindIdentifierHandlers<GenericParent, GenericChildren>, GenericInput extends unknown, GenericGroupedKind extends DCommon.Forward<GenericKindHandler extends Handler ? Kind<GenericKindHandler> : never>>(input: GenericInput, kind: GenericKindHandler | GenericKindHandler[]): input is KindIdentifierResult<GenericParent, GenericChildren, GenericInput, GenericGroupedKind>;
|
|
9
|
+
}
|
|
10
|
+
export declare function createKindIdentifier<GenericParent extends Kind<Handler>, GenericChildren extends GenericParent>(): KindIdentifier<GenericParent, GenericChildren>;
|
|
11
|
+
export {};
|
package/dist/number/index.cjs
CHANGED
|
@@ -3,7 +3,6 @@ const require_betweenThan = require("./betweenThan.cjs");
|
|
|
3
3
|
const require_betweenThanOrEqual = require("./betweenThanOrEqual.cjs");
|
|
4
4
|
const require_greaterThan = require("./greaterThan.cjs");
|
|
5
5
|
const require_greaterThanOrEqual = require("./greaterThanOrEqual.cjs");
|
|
6
|
-
const require_infer = require("./infer.cjs");
|
|
7
6
|
const require_isEven = require("./isEven.cjs");
|
|
8
7
|
const require_isInteger = require("./isInteger.cjs");
|
|
9
8
|
const require_isMultipleOf = require("./isMultipleOf.cjs");
|
|
@@ -28,7 +27,6 @@ var number_exports = /* @__PURE__ */ require_runtime.__exportAll({
|
|
|
28
27
|
betweenThanOrEqual: () => require_betweenThanOrEqual.betweenThanOrEqual,
|
|
29
28
|
greaterThan: () => require_greaterThan.greaterThan,
|
|
30
29
|
greaterThanOrEqual: () => require_greaterThanOrEqual.greaterThanOrEqual,
|
|
31
|
-
infer: () => require_infer.infer,
|
|
32
30
|
isEven: () => require_isEven.isEven,
|
|
33
31
|
isInteger: () => require_isInteger.isInteger,
|
|
34
32
|
isMultipleOf: () => require_isMultipleOf.isMultipleOf,
|
|
@@ -53,7 +51,6 @@ exports.betweenThan = require_betweenThan.betweenThan;
|
|
|
53
51
|
exports.betweenThanOrEqual = require_betweenThanOrEqual.betweenThanOrEqual;
|
|
54
52
|
exports.greaterThan = require_greaterThan.greaterThan;
|
|
55
53
|
exports.greaterThanOrEqual = require_greaterThanOrEqual.greaterThanOrEqual;
|
|
56
|
-
exports.infer = require_infer.infer;
|
|
57
54
|
exports.isEven = require_isEven.isEven;
|
|
58
55
|
exports.isInteger = require_isInteger.isInteger;
|
|
59
56
|
exports.isMultipleOf = require_isMultipleOf.isMultipleOf;
|
package/dist/number/index.d.ts
CHANGED
package/dist/number/index.mjs
CHANGED
|
@@ -3,7 +3,6 @@ import { betweenThan } from "./betweenThan.mjs";
|
|
|
3
3
|
import { betweenThanOrEqual } from "./betweenThanOrEqual.mjs";
|
|
4
4
|
import { greaterThan } from "./greaterThan.mjs";
|
|
5
5
|
import { greaterThanOrEqual } from "./greaterThanOrEqual.mjs";
|
|
6
|
-
import { infer } from "./infer.mjs";
|
|
7
6
|
import { isEven } from "./isEven.mjs";
|
|
8
7
|
import { isInteger } from "./isInteger.mjs";
|
|
9
8
|
import { isMultipleOf } from "./isMultipleOf.mjs";
|
|
@@ -28,7 +27,6 @@ var number_exports = /* @__PURE__ */ __exportAll({
|
|
|
28
27
|
betweenThanOrEqual: () => betweenThanOrEqual,
|
|
29
28
|
greaterThan: () => greaterThan,
|
|
30
29
|
greaterThanOrEqual: () => greaterThanOrEqual,
|
|
31
|
-
infer: () => infer,
|
|
32
30
|
isEven: () => isEven,
|
|
33
31
|
isInteger: () => isInteger,
|
|
34
32
|
isMultipleOf: () => isMultipleOf,
|
|
@@ -49,4 +47,4 @@ var number_exports = /* @__PURE__ */ __exportAll({
|
|
|
49
47
|
sum: () => sum
|
|
50
48
|
});
|
|
51
49
|
//#endregion
|
|
52
|
-
export { betweenThan, betweenThanOrEqual, greaterThan, greaterThanOrEqual,
|
|
50
|
+
export { betweenThan, betweenThanOrEqual, greaterThan, greaterThanOrEqual, isEven, isInteger, isMultipleOf, isNegative, isNotZero, isOdd, isPositive, isSafe, isStrictNegative, isStrictPositive, lessThan, lessThanOrEqual, max, maxOf, min, minOf, number_exports, sort, sum };
|