arktype 3.0.0-beta.1 → 3.0.0-rc.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 +48 -144
- package/out/_internal/regex/charset.d.ts +24 -0
- package/out/_internal/regex/escape.d.ts +29 -0
- package/out/_internal/regex/execArray.d.ts +24 -0
- package/out/_internal/regex/group.d.ts +34 -0
- package/out/_internal/regex/index.d.ts +2 -0
- package/out/_internal/regex/internal.d.ts +9 -0
- package/out/_internal/regex/parse.d.ts +10 -0
- package/out/_internal/regex/quantify.d.ts +59 -0
- package/out/_internal/regex/regex.d.ts +38 -0
- package/out/_internal/regex/state.d.ts +383 -0
- package/out/_internal/schema/codecs.d.ts +2 -0
- package/out/_internal/schema/config.d.ts +103 -0
- package/out/_internal/schema/constraint.d.ts +78 -0
- package/out/_internal/schema/errors.d.ts +1 -0
- package/out/_internal/schema/generic.d.ts +85 -0
- package/out/_internal/schema/i18n.d.ts +3 -0
- package/out/_internal/schema/index.d.ts +54 -0
- package/out/_internal/schema/internal.d.ts +15 -0
- package/out/_internal/schema/intrinsic.d.ts +28 -0
- package/out/_internal/schema/kinds.d.ts +76 -0
- package/out/_internal/schema/module.d.ts +23 -0
- package/out/_internal/schema/mutatesInput.d.ts +2 -0
- package/out/_internal/schema/node.d.ts +349 -0
- package/out/_internal/schema/parse.d.ts +77 -0
- package/out/_internal/schema/parseSchema.d.ts +116 -0
- package/out/_internal/schema/predicate.d.ts +46 -0
- package/out/_internal/schema/refinements/after.d.ts +32 -0
- package/out/_internal/schema/refinements/before.d.ts +32 -0
- package/out/_internal/schema/refinements/divisor.d.ts +41 -0
- package/out/_internal/schema/refinements/exactLength.d.ts +43 -0
- package/out/_internal/schema/refinements/kinds.d.ts +40 -0
- package/out/_internal/schema/refinements/max.d.ts +33 -0
- package/out/_internal/schema/refinements/maxLength.d.ts +32 -0
- package/out/_internal/schema/refinements/min.d.ts +33 -0
- package/out/_internal/schema/refinements/minLength.d.ts +32 -0
- package/out/_internal/schema/refinements/notEqual.d.ts +38 -0
- package/out/_internal/schema/refinements/notEqualLength.d.ts +38 -0
- package/out/_internal/schema/refinements/pattern.d.ts +43 -0
- package/out/_internal/schema/refinements/range.d.ts +101 -0
- package/out/_internal/schema/roots/alias.d.ts +49 -0
- package/out/_internal/schema/roots/basis.d.ts +12 -0
- package/out/_internal/schema/roots/domain.d.ts +45 -0
- package/out/_internal/schema/roots/intersection.d.ts +72 -0
- package/out/_internal/schema/roots/morph.d.ts +59 -0
- package/out/_internal/schema/roots/proto.d.ts +42 -0
- package/out/_internal/schema/roots/root.d.ts +163 -0
- package/out/_internal/schema/roots/union.d.ts +146 -0
- package/out/_internal/schema/roots/unit.d.ts +36 -0
- package/out/_internal/schema/runtime.d.ts +29 -0
- package/out/_internal/schema/runtimeLean.d.ts +2 -0
- package/out/_internal/schema/runtimeNone.d.ts +2 -0
- package/out/_internal/schema/runtimeNoneLean.d.ts +2 -0
- package/out/_internal/schema/scope.d.ts +203 -0
- package/out/_internal/schema/shared/codecs.d.ts +5 -0
- package/out/_internal/schema/shared/compile.d.ts +144 -0
- package/out/_internal/schema/shared/configured.d.ts +14 -0
- package/out/_internal/schema/shared/declare.d.ts +100 -0
- package/out/_internal/schema/shared/disjoint.d.ts +45 -0
- package/out/_internal/schema/shared/enWriters.d.ts +30 -0
- package/out/_internal/schema/shared/errorModes.d.ts +25 -0
- package/out/_internal/schema/shared/errorWriters.d.ts +34 -0
- package/out/_internal/schema/shared/errors.d.ts +264 -0
- package/out/_internal/schema/shared/implement.d.ts +154 -0
- package/out/_internal/schema/shared/inPlace.d.ts +8 -0
- package/out/_internal/schema/shared/issueFeatures.d.ts +38 -0
- package/out/_internal/schema/shared/issues.d.ts +261 -0
- package/out/_internal/schema/shared/issuesLean.d.ts +80 -0
- package/out/_internal/schema/shared/issuesNone.d.ts +22 -0
- package/out/_internal/schema/shared/issuesNoneLean.d.ts +20 -0
- package/out/_internal/schema/shared/issuesUndetailed.d.ts +25 -0
- package/out/_internal/schema/shared/jsonSchema.d.ts +153 -0
- package/out/_internal/schema/shared/listed.d.ts +15 -0
- package/out/_internal/schema/shared/locale.d.ts +149 -0
- package/out/_internal/schema/shared/registry.d.ts +16 -0
- package/out/_internal/schema/shared/render.d.ts +3 -0
- package/out/_internal/schema/shared/rootApply.d.ts +19 -0
- package/out/_internal/schema/shared/sets.d.ts +26 -0
- package/out/_internal/schema/shared/standardFailure.d.ts +22 -0
- package/out/_internal/schema/shared/standardSchema.d.ts +124 -0
- package/out/_internal/schema/shared/toJsonSchema.d.ts +229 -0
- package/out/_internal/schema/shared/transform.d.ts +35 -0
- package/out/_internal/schema/shared/traversal.d.ts +288 -0
- package/out/_internal/schema/shared/utils.d.ts +59 -0
- package/out/_internal/schema/structure/index.d.ts +43 -0
- package/out/_internal/schema/structure/optional.d.ts +61 -0
- package/out/_internal/schema/structure/prop.d.ts +45 -0
- package/out/_internal/schema/structure/required.d.ts +49 -0
- package/out/_internal/schema/structure/sequence.d.ts +127 -0
- package/out/_internal/schema/structure/shared.d.ts +3 -0
- package/out/_internal/schema/structure/structure.d.ts +178 -0
- package/out/_internal/schema/units.d.ts +123 -0
- package/out/_internal/sets/algebra.d.ts +26 -0
- package/out/_internal/sets/constraint.d.ts +19 -0
- package/out/_internal/sets/engine.d.ts +2 -0
- package/out/_internal/sets/formats.d.ts +23 -0
- package/out/_internal/sets/fromJsonSchema.d.ts +15 -0
- package/out/_internal/sets/implement.d.ts +16 -0
- package/out/_internal/sets/index.d.ts +2 -0
- package/out/_internal/sets/internal.d.ts +20 -0
- package/out/_internal/sets/intersections.d.ts +5 -0
- package/out/_internal/sets/kinds.d.ts +3 -0
- package/out/_internal/sets/refinements.d.ts +14 -0
- package/out/_internal/sets/roots/alias.d.ts +3 -0
- package/out/_internal/sets/roots/domain.d.ts +3 -0
- package/out/_internal/sets/roots/intersection.d.ts +4 -0
- package/out/_internal/sets/roots/morph.d.ts +4 -0
- package/out/_internal/sets/roots/proto.d.ts +3 -0
- package/out/_internal/sets/roots/union.d.ts +16 -0
- package/out/_internal/sets/roots/unit.d.ts +3 -0
- package/out/_internal/sets/structure/index.d.ts +3 -0
- package/out/_internal/sets/structure/prop.d.ts +8 -0
- package/out/_internal/sets/structure/sequence.d.ts +3 -0
- package/out/_internal/sets/structure/structure.d.ts +3 -0
- package/out/_internal/sets/toJsonSchema.d.ts +25 -0
- package/out/_internal/util/arrays.d.ts +130 -0
- package/out/_internal/util/clone.d.ts +4 -0
- package/out/_internal/util/describe.d.ts +25 -0
- package/out/_internal/util/domain.d.ts +49 -0
- package/out/_internal/util/errors.d.ts +29 -0
- package/out/_internal/util/facts.d.ts +22 -0
- package/out/_internal/util/flatMorph.d.ts +41 -0
- package/out/_internal/util/formats.d.ts +8 -0
- package/out/_internal/util/functions.d.ts +33 -0
- package/out/_internal/util/generics.d.ts +65 -0
- package/out/_internal/util/get.d.ts +9 -0
- package/out/_internal/util/hkt.d.ts +27 -0
- package/out/_internal/util/i18n.d.ts +12 -0
- package/out/_internal/util/index.d.ts +28 -0
- package/out/_internal/util/internal.d.ts +2 -0
- package/out/_internal/util/intersections.d.ts +50 -0
- package/out/_internal/util/isomorphic.d.ts +8 -0
- package/out/_internal/util/keys.d.ts +18 -0
- package/out/_internal/util/lazily.d.ts +7 -0
- package/out/_internal/util/numbers.d.ts +82 -0
- package/out/_internal/util/objectKinds.d.ts +157 -0
- package/out/_internal/util/path.d.ts +16 -0
- package/out/_internal/util/primitive.d.ts +16 -0
- package/out/_internal/util/records.d.ts +173 -0
- package/out/_internal/util/registry.d.ts +13 -0
- package/out/_internal/util/scanner.d.ts +110 -0
- package/out/_internal/util/serialize.d.ts +40 -0
- package/out/_internal/util/strings.d.ts +35 -0
- package/out/_internal/util/traits.d.ts +89 -0
- package/out/_internal/util/unionToTuple.d.ts +14 -0
- package/out/_internal/util/weak.d.ts +8 -0
- package/out/attributes.d.ts +15 -11
- package/out/checkers.d.ts +1 -1
- package/out/chunk-22RQSVV3.js +0 -0
- package/out/chunk-3HZC67MT.js +965 -0
- package/out/chunk-3KBOPH3J.js +1564 -0
- package/out/chunk-3SH2BQ4T.js +15 -0
- package/out/chunk-46PLKNON.js +126 -0
- package/out/{chunk-G45P2CLE.js → chunk-4FTHWK63.js} +6 -1
- package/out/{chunk-UK5UGFOX.js → chunk-4HREHNIV.js} +23 -11
- package/out/chunk-4NZCLVBD.js +14 -0
- package/out/chunk-6FMBO47M.js +7 -0
- package/out/chunk-7TALAWYX.js +10 -0
- package/out/{chunk-DLWCO4RV.js → chunk-BCYKO54Z.js} +11 -2
- package/out/chunk-BDJVONP7.js +168 -0
- package/out/{chunk-E3DZXEZK.js → chunk-C2JOL5M2.js} +4 -2
- package/out/{chunk-2U2AWCI3.js → chunk-C2V6QPE3.js} +126 -97
- package/out/chunk-C3B4IFQL.js +6408 -0
- package/out/chunk-CWSF57VM.js +10 -0
- package/out/chunk-F5BACUJS.js +7 -0
- package/out/{chunk-EVCML554.js → chunk-FWRSDUJ2.js} +14 -5
- package/out/chunk-GID3FSQA.js +161 -0
- package/out/chunk-I2KLQ2HA.js +22 -0
- package/out/chunk-K7SLP5D2.js +84 -0
- package/out/chunk-KQPSKGUI.js +9 -0
- package/out/chunk-KXOC3JEX.js +8234 -0
- package/out/chunk-KXOSUYRA.js +405 -0
- package/out/chunk-LHNEY6QW.js +0 -0
- package/out/chunk-MTWKGAGO.js +323 -0
- package/out/chunk-NU73GNCX.js +170 -0
- package/out/{chunk-RAZ3TXOE.js → chunk-P5W67FQH.js} +34 -19
- package/out/chunk-PDLTEX6Z.js +1118 -0
- package/out/{chunk-VV6YDN2D.js → chunk-QUS4IAXJ.js} +304 -263
- package/out/chunk-R7WXIH5P.js +94 -0
- package/out/chunk-TACLEIDM.js +95 -0
- package/out/chunk-UJJGG4VQ.js +71 -0
- package/out/chunk-US6BWOGJ.js +109 -0
- package/out/chunk-VMMMOO4R.js +945 -0
- package/out/chunk-VYMXHSFR.js +439 -0
- package/out/chunk-W2XOI5DY.js +141 -0
- package/out/chunk-WC5L5YRP.js +25 -0
- package/out/{chunk-NRIGTMPM.js → chunk-WKOSL2G6.js} +4 -1
- package/out/chunk-XLG66ZDF.js +0 -0
- package/out/{chunk-5U2ZMDNI.js → chunk-XNUAQSJ4.js} +52 -30
- package/out/chunk-ZRYEHGSG.js +79 -0
- package/out/cli.d.ts +28 -0
- package/out/cli.js +636 -0
- package/out/codecs.d.ts +6 -5
- package/out/codecs.js +23 -7
- package/out/config.d.ts +5 -17
- package/out/config.js +11 -2
- package/out/declare.d.ts +40 -12
- package/out/deferred.d.ts +2 -2
- package/out/errors.d.ts +1 -1
- package/out/errors.js +10 -2
- package/out/fn.d.ts +20 -13
- package/out/fromJsonSchema.d.ts +18 -0
- package/out/generic.d.ts +9 -6
- package/out/i18n.d.ts +2 -2
- package/out/i18n.js +9 -2
- package/out/index.d.ts +16 -7
- package/out/index.js +25 -8
- package/out/internal.d.ts +4 -0
- package/out/internal.js +41 -17
- package/out/island.js +22 -6
- package/out/islandDependency.js +42 -18
- package/out/jsonSchema/infer.d.ts +805 -0
- package/out/jsonSchema/validate.d.ts +416 -0
- package/out/keywords/Array.d.ts +2 -2
- package/out/keywords/builtins.d.ts +3 -3
- package/out/keywords/constructors.d.ts +1 -1
- package/out/keywords/functions.d.ts +5 -192
- package/out/keywords/keywords.d.ts +3 -3
- package/out/keywords/number.d.ts +2 -2
- package/out/keywords/phrases.d.ts +4 -191
- package/out/keywords/string.d.ts +3 -3
- package/out/keywords/ts.d.ts +18 -18
- package/out/keywords/ts.js +19 -4
- package/out/locale.d.ts +6 -2
- package/out/locales/de.js +9 -2
- package/out/locales/en.js +21 -5
- package/out/match.d.ts +13 -10
- package/out/module.d.ts +2 -2
- package/out/mutatesInput.js +18 -3
- package/out/nary.d.ts +220 -194
- package/out/parser/ast/bounds.d.ts +2 -2
- package/out/parser/ast/default.d.ts +2 -2
- package/out/parser/ast/divisor.d.ts +2 -2
- package/out/parser/ast/generic.d.ts +2 -2
- package/out/parser/ast/infer.d.ts +1 -1
- package/out/parser/ast/keyof.d.ts +2 -2
- package/out/parser/ast/utils.d.ts +1 -1
- package/out/parser/ast/validate.d.ts +2 -2
- package/out/parser/definition.d.ts +4 -4
- package/out/parser/objectLiteral.d.ts +2 -2
- package/out/parser/property.d.ts +2 -2
- package/out/parser/reduce/dynamic.d.ts +2 -2
- package/out/parser/reduce/shared.d.ts +1 -1
- package/out/parser/reduce/static.d.ts +1 -1
- package/out/parser/shift/operand/enclosed.d.ts +2 -2
- package/out/parser/shift/operand/genericArgs.d.ts +2 -2
- package/out/parser/shift/operand/operand.d.ts +1 -1
- package/out/parser/shift/operand/unenclosed.d.ts +2 -2
- package/out/parser/shift/operand/unresolvable.d.ts +2 -2
- package/out/parser/shift/operator/bounds.d.ts +2 -2
- package/out/parser/shift/operator/brand.d.ts +2 -2
- package/out/parser/shift/operator/default.d.ts +4 -4
- package/out/parser/shift/operator/divisor.d.ts +1 -1
- package/out/parser/shift/operator/operator.d.ts +1 -1
- package/out/parser/shift/tokens.d.ts +1 -1
- package/out/parser/string.d.ts +2 -2
- package/out/parser/tupleExpressions.d.ts +6 -8
- package/out/parser/tupleLiteral.d.ts +2 -2
- package/out/precompiled.d.ts +1 -1
- package/out/precompiled.js +16 -2
- package/out/regex.d.ts +1 -0
- package/out/regex.js +2 -0
- package/out/runtime.d.ts +10 -8
- package/out/runtime.js +6 -4
- package/out/runtimeDevelopment.js +70 -52
- package/out/schema.d.ts +1 -0
- package/out/schema.js +15 -0
- package/out/schemaInternal.d.ts +1 -0
- package/out/schemaInternal.js +1401 -0
- package/out/schemaIssueFeatures.d.ts +1 -0
- package/out/schemaRuntime.d.ts +1 -0
- package/out/schemaRuntime.js +7 -0
- package/out/schemaRuntimeLean.d.ts +1 -0
- package/out/schemaRuntimeLean.js +1870 -0
- package/out/schemaRuntimeNone.d.ts +1 -0
- package/out/schemaRuntimeNone.js +1774 -0
- package/out/schemaRuntimeNoneLean.d.ts +1 -0
- package/out/schemaRuntimeNoneLean.js +1767 -0
- package/out/scope.d.ts +3 -4
- package/out/shared/issueFeatures.d.ts +38 -0
- package/out/shared/issueFeatures.js +40 -0
- package/out/standalone/artifact.d.ts +6 -6
- package/out/standalone/baking.d.ts +2 -2
- package/out/standalone/combinators.d.ts +1 -1
- package/out/standalone/compilers.d.ts +1 -1
- package/out/standalone/fallbacks.d.ts +1 -1
- package/out/standalone/keys.d.ts +1 -1
- package/out/standalone/sites.d.ts +3 -3
- package/out/standalone/units.d.ts +1 -1
- package/out/standalone/values.d.ts +1 -1
- package/out/type.d.ts +6 -6
- package/out/util.d.ts +1 -0
- package/out/util.js +137 -0
- package/out/variants/array.d.ts +6 -6
- package/out/variants/base.d.ts +61 -10
- package/out/variants/date.d.ts +5 -5
- package/out/variants/instantiate.d.ts +1 -1
- package/out/variants/number.d.ts +6 -6
- package/out/variants/object.d.ts +25 -12
- package/out/variants/string.d.ts +8 -8
- package/package.json +183 -8
- package/skills/arktype/SKILL.md +93 -93
- package/skills/arktype/references/migrating.md +144 -158
- package/skills/arktype/references/precompile.md +7 -7
- package/out/chunk-4CUA5XIP.js +0 -7
- package/out/chunk-GPNK5353.js +0 -2529
- package/out/chunk-MLKGABMK.js +0 -9
- package/out/chunk-PRTMQCHS.js +0 -3
- package/out/chunk-R5G57XC7.js +0 -7
- package/out/chunk-SWOOCAHN.js +0 -4
- package/out/chunk-TAHPKDNM.js +0 -3
- package/out/chunk-UETB6YE2.js +0 -14
package/out/nary.d.ts
CHANGED
|
@@ -1,231 +1,232 @@
|
|
|
1
|
-
import type { Morph } from "
|
|
2
|
-
import type { ErrorType, merge } from "
|
|
1
|
+
import type { ArkError, ArkErrors, Morph } from "./_internal/schema/index.js";
|
|
2
|
+
import type { ErrorType, merge } from "./_internal/util/index.js";
|
|
3
3
|
import type { distill, inferIntersection, inferMorph, inferMorphOut, inferNaryIntersection, inferNaryMerge, inferNaryPipe } from "./attributes.ts";
|
|
4
4
|
import type { type } from "./keywords/keywords.ts";
|
|
5
|
+
import type { inferDefinition } from "./parser/definition.ts";
|
|
5
6
|
import type { Type } from "./type.ts";
|
|
6
7
|
import type { instantiateType } from "./variants/instantiate.ts";
|
|
7
8
|
import type { NonObjectMergeErrorMessage } from "./variants/object.ts";
|
|
8
9
|
export type NaryUnionParser<$> = {
|
|
9
10
|
(): Type<never, $>;
|
|
10
|
-
<const a, r = Type<
|
|
11
|
-
<const a, const b, r = Type<
|
|
12
|
-
<const a, const b, const c, r = Type<
|
|
13
|
-
<const a, const b, const c, const d, r = Type<
|
|
14
|
-
<const a, const b, const c, const d, const e, r = Type<
|
|
15
|
-
<const a, const b, const c, const d, const e, const f, r = Type<
|
|
16
|
-
<const a, const b, const c, const d, const e, const f, const g, r = Type<
|
|
17
|
-
<const a, const b, const c, const d, const e, const f, const g, const h, r = Type<
|
|
18
|
-
<const a, const b, const c, const d, const e, const f, const g, const h, const i, r = Type<
|
|
19
|
-
<const a, const b, const c, const d, const e, const f, const g, const h, const i, const j, r = Type<
|
|
20
|
-
<const a, const b, const c, const d, const e, const f, const g, const h, const i, const j, const k, r = Type<
|
|
21
|
-
<const a, const b, const c, const d, const e, const f, const g, const h, const i, const j, const k, const l, r = Type<
|
|
22
|
-
<const a, const b, const c, const d, const e, const f, const g, const h, const i, const j, const k, const l, const m, r = Type<
|
|
23
|
-
<const a, const b, const c, const d, const e, const f, const g, const h, const i, const j, const k, const l, const m, const n, r = Type<
|
|
24
|
-
<const a, const b, const c, const d, const e, const f, const g, const h, const i, const j, const k, const l, const m, const n, const o, r = Type<
|
|
25
|
-
<const a, const b, const c, const d, const e, const f, const g, const h, const i, const j, const k, const l, const m, const n, const o, const p, r = Type<
|
|
26
|
-
<const a, const b, const c, const d, const e, const f, const g, const h, const i, const j, const k, const l, const m, const n, const o, const p, const q, r = Type<
|
|
27
|
-
<const defs extends readonly unknown[], r = Type<
|
|
11
|
+
<const a, r = Type<inferDefinition<a, $>, $>>(a: type.validate<a, $>): r extends infer _ ? _ : never;
|
|
12
|
+
<const a, const b, r = Type<inferDefinition<a, $> | inferDefinition<b, $>, $>>(a: type.validate<a, $>, b: type.validate<b, $>): r extends infer _ ? _ : never;
|
|
13
|
+
<const a, const b, const c, r = Type<inferDefinition<a, $> | inferDefinition<b, $> | inferDefinition<c, $>, $>>(a: type.validate<a, $>, b: type.validate<b, $>, c: type.validate<c, $>): r extends infer _ ? _ : never;
|
|
14
|
+
<const a, const b, const c, const d, r = Type<inferDefinition<a, $> | inferDefinition<b, $> | inferDefinition<c, $> | inferDefinition<d, $>, $>>(a: type.validate<a, $>, b: type.validate<b, $>, c: type.validate<c, $>, d: type.validate<d, $>): r extends infer _ ? _ : never;
|
|
15
|
+
<const a, const b, const c, const d, const e, r = Type<inferDefinition<a, $> | inferDefinition<b, $> | inferDefinition<c, $> | inferDefinition<d, $> | inferDefinition<e, $>, $>>(a: type.validate<a, $>, b: type.validate<b, $>, c: type.validate<c, $>, d: type.validate<d, $>, e: type.validate<e, $>): r extends infer _ ? _ : never;
|
|
16
|
+
<const a, const b, const c, const d, const e, const f, r = Type<inferDefinition<a, $> | inferDefinition<b, $> | inferDefinition<c, $> | inferDefinition<d, $> | inferDefinition<e, $> | inferDefinition<f, $>, $>>(a: type.validate<a, $>, b: type.validate<b, $>, c: type.validate<c, $>, d: type.validate<d, $>, e: type.validate<e, $>, f: type.validate<f, $>): r extends infer _ ? _ : never;
|
|
17
|
+
<const a, const b, const c, const d, const e, const f, const g, r = Type<inferDefinition<a, $> | inferDefinition<b, $> | inferDefinition<c, $> | inferDefinition<d, $> | inferDefinition<e, $> | inferDefinition<f, $> | inferDefinition<g, $>, $>>(a: type.validate<a, $>, b: type.validate<b, $>, c: type.validate<c, $>, d: type.validate<d, $>, e: type.validate<e, $>, f: type.validate<f, $>, g: type.validate<g, $>): r extends infer _ ? _ : never;
|
|
18
|
+
<const a, const b, const c, const d, const e, const f, const g, const h, r = Type<inferDefinition<a, $> | inferDefinition<b, $> | inferDefinition<c, $> | inferDefinition<d, $> | inferDefinition<e, $> | inferDefinition<f, $> | inferDefinition<g, $> | inferDefinition<h, $>, $>>(a: type.validate<a, $>, b: type.validate<b, $>, c: type.validate<c, $>, d: type.validate<d, $>, e: type.validate<e, $>, f: type.validate<f, $>, g: type.validate<g, $>, h: type.validate<h, $>): r extends infer _ ? _ : never;
|
|
19
|
+
<const a, const b, const c, const d, const e, const f, const g, const h, const i, r = Type<inferDefinition<a, $> | inferDefinition<b, $> | inferDefinition<c, $> | inferDefinition<d, $> | inferDefinition<e, $> | inferDefinition<f, $> | inferDefinition<g, $> | inferDefinition<h, $> | inferDefinition<i, $>, $>>(a: type.validate<a, $>, b: type.validate<b, $>, c: type.validate<c, $>, d: type.validate<d, $>, e: type.validate<e, $>, f: type.validate<f, $>, g: type.validate<g, $>, h: type.validate<h, $>, i: type.validate<i, $>): r extends infer _ ? _ : never;
|
|
20
|
+
<const a, const b, const c, const d, const e, const f, const g, const h, const i, const j, r = Type<inferDefinition<a, $> | inferDefinition<b, $> | inferDefinition<c, $> | inferDefinition<d, $> | inferDefinition<e, $> | inferDefinition<f, $> | inferDefinition<g, $> | inferDefinition<h, $> | inferDefinition<i, $> | inferDefinition<j, $>>>(a: type.validate<a, $>, b: type.validate<b, $>, c: type.validate<c, $>, d: type.validate<d, $>, e: type.validate<e, $>, f: type.validate<f, $>, g: type.validate<g, $>, h: type.validate<h, $>, i: type.validate<i, $>, j: type.validate<j, $>): r extends infer _ ? _ : never;
|
|
21
|
+
<const a, const b, const c, const d, const e, const f, const g, const h, const i, const j, const k, r = Type<inferDefinition<a, $> | inferDefinition<b, $> | inferDefinition<c, $> | inferDefinition<d, $> | inferDefinition<e, $> | inferDefinition<f, $> | inferDefinition<g, $> | inferDefinition<h, $> | inferDefinition<i, $> | inferDefinition<j, $> | inferDefinition<k, $>>>(a: type.validate<a, $>, b: type.validate<b, $>, c: type.validate<c, $>, d: type.validate<d, $>, e: type.validate<e, $>, f: type.validate<f, $>, g: type.validate<g, $>, h: type.validate<h, $>, i: type.validate<i, $>, j: type.validate<j, $>, k: type.validate<k, $>): r extends infer _ ? _ : never;
|
|
22
|
+
<const a, const b, const c, const d, const e, const f, const g, const h, const i, const j, const k, const l, r = Type<inferDefinition<a, $> | inferDefinition<b, $> | inferDefinition<c, $> | inferDefinition<d, $> | inferDefinition<e, $> | inferDefinition<f, $> | inferDefinition<g, $> | inferDefinition<h, $> | inferDefinition<i, $> | inferDefinition<j, $> | inferDefinition<k, $> | inferDefinition<l, $>, $>>(a: type.validate<a, $>, b: type.validate<b, $>, c: type.validate<c, $>, d: type.validate<d, $>, e: type.validate<e, $>, f: type.validate<f, $>, g: type.validate<g, $>, h: type.validate<h, $>, i: type.validate<i, $>, j: type.validate<j, $>, k: type.validate<k, $>, l: type.validate<l, $>): r extends infer _ ? _ : never;
|
|
23
|
+
<const a, const b, const c, const d, const e, const f, const g, const h, const i, const j, const k, const l, const m, r = Type<inferDefinition<a, $> | inferDefinition<b, $> | inferDefinition<c, $> | inferDefinition<d, $> | inferDefinition<e, $> | inferDefinition<f, $> | inferDefinition<g, $> | inferDefinition<h, $> | inferDefinition<i, $> | inferDefinition<j, $> | inferDefinition<k, $> | inferDefinition<l, $> | inferDefinition<m, $>, $>>(a: type.validate<a, $>, b: type.validate<b, $>, c: type.validate<c, $>, d: type.validate<d, $>, e: type.validate<e, $>, f: type.validate<f, $>, g: type.validate<g, $>, h: type.validate<h, $>, i: type.validate<i, $>, j: type.validate<j, $>, k: type.validate<k, $>, l: type.validate<l, $>, m: type.validate<m, $>): r extends infer _ ? _ : never;
|
|
24
|
+
<const a, const b, const c, const d, const e, const f, const g, const h, const i, const j, const k, const l, const m, const n, r = Type<inferDefinition<a, $> | inferDefinition<b, $> | inferDefinition<c, $> | inferDefinition<d, $> | inferDefinition<e, $> | inferDefinition<f, $> | inferDefinition<g, $> | inferDefinition<h, $> | inferDefinition<i, $> | inferDefinition<j, $> | inferDefinition<k, $> | inferDefinition<l, $> | inferDefinition<m, $> | inferDefinition<n, $>, $>>(a: type.validate<a, $>, b: type.validate<b, $>, c: type.validate<c, $>, d: type.validate<d, $>, e: type.validate<e, $>, f: type.validate<f, $>, g: type.validate<g, $>, h: type.validate<h, $>, i: type.validate<i, $>, j: type.validate<j, $>, k: type.validate<k, $>, l: type.validate<l, $>, m: type.validate<m, $>, n: type.validate<n, $>): r extends infer _ ? _ : never;
|
|
25
|
+
<const a, const b, const c, const d, const e, const f, const g, const h, const i, const j, const k, const l, const m, const n, const o, r = Type<inferDefinition<a, $> | inferDefinition<b, $> | inferDefinition<c, $> | inferDefinition<d, $> | inferDefinition<e, $> | inferDefinition<f, $> | inferDefinition<g, $> | inferDefinition<h, $> | inferDefinition<i, $> | inferDefinition<j, $> | inferDefinition<k, $> | inferDefinition<l, $> | inferDefinition<m, $> | inferDefinition<n, $> | inferDefinition<o, $>, $>>(a: type.validate<a, $>, b: type.validate<b, $>, c: type.validate<c, $>, d: type.validate<d, $>, e: type.validate<e, $>, f: type.validate<f, $>, g: type.validate<g, $>, h: type.validate<h, $>, i: type.validate<i, $>, j: type.validate<j, $>, k: type.validate<k, $>, l: type.validate<l, $>, m: type.validate<m, $>, n: type.validate<n, $>, o: type.validate<o, $>): r extends infer _ ? _ : never;
|
|
26
|
+
<const a, const b, const c, const d, const e, const f, const g, const h, const i, const j, const k, const l, const m, const n, const o, const p, r = Type<inferDefinition<a, $> | inferDefinition<b, $> | inferDefinition<c, $> | inferDefinition<d, $> | inferDefinition<e, $> | inferDefinition<f, $> | inferDefinition<g, $> | inferDefinition<h, $> | inferDefinition<i, $> | inferDefinition<j, $> | inferDefinition<k, $> | inferDefinition<l, $> | inferDefinition<m, $> | inferDefinition<n, $> | inferDefinition<o, $> | inferDefinition<p, $>, $>>(a: type.validate<a, $>, b: type.validate<b, $>, c: type.validate<c, $>, d: type.validate<d, $>, e: type.validate<e, $>, f: type.validate<f, $>, g: type.validate<g, $>, h: type.validate<h, $>, i: type.validate<i, $>, j: type.validate<j, $>, k: type.validate<k, $>, l: type.validate<l, $>, m: type.validate<m, $>, n: type.validate<n, $>, o: type.validate<o, $>, p: type.validate<p, $>): r extends infer _ ? _ : never;
|
|
27
|
+
<const a, const b, const c, const d, const e, const f, const g, const h, const i, const j, const k, const l, const m, const n, const o, const p, const q, r = Type<inferDefinition<a, $> | inferDefinition<b, $> | inferDefinition<c, $> | inferDefinition<d, $> | inferDefinition<e, $> | inferDefinition<f, $> | inferDefinition<g, $> | inferDefinition<h, $> | inferDefinition<i, $> | inferDefinition<j, $> | inferDefinition<k, $> | inferDefinition<l, $> | inferDefinition<m, $> | inferDefinition<n, $> | inferDefinition<o, $> | inferDefinition<p, $> | inferDefinition<q, $>, $>>(a: type.validate<a, $>, b: type.validate<b, $>, c: type.validate<c, $>, d: type.validate<d, $>, e: type.validate<e, $>, f: type.validate<f, $>, g: type.validate<g, $>, h: type.validate<h, $>, i: type.validate<i, $>, j: type.validate<j, $>, k: type.validate<k, $>, l: type.validate<l, $>, m: type.validate<m, $>, n: type.validate<n, $>, o: type.validate<o, $>, p: type.validate<p, $>, q: type.validate<q, $>): r extends infer _ ? _ : never;
|
|
28
|
+
<const defs extends readonly unknown[], r = Type<inferDefinition<defs[number], $>, $>>(...defs: {
|
|
28
29
|
[i in keyof defs]: type.validate<defs[i], $>;
|
|
29
30
|
}): r extends infer _ ? _ : never;
|
|
30
31
|
};
|
|
31
32
|
export type NaryIntersectionParser<$> = {
|
|
32
33
|
(): Type<unknown, $>;
|
|
33
|
-
<const a, r = Type<
|
|
34
|
-
<const a, const b, r = Type<inferIntersection<
|
|
34
|
+
<const a, r = Type<inferDefinition<a, $>, $>>(a: type.validate<a, $>): r extends infer _ ? _ : never;
|
|
35
|
+
<const a, const b, r = Type<inferIntersection<inferDefinition<a, $>, inferDefinition<b, $>>, $>>(a: type.validate<a, $>, b: type.validate<b, $>): r extends infer _ ? _ : never;
|
|
35
36
|
<const a, const b, const c, r = Type<inferNaryIntersection<[
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
inferDefinition<a, $>,
|
|
38
|
+
inferDefinition<b, $>,
|
|
39
|
+
inferDefinition<c, $>
|
|
39
40
|
]>, $>>(a: type.validate<a, $>, b: type.validate<b, $>, c: type.validate<c, $>): r extends infer _ ? _ : never;
|
|
40
41
|
<const a, const b, const c, const d, r = Type<inferNaryIntersection<[
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
inferDefinition<a, $>,
|
|
43
|
+
inferDefinition<b, $>,
|
|
44
|
+
inferDefinition<c, $>,
|
|
45
|
+
inferDefinition<d, $>
|
|
45
46
|
]>, $>>(a: type.validate<a, $>, b: type.validate<b, $>, c: type.validate<c, $>, d: type.validate<d, $>): r extends infer _ ? _ : never;
|
|
46
47
|
<const a, const b, const c, const d, const e, r = Type<inferNaryIntersection<[
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
48
|
+
inferDefinition<a, $>,
|
|
49
|
+
inferDefinition<b, $>,
|
|
50
|
+
inferDefinition<c, $>,
|
|
51
|
+
inferDefinition<d, $>,
|
|
52
|
+
inferDefinition<e, $>
|
|
52
53
|
]>, $>>(a: type.validate<a, $>, b: type.validate<b, $>, c: type.validate<c, $>, d: type.validate<d, $>, e: type.validate<e, $>): r extends infer _ ? _ : never;
|
|
53
54
|
<const a, const b, const c, const d, const e, const f, r = Type<inferNaryIntersection<[
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
55
|
+
inferDefinition<a, $>,
|
|
56
|
+
inferDefinition<b, $>,
|
|
57
|
+
inferDefinition<c, $>,
|
|
58
|
+
inferDefinition<d, $>,
|
|
59
|
+
inferDefinition<e, $>,
|
|
60
|
+
inferDefinition<f, $>
|
|
60
61
|
]>, $>>(a: type.validate<a, $>, b: type.validate<b, $>, c: type.validate<c, $>, d: type.validate<d, $>, e: type.validate<e, $>, f: type.validate<f, $>): r extends infer _ ? _ : never;
|
|
61
62
|
<const a, const b, const c, const d, const e, const f, const g, r = Type<inferNaryIntersection<[
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
63
|
+
inferDefinition<a, $>,
|
|
64
|
+
inferDefinition<b, $>,
|
|
65
|
+
inferDefinition<c, $>,
|
|
66
|
+
inferDefinition<d, $>,
|
|
67
|
+
inferDefinition<e, $>,
|
|
68
|
+
inferDefinition<f, $>,
|
|
69
|
+
inferDefinition<g, $>
|
|
69
70
|
]>, $>>(a: type.validate<a, $>, b: type.validate<b, $>, c: type.validate<c, $>, d: type.validate<d, $>, e: type.validate<e, $>, f: type.validate<f, $>, g: type.validate<g, $>): r extends infer _ ? _ : never;
|
|
70
71
|
<const a, const b, const c, const d, const e, const f, const g, const h, r = Type<inferNaryIntersection<[
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
72
|
+
inferDefinition<a, $>,
|
|
73
|
+
inferDefinition<b, $>,
|
|
74
|
+
inferDefinition<c, $>,
|
|
75
|
+
inferDefinition<d, $>,
|
|
76
|
+
inferDefinition<e, $>,
|
|
77
|
+
inferDefinition<f, $>,
|
|
78
|
+
inferDefinition<g, $>,
|
|
79
|
+
inferDefinition<h, $>
|
|
79
80
|
]>, $>>(a: type.validate<a, $>, b: type.validate<b, $>, c: type.validate<c, $>, d: type.validate<d, $>, e: type.validate<e, $>, f: type.validate<f, $>, g: type.validate<g, $>, h: type.validate<h, $>): r extends infer _ ? _ : never;
|
|
80
81
|
<const a, const b, const c, const d, const e, const f, const g, const h, const i, r = Type<inferNaryIntersection<[
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
82
|
+
inferDefinition<a, $>,
|
|
83
|
+
inferDefinition<b, $>,
|
|
84
|
+
inferDefinition<c, $>,
|
|
85
|
+
inferDefinition<d, $>,
|
|
86
|
+
inferDefinition<e, $>,
|
|
87
|
+
inferDefinition<f, $>,
|
|
88
|
+
inferDefinition<g, $>,
|
|
89
|
+
inferDefinition<h, $>,
|
|
90
|
+
inferDefinition<i, $>
|
|
90
91
|
]>, $>>(a: type.validate<a, $>, b: type.validate<b, $>, c: type.validate<c, $>, d: type.validate<d, $>, e: type.validate<e, $>, f: type.validate<f, $>, g: type.validate<g, $>, h: type.validate<h, $>, i: type.validate<i, $>): r extends infer _ ? _ : never;
|
|
91
92
|
<const a, const b, const c, const d, const e, const f, const g, const h, const i, const j, r = Type<inferNaryIntersection<[
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
93
|
+
inferDefinition<a, $>,
|
|
94
|
+
inferDefinition<b, $>,
|
|
95
|
+
inferDefinition<c, $>,
|
|
96
|
+
inferDefinition<d, $>,
|
|
97
|
+
inferDefinition<e, $>,
|
|
98
|
+
inferDefinition<f, $>,
|
|
99
|
+
inferDefinition<g, $>,
|
|
100
|
+
inferDefinition<h, $>,
|
|
101
|
+
inferDefinition<i, $>,
|
|
102
|
+
inferDefinition<j, $>
|
|
102
103
|
]>, $>>(a: type.validate<a, $>, b: type.validate<b, $>, c: type.validate<c, $>, d: type.validate<d, $>, e: type.validate<e, $>, f: type.validate<f, $>, g: type.validate<g, $>, h: type.validate<h, $>, i: type.validate<i, $>, j: type.validate<j, $>): r extends infer _ ? _ : never;
|
|
103
104
|
<const a, const b, const c, const d, const e, const f, const g, const h, const i, const j, const k, r = Type<inferNaryIntersection<[
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
105
|
+
inferDefinition<a, $>,
|
|
106
|
+
inferDefinition<b, $>,
|
|
107
|
+
inferDefinition<c, $>,
|
|
108
|
+
inferDefinition<d, $>,
|
|
109
|
+
inferDefinition<e, $>,
|
|
110
|
+
inferDefinition<f, $>,
|
|
111
|
+
inferDefinition<g, $>,
|
|
112
|
+
inferDefinition<h, $>,
|
|
113
|
+
inferDefinition<i, $>,
|
|
114
|
+
inferDefinition<j, $>,
|
|
115
|
+
inferDefinition<k, $>
|
|
115
116
|
]>, $>>(a: type.validate<a, $>, b: type.validate<b, $>, c: type.validate<c, $>, d: type.validate<d, $>, e: type.validate<e, $>, f: type.validate<f, $>, g: type.validate<g, $>, h: type.validate<h, $>, i: type.validate<i, $>, j: type.validate<j, $>, k: type.validate<k, $>): r extends infer _ ? _ : never;
|
|
116
117
|
<const a, const b, const c, const d, const e, const f, const g, const h, const i, const j, const k, const l, r = Type<inferNaryIntersection<[
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
118
|
+
inferDefinition<a, $>,
|
|
119
|
+
inferDefinition<b, $>,
|
|
120
|
+
inferDefinition<c, $>,
|
|
121
|
+
inferDefinition<d, $>,
|
|
122
|
+
inferDefinition<e, $>,
|
|
123
|
+
inferDefinition<f, $>,
|
|
124
|
+
inferDefinition<g, $>,
|
|
125
|
+
inferDefinition<h, $>,
|
|
126
|
+
inferDefinition<i, $>,
|
|
127
|
+
inferDefinition<j, $>,
|
|
128
|
+
inferDefinition<k, $>,
|
|
129
|
+
inferDefinition<l, $>
|
|
129
130
|
]>, $>>(a: type.validate<a, $>, b: type.validate<b, $>, c: type.validate<c, $>, d: type.validate<d, $>, e: type.validate<e, $>, f: type.validate<f, $>, g: type.validate<g, $>, h: type.validate<h, $>, i: type.validate<i, $>, j: type.validate<j, $>, k: type.validate<k, $>, l: type.validate<l, $>): r extends infer _ ? _ : never;
|
|
130
131
|
<const a, const b, const c, const d, const e, const f, const g, const h, const i, const j, const k, const l, const m, r = Type<inferNaryIntersection<[
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
132
|
+
inferDefinition<a, $>,
|
|
133
|
+
inferDefinition<b, $>,
|
|
134
|
+
inferDefinition<c, $>,
|
|
135
|
+
inferDefinition<d, $>,
|
|
136
|
+
inferDefinition<e, $>,
|
|
137
|
+
inferDefinition<f, $>,
|
|
138
|
+
inferDefinition<g, $>,
|
|
139
|
+
inferDefinition<h, $>,
|
|
140
|
+
inferDefinition<i, $>,
|
|
141
|
+
inferDefinition<j, $>,
|
|
142
|
+
inferDefinition<k, $>,
|
|
143
|
+
inferDefinition<l, $>,
|
|
144
|
+
inferDefinition<m, $>
|
|
144
145
|
]>, $>>(a: type.validate<a, $>, b: type.validate<b, $>, c: type.validate<c, $>, d: type.validate<d, $>, e: type.validate<e, $>, f: type.validate<f, $>, g: type.validate<g, $>, h: type.validate<h, $>, i: type.validate<i, $>, j: type.validate<j, $>, k: type.validate<k, $>, l: type.validate<l, $>, m: type.validate<m, $>): r extends infer _ ? _ : never;
|
|
145
146
|
<const a, const b, const c, const d, const e, const f, const g, const h, const i, const j, const k, const l, const m, const n, r = Type<inferNaryIntersection<[
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
147
|
+
inferDefinition<a, $>,
|
|
148
|
+
inferDefinition<b, $>,
|
|
149
|
+
inferDefinition<c, $>,
|
|
150
|
+
inferDefinition<d, $>,
|
|
151
|
+
inferDefinition<e, $>,
|
|
152
|
+
inferDefinition<f, $>,
|
|
153
|
+
inferDefinition<g, $>,
|
|
154
|
+
inferDefinition<h, $>,
|
|
155
|
+
inferDefinition<i, $>,
|
|
156
|
+
inferDefinition<j, $>,
|
|
157
|
+
inferDefinition<k, $>,
|
|
158
|
+
inferDefinition<l, $>,
|
|
159
|
+
inferDefinition<m, $>,
|
|
160
|
+
inferDefinition<n, $>
|
|
160
161
|
]>, $>>(a: type.validate<a, $>, b: type.validate<b, $>, c: type.validate<c, $>, d: type.validate<d, $>, e: type.validate<e, $>, f: type.validate<f, $>, g: type.validate<g, $>, h: type.validate<h, $>, i: type.validate<i, $>, j: type.validate<j, $>, k: type.validate<k, $>, l: type.validate<l, $>, m: type.validate<m, $>, n: type.validate<n, $>): r extends infer _ ? _ : never;
|
|
161
162
|
<const a, const b, const c, const d, const e, const f, const g, const h, const i, const j, const k, const l, const m, const n, const o, r = Type<inferNaryIntersection<[
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
163
|
+
inferDefinition<a, $>,
|
|
164
|
+
inferDefinition<b, $>,
|
|
165
|
+
inferDefinition<c, $>,
|
|
166
|
+
inferDefinition<d, $>,
|
|
167
|
+
inferDefinition<e, $>,
|
|
168
|
+
inferDefinition<f, $>,
|
|
169
|
+
inferDefinition<g, $>,
|
|
170
|
+
inferDefinition<h, $>,
|
|
171
|
+
inferDefinition<i, $>,
|
|
172
|
+
inferDefinition<j, $>,
|
|
173
|
+
inferDefinition<k, $>,
|
|
174
|
+
inferDefinition<l, $>,
|
|
175
|
+
inferDefinition<m, $>,
|
|
176
|
+
inferDefinition<n, $>,
|
|
177
|
+
inferDefinition<o, $>
|
|
177
178
|
]>, $>>(a: type.validate<a, $>, b: type.validate<b, $>, c: type.validate<c, $>, d: type.validate<d, $>, e: type.validate<e, $>, f: type.validate<f, $>, g: type.validate<g, $>, h: type.validate<h, $>, i: type.validate<i, $>, j: type.validate<j, $>, k: type.validate<k, $>, l: type.validate<l, $>, m: type.validate<m, $>, n: type.validate<n, $>, o: type.validate<o, $>): r extends infer _ ? _ : never;
|
|
178
179
|
<const a, const b, const c, const d, const e, const f, const g, const h, const i, const j, const k, const l, const m, const n, const o, const p, r = Type<inferNaryIntersection<[
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
180
|
+
inferDefinition<a, $>,
|
|
181
|
+
inferDefinition<b, $>,
|
|
182
|
+
inferDefinition<c, $>,
|
|
183
|
+
inferDefinition<d, $>,
|
|
184
|
+
inferDefinition<e, $>,
|
|
185
|
+
inferDefinition<f, $>,
|
|
186
|
+
inferDefinition<g, $>,
|
|
187
|
+
inferDefinition<h, $>,
|
|
188
|
+
inferDefinition<i, $>,
|
|
189
|
+
inferDefinition<j, $>,
|
|
190
|
+
inferDefinition<k, $>,
|
|
191
|
+
inferDefinition<l, $>,
|
|
192
|
+
inferDefinition<m, $>,
|
|
193
|
+
inferDefinition<n, $>,
|
|
194
|
+
inferDefinition<o, $>,
|
|
195
|
+
inferDefinition<p, $>
|
|
195
196
|
]>, $>>(a: type.validate<a, $>, b: type.validate<b, $>, c: type.validate<c, $>, d: type.validate<d, $>, e: type.validate<e, $>, f: type.validate<f, $>, g: type.validate<g, $>, h: type.validate<h, $>, i: type.validate<i, $>, j: type.validate<j, $>, k: type.validate<k, $>, l: type.validate<l, $>, m: type.validate<m, $>, n: type.validate<n, $>, o: type.validate<o, $>, p: type.validate<p, $>): r extends infer _ ? _ : never;
|
|
196
197
|
<const a, const b, const c, const d, const e, const f, const g, const h, const i, const j, const k, const l, const m, const n, const o, const p, const q, r = Type<inferNaryIntersection<[
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
198
|
+
inferDefinition<a, $>,
|
|
199
|
+
inferDefinition<b, $>,
|
|
200
|
+
inferDefinition<c, $>,
|
|
201
|
+
inferDefinition<d, $>,
|
|
202
|
+
inferDefinition<e, $>,
|
|
203
|
+
inferDefinition<f, $>,
|
|
204
|
+
inferDefinition<g, $>,
|
|
205
|
+
inferDefinition<h, $>,
|
|
206
|
+
inferDefinition<i, $>,
|
|
207
|
+
inferDefinition<j, $>,
|
|
208
|
+
inferDefinition<k, $>,
|
|
209
|
+
inferDefinition<l, $>,
|
|
210
|
+
inferDefinition<m, $>,
|
|
211
|
+
inferDefinition<n, $>,
|
|
212
|
+
inferDefinition<o, $>,
|
|
213
|
+
inferDefinition<p, $>,
|
|
214
|
+
inferDefinition<q, $>
|
|
214
215
|
]>, $>>(a: type.validate<a, $>, b: type.validate<b, $>, c: type.validate<c, $>, d: type.validate<d, $>, e: type.validate<e, $>, f: type.validate<f, $>, g: type.validate<g, $>, h: type.validate<h, $>, i: type.validate<i, $>, j: type.validate<j, $>, k: type.validate<k, $>, l: type.validate<l, $>, m: type.validate<m, $>, n: type.validate<n, $>, o: type.validate<o, $>, p: type.validate<p, $>, q: type.validate<q, $>): r extends infer _ ? _ : never;
|
|
215
216
|
<const defs extends readonly unknown[], r = Type<inferNaryIntersection<{
|
|
216
|
-
[i in keyof defs]:
|
|
217
|
+
[i in keyof defs]: inferDefinition<defs[i], $>;
|
|
217
218
|
}>, $>>(...defs: {
|
|
218
219
|
[i in keyof defs]: type.validate<defs[i], $>;
|
|
219
220
|
}): r extends infer _ ? _ : never;
|
|
220
221
|
};
|
|
221
222
|
export type NaryMergeParser<$> = {
|
|
222
223
|
(): Type<object, $>;
|
|
223
|
-
<const a, inferredA =
|
|
224
|
-
<const a, const b, inferredA =
|
|
225
|
-
<const a, const b, const c, inferredA =
|
|
226
|
-
<const a, const b, const c, const d, inferredA =
|
|
227
|
-
<const a, const b, const c, const d, const e, inferredA =
|
|
228
|
-
<const a, const b, const c, const d, const e, const f, inferredA =
|
|
224
|
+
<const a, inferredA = inferDefinition<a, $>, r = Type<inferredA, $>>(a: type.validate<a, $> & (inferredA extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredA]>)): r extends infer _ ? _ : never;
|
|
225
|
+
<const a, const b, inferredA = inferDefinition<a, $>, inferredB = inferDefinition<b, $>, r = Type<merge<inferredA, inferredB>, $>>(a: type.validate<a, $> & (inferredA extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredA]>), b: type.validate<b, $> & (inferredB extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredB]>)): r extends infer _ ? _ : never;
|
|
226
|
+
<const a, const b, const c, inferredA = inferDefinition<a, $>, inferredB = inferDefinition<b, $>, inferredC = inferDefinition<c, $>, r = Type<inferNaryMerge<[inferredA, inferredB, inferredC]>, $>>(a: type.validate<a, $> & (inferredA extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredA]>), b: type.validate<b, $> & (inferredB extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredB]>), c: type.validate<c, $> & (inferredC extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredC]>)): r extends infer _ ? _ : never;
|
|
227
|
+
<const a, const b, const c, const d, inferredA = inferDefinition<a, $>, inferredB = inferDefinition<b, $>, inferredC = inferDefinition<c, $>, inferredD = inferDefinition<d, $>, r = Type<inferNaryMerge<[inferredA, inferredB, inferredC, inferredD]>, $>>(a: type.validate<a, $> & (inferredA extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredA]>), b: type.validate<b, $> & (inferredB extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredB]>), c: type.validate<c, $> & (inferredC extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredC]>), d: type.validate<d, $> & (inferredD extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredD]>)): r extends infer _ ? _ : never;
|
|
228
|
+
<const a, const b, const c, const d, const e, inferredA = inferDefinition<a, $>, inferredB = inferDefinition<b, $>, inferredC = inferDefinition<c, $>, inferredD = inferDefinition<d, $>, inferredE = inferDefinition<e, $>, r = Type<inferNaryMerge<[inferredA, inferredB, inferredC, inferredD, inferredE]>, $>>(a: type.validate<a, $> & (inferredA extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredA]>), b: type.validate<b, $> & (inferredB extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredB]>), c: type.validate<c, $> & (inferredC extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredC]>), d: type.validate<d, $> & (inferredD extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredD]>), e: type.validate<e, $> & (inferredE extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredE]>)): r extends infer _ ? _ : never;
|
|
229
|
+
<const a, const b, const c, const d, const e, const f, inferredA = inferDefinition<a, $>, inferredB = inferDefinition<b, $>, inferredC = inferDefinition<c, $>, inferredD = inferDefinition<d, $>, inferredE = inferDefinition<e, $>, inferredF = inferDefinition<f, $>, r = Type<inferNaryMerge<[
|
|
229
230
|
inferredA,
|
|
230
231
|
inferredB,
|
|
231
232
|
inferredC,
|
|
@@ -233,7 +234,7 @@ export type NaryMergeParser<$> = {
|
|
|
233
234
|
inferredE,
|
|
234
235
|
inferredF
|
|
235
236
|
]>, $>>(a: type.validate<a, $> & (inferredA extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredA]>), b: type.validate<b, $> & (inferredB extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredB]>), c: type.validate<c, $> & (inferredC extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredC]>), d: type.validate<d, $> & (inferredD extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredD]>), e: type.validate<e, $> & (inferredE extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredE]>), f: type.validate<f, $> & (inferredF extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredF]>)): r extends infer _ ? _ : never;
|
|
236
|
-
<const a, const b, const c, const d, const e, const f, const g, inferredA =
|
|
237
|
+
<const a, const b, const c, const d, const e, const f, const g, inferredA = inferDefinition<a, $>, inferredB = inferDefinition<b, $>, inferredC = inferDefinition<c, $>, inferredD = inferDefinition<d, $>, inferredE = inferDefinition<e, $>, inferredF = inferDefinition<f, $>, inferredG = inferDefinition<g, $>, r = Type<inferNaryMerge<[
|
|
237
238
|
inferredA,
|
|
238
239
|
inferredB,
|
|
239
240
|
inferredC,
|
|
@@ -242,7 +243,7 @@ export type NaryMergeParser<$> = {
|
|
|
242
243
|
inferredF,
|
|
243
244
|
inferredG
|
|
244
245
|
]>, $>>(a: type.validate<a, $> & (inferredA extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredA]>), b: type.validate<b, $> & (inferredB extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredB]>), c: type.validate<c, $> & (inferredC extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredC]>), d: type.validate<d, $> & (inferredD extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredD]>), e: type.validate<e, $> & (inferredE extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredE]>), f: type.validate<f, $> & (inferredF extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredF]>), g: type.validate<g, $> & (inferredG extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredG]>)): r extends infer _ ? _ : never;
|
|
245
|
-
<const a, const b, const c, const d, const e, const f, const g, const h, inferredA =
|
|
246
|
+
<const a, const b, const c, const d, const e, const f, const g, const h, inferredA = inferDefinition<a, $>, inferredB = inferDefinition<b, $>, inferredC = inferDefinition<c, $>, inferredD = inferDefinition<d, $>, inferredE = inferDefinition<e, $>, inferredF = inferDefinition<f, $>, inferredG = inferDefinition<g, $>, inferredH = inferDefinition<h, $>, r = Type<inferNaryMerge<[
|
|
246
247
|
inferredA,
|
|
247
248
|
inferredB,
|
|
248
249
|
inferredC,
|
|
@@ -252,7 +253,7 @@ export type NaryMergeParser<$> = {
|
|
|
252
253
|
inferredG,
|
|
253
254
|
inferredH
|
|
254
255
|
]>, $>>(a: type.validate<a, $> & (inferredA extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredA]>), b: type.validate<b, $> & (inferredB extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredB]>), c: type.validate<c, $> & (inferredC extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredC]>), d: type.validate<d, $> & (inferredD extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredD]>), e: type.validate<e, $> & (inferredE extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredE]>), f: type.validate<f, $> & (inferredF extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredF]>), g: type.validate<g, $> & (inferredG extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredG]>), h: type.validate<h, $> & (inferredH extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredH]>)): r extends infer _ ? _ : never;
|
|
255
|
-
<const a, const b, const c, const d, const e, const f, const g, const h, const i, inferredA =
|
|
256
|
+
<const a, const b, const c, const d, const e, const f, const g, const h, const i, inferredA = inferDefinition<a, $>, inferredB = inferDefinition<b, $>, inferredC = inferDefinition<c, $>, inferredD = inferDefinition<d, $>, inferredE = inferDefinition<e, $>, inferredF = inferDefinition<f, $>, inferredG = inferDefinition<g, $>, inferredH = inferDefinition<h, $>, inferredI = inferDefinition<i, $>, r = Type<inferNaryMerge<[
|
|
256
257
|
inferredA,
|
|
257
258
|
inferredB,
|
|
258
259
|
inferredC,
|
|
@@ -263,7 +264,7 @@ export type NaryMergeParser<$> = {
|
|
|
263
264
|
inferredH,
|
|
264
265
|
inferredI
|
|
265
266
|
]>, $>>(a: type.validate<a, $> & (inferredA extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredA]>), b: type.validate<b, $> & (inferredB extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredB]>), c: type.validate<c, $> & (inferredC extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredC]>), d: type.validate<d, $> & (inferredD extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredD]>), e: type.validate<e, $> & (inferredE extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredE]>), f: type.validate<f, $> & (inferredF extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredF]>), g: type.validate<g, $> & (inferredG extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredG]>), h: type.validate<h, $> & (inferredH extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredH]>), i: type.validate<i, $> & (inferredI extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredI]>)): r extends infer _ ? _ : never;
|
|
266
|
-
<const a, const b, const c, const d, const e, const f, const g, const h, const i, const j, inferredA =
|
|
267
|
+
<const a, const b, const c, const d, const e, const f, const g, const h, const i, const j, inferredA = inferDefinition<a, $>, inferredB = inferDefinition<b, $>, inferredC = inferDefinition<c, $>, inferredD = inferDefinition<d, $>, inferredE = inferDefinition<e, $>, inferredF = inferDefinition<f, $>, inferredG = inferDefinition<g, $>, inferredH = inferDefinition<h, $>, inferredI = inferDefinition<i, $>, inferredJ = inferDefinition<j, $>, r = Type<inferNaryMerge<[
|
|
267
268
|
inferredA,
|
|
268
269
|
inferredB,
|
|
269
270
|
inferredC,
|
|
@@ -275,7 +276,7 @@ export type NaryMergeParser<$> = {
|
|
|
275
276
|
inferredI,
|
|
276
277
|
inferredJ
|
|
277
278
|
]>, $>>(a: type.validate<a, $> & (inferredA extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredA]>), b: type.validate<b, $> & (inferredB extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredB]>), c: type.validate<c, $> & (inferredC extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredC]>), d: type.validate<d, $> & (inferredD extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredD]>), e: type.validate<e, $> & (inferredE extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredE]>), f: type.validate<f, $> & (inferredF extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredF]>), g: type.validate<g, $> & (inferredG extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredG]>), h: type.validate<h, $> & (inferredH extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredH]>), i: type.validate<i, $> & (inferredI extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredI]>), j: type.validate<j, $> & (inferredJ extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredJ]>)): r extends infer _ ? _ : never;
|
|
278
|
-
<const a, const b, const c, const d, const e, const f, const g, const h, const i, const j, const k, inferredA =
|
|
279
|
+
<const a, const b, const c, const d, const e, const f, const g, const h, const i, const j, const k, inferredA = inferDefinition<a, $>, inferredB = inferDefinition<b, $>, inferredC = inferDefinition<c, $>, inferredD = inferDefinition<d, $>, inferredE = inferDefinition<e, $>, inferredF = inferDefinition<f, $>, inferredG = inferDefinition<g, $>, inferredH = inferDefinition<h, $>, inferredI = inferDefinition<i, $>, inferredJ = inferDefinition<j, $>, inferredK = inferDefinition<k, $>, r = Type<inferNaryMerge<[
|
|
279
280
|
inferredA,
|
|
280
281
|
inferredB,
|
|
281
282
|
inferredC,
|
|
@@ -288,7 +289,7 @@ export type NaryMergeParser<$> = {
|
|
|
288
289
|
inferredJ,
|
|
289
290
|
inferredK
|
|
290
291
|
]>, $>>(a: type.validate<a, $> & (inferredA extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredA]>), b: type.validate<b, $> & (inferredB extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredB]>), c: type.validate<c, $> & (inferredC extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredC]>), d: type.validate<d, $> & (inferredD extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredD]>), e: type.validate<e, $> & (inferredE extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredE]>), f: type.validate<f, $> & (inferredF extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredF]>), g: type.validate<g, $> & (inferredG extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredG]>), h: type.validate<h, $> & (inferredH extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredH]>), i: type.validate<i, $> & (inferredI extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredI]>), j: type.validate<j, $> & (inferredJ extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredJ]>), k: type.validate<k, $> & (inferredK extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredK]>)): r extends infer _ ? _ : never;
|
|
291
|
-
<const a, const b, const c, const d, const e, const f, const g, const h, const i, const j, const k, const l, inferredA =
|
|
292
|
+
<const a, const b, const c, const d, const e, const f, const g, const h, const i, const j, const k, const l, inferredA = inferDefinition<a, $>, inferredB = inferDefinition<b, $>, inferredC = inferDefinition<c, $>, inferredD = inferDefinition<d, $>, inferredE = inferDefinition<e, $>, inferredF = inferDefinition<f, $>, inferredG = inferDefinition<g, $>, inferredH = inferDefinition<h, $>, inferredI = inferDefinition<i, $>, inferredJ = inferDefinition<j, $>, inferredK = inferDefinition<k, $>, inferredL = inferDefinition<l, $>, r = Type<inferNaryMerge<[
|
|
292
293
|
inferredA,
|
|
293
294
|
inferredB,
|
|
294
295
|
inferredC,
|
|
@@ -302,7 +303,7 @@ export type NaryMergeParser<$> = {
|
|
|
302
303
|
inferredK,
|
|
303
304
|
inferredL
|
|
304
305
|
]>, $>>(a: type.validate<a, $> & (inferredA extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredA]>), b: type.validate<b, $> & (inferredB extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredB]>), c: type.validate<c, $> & (inferredC extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredC]>), d: type.validate<d, $> & (inferredD extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredD]>), e: type.validate<e, $> & (inferredE extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredE]>), f: type.validate<f, $> & (inferredF extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredF]>), g: type.validate<g, $> & (inferredG extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredG]>), h: type.validate<h, $> & (inferredH extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredH]>), i: type.validate<i, $> & (inferredI extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredI]>), j: type.validate<j, $> & (inferredJ extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredJ]>), k: type.validate<k, $> & (inferredK extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredK]>), l: type.validate<l, $> & (inferredL extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredL]>)): r extends infer _ ? _ : never;
|
|
305
|
-
<const a, const b, const c, const d, const e, const f, const g, const h, const i, const j, const k, const l, const m, inferredA =
|
|
306
|
+
<const a, const b, const c, const d, const e, const f, const g, const h, const i, const j, const k, const l, const m, inferredA = inferDefinition<a, $>, inferredB = inferDefinition<b, $>, inferredC = inferDefinition<c, $>, inferredD = inferDefinition<d, $>, inferredE = inferDefinition<e, $>, inferredF = inferDefinition<f, $>, inferredG = inferDefinition<g, $>, inferredH = inferDefinition<h, $>, inferredI = inferDefinition<i, $>, inferredJ = inferDefinition<j, $>, inferredK = inferDefinition<k, $>, inferredL = inferDefinition<l, $>, inferredM = inferDefinition<m, $>, r = Type<inferNaryMerge<[
|
|
306
307
|
inferredA,
|
|
307
308
|
inferredB,
|
|
308
309
|
inferredC,
|
|
@@ -317,7 +318,7 @@ export type NaryMergeParser<$> = {
|
|
|
317
318
|
inferredL,
|
|
318
319
|
inferredM
|
|
319
320
|
]>, $>>(a: type.validate<a, $> & (inferredA extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredA]>), b: type.validate<b, $> & (inferredB extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredB]>), c: type.validate<c, $> & (inferredC extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredC]>), d: type.validate<d, $> & (inferredD extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredD]>), e: type.validate<e, $> & (inferredE extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredE]>), f: type.validate<f, $> & (inferredF extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredF]>), g: type.validate<g, $> & (inferredG extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredG]>), h: type.validate<h, $> & (inferredH extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredH]>), i: type.validate<i, $> & (inferredI extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredI]>), j: type.validate<j, $> & (inferredJ extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredJ]>), k: type.validate<k, $> & (inferredK extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredK]>), l: type.validate<l, $> & (inferredL extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredL]>), m: type.validate<m, $> & (inferredM extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredM]>)): r extends infer _ ? _ : never;
|
|
320
|
-
<const a, const b, const c, const d, const e, const f, const g, const h, const i, const j, const k, const l, const m, const n, inferredA =
|
|
321
|
+
<const a, const b, const c, const d, const e, const f, const g, const h, const i, const j, const k, const l, const m, const n, inferredA = inferDefinition<a, $>, inferredB = inferDefinition<b, $>, inferredC = inferDefinition<c, $>, inferredD = inferDefinition<d, $>, inferredE = inferDefinition<e, $>, inferredF = inferDefinition<f, $>, inferredG = inferDefinition<g, $>, inferredH = inferDefinition<h, $>, inferredI = inferDefinition<i, $>, inferredJ = inferDefinition<j, $>, inferredK = inferDefinition<k, $>, inferredL = inferDefinition<l, $>, inferredM = inferDefinition<m, $>, inferredN = inferDefinition<n, $>, r = Type<inferNaryMerge<[
|
|
321
322
|
inferredA,
|
|
322
323
|
inferredB,
|
|
323
324
|
inferredC,
|
|
@@ -333,7 +334,7 @@ export type NaryMergeParser<$> = {
|
|
|
333
334
|
inferredM,
|
|
334
335
|
inferredN
|
|
335
336
|
]>, $>>(a: type.validate<a, $> & (inferredA extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredA]>), b: type.validate<b, $> & (inferredB extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredB]>), c: type.validate<c, $> & (inferredC extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredC]>), d: type.validate<d, $> & (inferredD extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredD]>), e: type.validate<e, $> & (inferredE extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredE]>), f: type.validate<f, $> & (inferredF extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredF]>), g: type.validate<g, $> & (inferredG extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredG]>), h: type.validate<h, $> & (inferredH extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredH]>), i: type.validate<i, $> & (inferredI extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredI]>), j: type.validate<j, $> & (inferredJ extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredJ]>), k: type.validate<k, $> & (inferredK extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredK]>), l: type.validate<l, $> & (inferredL extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredL]>), m: type.validate<m, $> & (inferredM extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredM]>), n: type.validate<n, $> & (inferredN extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredN]>)): r extends infer _ ? _ : never;
|
|
336
|
-
<const a, const b, const c, const d, const e, const f, const g, const h, const i, const j, const k, const l, const m, const n, const o, inferredA =
|
|
337
|
+
<const a, const b, const c, const d, const e, const f, const g, const h, const i, const j, const k, const l, const m, const n, const o, inferredA = inferDefinition<a, $>, inferredB = inferDefinition<b, $>, inferredC = inferDefinition<c, $>, inferredD = inferDefinition<d, $>, inferredE = inferDefinition<e, $>, inferredF = inferDefinition<f, $>, inferredG = inferDefinition<g, $>, inferredH = inferDefinition<h, $>, inferredI = inferDefinition<i, $>, inferredJ = inferDefinition<j, $>, inferredK = inferDefinition<k, $>, inferredL = inferDefinition<l, $>, inferredM = inferDefinition<m, $>, inferredN = inferDefinition<n, $>, inferredO = inferDefinition<o, $>, r = Type<inferNaryMerge<[
|
|
337
338
|
inferredA,
|
|
338
339
|
inferredB,
|
|
339
340
|
inferredC,
|
|
@@ -350,7 +351,7 @@ export type NaryMergeParser<$> = {
|
|
|
350
351
|
inferredN,
|
|
351
352
|
inferredO
|
|
352
353
|
]>, $>>(a: type.validate<a, $> & (inferredA extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredA]>), b: type.validate<b, $> & (inferredB extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredB]>), c: type.validate<c, $> & (inferredC extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredC]>), d: type.validate<d, $> & (inferredD extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredD]>), e: type.validate<e, $> & (inferredE extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredE]>), f: type.validate<f, $> & (inferredF extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredF]>), g: type.validate<g, $> & (inferredG extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredG]>), h: type.validate<h, $> & (inferredH extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredH]>), i: type.validate<i, $> & (inferredI extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredI]>), j: type.validate<j, $> & (inferredJ extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredJ]>), k: type.validate<k, $> & (inferredK extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredK]>), l: type.validate<l, $> & (inferredL extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredL]>), m: type.validate<m, $> & (inferredM extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredM]>), n: type.validate<n, $> & (inferredN extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredN]>), o: type.validate<o, $> & (inferredO extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredO]>)): r extends infer _ ? _ : never;
|
|
353
|
-
<const a, const b, const c, const d, const e, const f, const g, const h, const i, const j, const k, const l, const m, const n, const o, const p, inferredA =
|
|
354
|
+
<const a, const b, const c, const d, const e, const f, const g, const h, const i, const j, const k, const l, const m, const n, const o, const p, inferredA = inferDefinition<a, $>, inferredB = inferDefinition<b, $>, inferredC = inferDefinition<c, $>, inferredD = inferDefinition<d, $>, inferredE = inferDefinition<e, $>, inferredF = inferDefinition<f, $>, inferredG = inferDefinition<g, $>, inferredH = inferDefinition<h, $>, inferredI = inferDefinition<i, $>, inferredJ = inferDefinition<j, $>, inferredK = inferDefinition<k, $>, inferredL = inferDefinition<l, $>, inferredM = inferDefinition<m, $>, inferredN = inferDefinition<n, $>, inferredO = inferDefinition<o, $>, inferredP = inferDefinition<p, $>, r = Type<inferNaryMerge<[
|
|
354
355
|
inferredA,
|
|
355
356
|
inferredB,
|
|
356
357
|
inferredC,
|
|
@@ -368,7 +369,7 @@ export type NaryMergeParser<$> = {
|
|
|
368
369
|
inferredO,
|
|
369
370
|
inferredP
|
|
370
371
|
]>, $>>(a: type.validate<a, $> & (inferredA extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredA]>), b: type.validate<b, $> & (inferredB extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredB]>), c: type.validate<c, $> & (inferredC extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredC]>), d: type.validate<d, $> & (inferredD extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredD]>), e: type.validate<e, $> & (inferredE extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredE]>), f: type.validate<f, $> & (inferredF extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredF]>), g: type.validate<g, $> & (inferredG extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredG]>), h: type.validate<h, $> & (inferredH extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredH]>), i: type.validate<i, $> & (inferredI extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredI]>), j: type.validate<j, $> & (inferredJ extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredJ]>), k: type.validate<k, $> & (inferredK extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredK]>), l: type.validate<l, $> & (inferredL extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredL]>), m: type.validate<m, $> & (inferredM extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredM]>), n: type.validate<n, $> & (inferredN extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredN]>), o: type.validate<o, $> & (inferredO extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredO]>), p: type.validate<p, $> & (inferredP extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredP]>)): r extends infer _ ? _ : never;
|
|
371
|
-
<const a, const b, const c, const d, const e, const f, const g, const h, const i, const j, const k, const l, const m, const n, const o, const p, const q, inferredA =
|
|
372
|
+
<const a, const b, const c, const d, const e, const f, const g, const h, const i, const j, const k, const l, const m, const n, const o, const p, const q, inferredA = inferDefinition<a, $>, inferredB = inferDefinition<b, $>, inferredC = inferDefinition<c, $>, inferredD = inferDefinition<d, $>, inferredE = inferDefinition<e, $>, inferredF = inferDefinition<f, $>, inferredG = inferDefinition<g, $>, inferredH = inferDefinition<h, $>, inferredI = inferDefinition<i, $>, inferredJ = inferDefinition<j, $>, inferredK = inferDefinition<k, $>, inferredL = inferDefinition<l, $>, inferredM = inferDefinition<m, $>, inferredN = inferDefinition<n, $>, inferredO = inferDefinition<o, $>, inferredP = inferDefinition<p, $>, inferredQ = inferDefinition<q, $>, r = Type<inferNaryMerge<[
|
|
372
373
|
inferredA,
|
|
373
374
|
inferredB,
|
|
374
375
|
inferredC,
|
|
@@ -388,11 +389,11 @@ export type NaryMergeParser<$> = {
|
|
|
388
389
|
inferredQ
|
|
389
390
|
]>, $>>(a: type.validate<a, $> & (inferredA extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredA]>), b: type.validate<b, $> & (inferredB extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredB]>), c: type.validate<c, $> & (inferredC extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredC]>), d: type.validate<d, $> & (inferredD extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredD]>), e: type.validate<e, $> & (inferredE extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredE]>), f: type.validate<f, $> & (inferredF extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredF]>), g: type.validate<g, $> & (inferredG extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredG]>), h: type.validate<h, $> & (inferredH extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredH]>), i: type.validate<i, $> & (inferredI extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredI]>), j: type.validate<j, $> & (inferredJ extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredJ]>), k: type.validate<k, $> & (inferredK extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredK]>), l: type.validate<l, $> & (inferredL extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredL]>), m: type.validate<m, $> & (inferredM extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredM]>), n: type.validate<n, $> & (inferredN extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredN]>), o: type.validate<o, $> & (inferredO extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredO]>), p: type.validate<p, $> & (inferredP extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredP]>), q: type.validate<q, $> & (inferredQ extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredQ]>)): r extends infer _ ? _ : never;
|
|
390
391
|
<const defs extends readonly unknown[], r = Type<inferNaryMerge<{
|
|
391
|
-
[i in keyof defs]:
|
|
392
|
+
[i in keyof defs]: inferDefinition<defs[i], $>;
|
|
392
393
|
}>, $>>(...defs: {
|
|
393
|
-
[i in keyof defs]: type.validate<defs[i], $> & (
|
|
394
|
+
[i in keyof defs]: type.validate<defs[i], $> & (inferDefinition<defs[i], $> extends object ? unknown : ErrorType<[
|
|
394
395
|
NonObjectMergeErrorMessage,
|
|
395
|
-
actual:
|
|
396
|
+
actual: inferDefinition<defs[i], $>
|
|
396
397
|
]>);
|
|
397
398
|
}): r extends infer _ ? _ : never;
|
|
398
399
|
};
|
|
@@ -469,5 +470,30 @@ export type NaryPipeParser<$, initial = unknown> = {
|
|
|
469
470
|
p,
|
|
470
471
|
q
|
|
471
472
|
]>, $>>(a: a, b: b, c: c, d: d, e: e, f: f, g: g, h: h, i: i, j: j, k: k, l: l, m: m, n: n, o: o, p: p, q: q): r extends infer _ ? _ : never;
|
|
472
|
-
<
|
|
473
|
+
<a extends Morph<distill.Out<initial>>, aOut, b extends Morph<Exclude<aOut, ArkError | ArkErrors>>, const morphs extends readonly [
|
|
474
|
+
Morph,
|
|
475
|
+
Morph,
|
|
476
|
+
Morph,
|
|
477
|
+
Morph,
|
|
478
|
+
Morph,
|
|
479
|
+
Morph,
|
|
480
|
+
Morph,
|
|
481
|
+
Morph,
|
|
482
|
+
Morph,
|
|
483
|
+
Morph,
|
|
484
|
+
Morph,
|
|
485
|
+
Morph,
|
|
486
|
+
Morph,
|
|
487
|
+
Morph,
|
|
488
|
+
Morph,
|
|
489
|
+
Morph,
|
|
490
|
+
...Morph[]
|
|
491
|
+
], r = instantiateType<inferNaryPipe<[Type<initial>, a, b, ...morphs]>, $>>(a: a & Morph<distill.Out<initial>, aOut>, b: b & Morph<Exclude<aOut, ArkError | ArkErrors>>, ...defs: expectedPipeDefs<morphs, inferMorphOut<b>>): r extends infer _ ? _ : never;
|
|
492
|
+
<const morphs extends readonly Morph[], r = Type<inferNaryPipe<morphs>, $>>(...defs: expectedPipeDefs<morphs, distill.Out<initial>>): r extends infer _ ? _ : never;
|
|
473
493
|
};
|
|
494
|
+
type expectedPipeDefs<morphs extends readonly Morph[], initialOut, all extends readonly Morph[] = morphs> = {
|
|
495
|
+
[i in keyof morphs]: morphs[i] & expectedPipeMorphAt<all, i, initialOut>;
|
|
496
|
+
};
|
|
497
|
+
type expectedPipeMorphAt<morphs extends readonly Morph[], i, initialOut> = number extends i ? expectedVariadicRestMorph<morphs, initialOut> : i extends "0" ? Morph<initialOut> : i extends keyof (readonly [unknown, ...morphs]) ? (readonly [unknown, ...morphs])[i] extends infer prev extends Morph ? Morph<inferMorphOut<prev>> : Morph : Morph;
|
|
498
|
+
type expectedVariadicRestMorph<morphs extends readonly Morph[], prevOut> = morphs extends (readonly [infer head extends Morph, ...infer tail extends readonly Morph[]]) ? expectedVariadicRestMorph<tail, inferMorphOut<head>> : morphs extends readonly [...infer init extends readonly Morph[], Morph] ? expectedVariadicRestMorph<init, prevOut> : [Morph.In<morphs[number]>] extends [never] ? Morph : Morph<prevOut | inferMorphOut<morphs[number]>>;
|
|
499
|
+
export {};
|