arktype 2.1.19 → 2.1.21
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 +6 -35
- package/out/attributes.d.ts +10 -3
- package/out/keywords/string.d.ts +5 -3
- package/out/keywords/string.js +75 -43
- package/out/methods/base.d.ts +4 -4
- package/out/nary.d.ts +318 -325
- package/out/parser/tupleLiteral.js +9 -3
- package/package.json +3 -3
package/out/nary.d.ts
CHANGED
|
@@ -7,397 +7,390 @@ import type { NonObjectMergeErrorMessage } from "./methods/object.ts";
|
|
|
7
7
|
import type { Type } from "./type.ts";
|
|
8
8
|
export type NaryUnionParser<$> = {
|
|
9
9
|
(): Type<never, $>;
|
|
10
|
-
<const a, r = Type<type.infer<a
|
|
11
|
-
<const a, const b, r = Type<type.infer<a
|
|
12
|
-
<const a, const b, const c, r = Type<type.infer<a
|
|
13
|
-
<const a, const b, const c, const d, r = Type<type.infer<a
|
|
14
|
-
<const a, const b, const c, const d, const e, r = Type<type.infer<a
|
|
15
|
-
<const a, const b, const c, const d, const e, const f, r = Type<type.infer<a
|
|
16
|
-
<const a, const b, const c, const d, const e, const f, const g, r = Type<type.infer<a
|
|
17
|
-
<const a, const b, const c, const d, const e, const f, const g, const h, r = Type<type.infer<a
|
|
18
|
-
<const a, const b, const c, const d, const e, const f, const g, const h, const i, r = Type<type.infer<a
|
|
19
|
-
<const a, const b, const c, const d, const e, const f, const g, const h, const i, const j, r = Type<type.infer<a
|
|
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<type.infer<a
|
|
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<type.infer<a
|
|
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<type.infer<a
|
|
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<type.infer<a
|
|
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<type.infer<a
|
|
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<type.infer<a
|
|
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<type.infer<a
|
|
27
|
-
<const defs extends readonly unknown[], r = Type<type.infer<defs[number]
|
|
28
|
-
[i in keyof defs]: type.validate<defs[i]
|
|
10
|
+
<const a, r = Type<type.infer<a, $>, $>>(a: type.validate<a, $>): r extends infer _ ? _ : never;
|
|
11
|
+
<const a, const b, r = Type<type.infer<a, $> | type.infer<b, $>, $>>(a: type.validate<a, $>, b: type.validate<b, $>): r extends infer _ ? _ : never;
|
|
12
|
+
<const a, const b, const c, r = Type<type.infer<a, $> | type.infer<b, $> | type.infer<c, $>, $>>(a: type.validate<a, $>, b: type.validate<b, $>, c: type.validate<c, $>): r extends infer _ ? _ : never;
|
|
13
|
+
<const a, const b, const c, const d, r = Type<type.infer<a, $> | type.infer<b, $> | type.infer<c, $> | type.infer<d, $>, $>>(a: type.validate<a, $>, b: type.validate<b, $>, c: type.validate<c, $>, d: type.validate<d, $>): r extends infer _ ? _ : never;
|
|
14
|
+
<const a, const b, const c, const d, const e, r = Type<type.infer<a, $> | type.infer<b, $> | type.infer<c, $> | type.infer<d, $> | type.infer<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;
|
|
15
|
+
<const a, const b, const c, const d, const e, const f, r = Type<type.infer<a, $> | type.infer<b, $> | type.infer<c, $> | type.infer<d, $> | type.infer<e, $> | type.infer<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;
|
|
16
|
+
<const a, const b, const c, const d, const e, const f, const g, r = Type<type.infer<a, $> | type.infer<b, $> | type.infer<c, $> | type.infer<d, $> | type.infer<e, $> | type.infer<f, $> | type.infer<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;
|
|
17
|
+
<const a, const b, const c, const d, const e, const f, const g, const h, r = Type<type.infer<a, $> | type.infer<b, $> | type.infer<c, $> | type.infer<d, $> | type.infer<e, $> | type.infer<f, $> | type.infer<g, $> | type.infer<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;
|
|
18
|
+
<const a, const b, const c, const d, const e, const f, const g, const h, const i, r = Type<type.infer<a, $> | type.infer<b, $> | type.infer<c, $> | type.infer<d, $> | type.infer<e, $> | type.infer<f, $> | type.infer<g, $> | type.infer<h, $> | type.infer<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;
|
|
19
|
+
<const a, const b, const c, const d, const e, const f, const g, const h, const i, const j, r = Type<type.infer<a, $> | type.infer<b, $> | type.infer<c, $> | type.infer<d, $> | type.infer<e, $> | type.infer<f, $> | type.infer<g, $> | type.infer<h, $> | type.infer<i, $> | type.infer<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;
|
|
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<type.infer<a, $> | type.infer<b, $> | type.infer<c, $> | type.infer<d, $> | type.infer<e, $> | type.infer<f, $> | type.infer<g, $> | type.infer<h, $> | type.infer<i, $> | type.infer<j, $> | type.infer<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;
|
|
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<type.infer<a, $> | type.infer<b, $> | type.infer<c, $> | type.infer<d, $> | type.infer<e, $> | type.infer<f, $> | type.infer<g, $> | type.infer<h, $> | type.infer<i, $> | type.infer<j, $> | type.infer<k, $> | type.infer<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;
|
|
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<type.infer<a, $> | type.infer<b, $> | type.infer<c, $> | type.infer<d, $> | type.infer<e, $> | type.infer<f, $> | type.infer<g, $> | type.infer<h, $> | type.infer<i, $> | type.infer<j, $> | type.infer<k, $> | type.infer<l, $> | type.infer<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;
|
|
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<type.infer<a, $> | type.infer<b, $> | type.infer<c, $> | type.infer<d, $> | type.infer<e, $> | type.infer<f, $> | type.infer<g, $> | type.infer<h, $> | type.infer<i, $> | type.infer<j, $> | type.infer<k, $> | type.infer<l, $> | type.infer<m, $> | type.infer<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;
|
|
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<type.infer<a, $> | type.infer<b, $> | type.infer<c, $> | type.infer<d, $> | type.infer<e, $> | type.infer<f, $> | type.infer<g, $> | type.infer<h, $> | type.infer<i, $> | type.infer<j, $> | type.infer<k, $> | type.infer<l, $> | type.infer<m, $> | type.infer<n, $> | type.infer<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;
|
|
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<type.infer<a, $> | type.infer<b, $> | type.infer<c, $> | type.infer<d, $> | type.infer<e, $> | type.infer<f, $> | type.infer<g, $> | type.infer<h, $> | type.infer<i, $> | type.infer<j, $> | type.infer<k, $> | type.infer<l, $> | type.infer<m, $> | type.infer<n, $> | type.infer<o, $> | type.infer<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;
|
|
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<type.infer<a, $> | type.infer<b, $> | type.infer<c, $> | type.infer<d, $> | type.infer<e, $> | type.infer<f, $> | type.infer<g, $> | type.infer<h, $> | type.infer<i, $> | type.infer<j, $> | type.infer<k, $> | type.infer<l, $> | type.infer<m, $> | type.infer<n, $> | type.infer<o, $> | type.infer<p, $> | type.infer<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;
|
|
27
|
+
<const defs extends readonly unknown[], r = Type<type.infer<defs[number], $>, $>>(...defs: {
|
|
28
|
+
[i in keyof defs]: type.validate<defs[i], $>;
|
|
29
29
|
}): r extends infer _ ? _ : never;
|
|
30
30
|
};
|
|
31
31
|
export type NaryIntersectionParser<$> = {
|
|
32
32
|
(): Type<unknown, $>;
|
|
33
|
-
<const a, r = Type<type.infer<a
|
|
34
|
-
<const a, const b, r = Type<inferIntersection<type.infer<a
|
|
35
|
-
<const a, const b, const c, r = Type<inferNaryIntersection<[
|
|
33
|
+
<const a, r = Type<type.infer<a, $>, $>>(a: type.validate<a, $>): r extends infer _ ? _ : never;
|
|
34
|
+
<const a, const b, r = Type<inferIntersection<type.infer<a, $>, type.infer<b, $>>, $>>(a: type.validate<a, $>, b: type.validate<b, $>): r extends infer _ ? _ : never;
|
|
35
|
+
<const a, const b, const c, r = Type<inferNaryIntersection<[
|
|
36
|
+
type.infer<a, $>,
|
|
37
|
+
type.infer<b, $>,
|
|
38
|
+
type.infer<c, $>
|
|
39
|
+
]>, $>>(a: type.validate<a, $>, b: type.validate<b, $>, c: type.validate<c, $>): r extends infer _ ? _ : never;
|
|
36
40
|
<const a, const b, const c, const d, r = Type<inferNaryIntersection<[
|
|
37
|
-
type.infer<a
|
|
38
|
-
type.infer<b
|
|
39
|
-
type.infer<c
|
|
40
|
-
type.infer<d
|
|
41
|
+
type.infer<a, $>,
|
|
42
|
+
type.infer<b, $>,
|
|
43
|
+
type.infer<c, $>,
|
|
44
|
+
type.infer<d, $>
|
|
41
45
|
]>, $>>(a: type.validate<a, $>, b: type.validate<b, $>, c: type.validate<c, $>, d: type.validate<d, $>): r extends infer _ ? _ : never;
|
|
42
46
|
<const a, const b, const c, const d, const e, r = Type<inferNaryIntersection<[
|
|
43
|
-
type.infer<a
|
|
44
|
-
type.infer<b
|
|
45
|
-
type.infer<c
|
|
46
|
-
type.infer<d
|
|
47
|
-
type.infer<e
|
|
47
|
+
type.infer<a, $>,
|
|
48
|
+
type.infer<b, $>,
|
|
49
|
+
type.infer<c, $>,
|
|
50
|
+
type.infer<d, $>,
|
|
51
|
+
type.infer<e, $>
|
|
48
52
|
]>, $>>(a: type.validate<a, $>, b: type.validate<b, $>, c: type.validate<c, $>, d: type.validate<d, $>, e: type.validate<e, $>): r extends infer _ ? _ : never;
|
|
49
53
|
<const a, const b, const c, const d, const e, const f, r = Type<inferNaryIntersection<[
|
|
50
|
-
type.infer<a
|
|
51
|
-
type.infer<b
|
|
52
|
-
type.infer<c
|
|
53
|
-
type.infer<d
|
|
54
|
-
type.infer<e
|
|
55
|
-
type.infer<f
|
|
54
|
+
type.infer<a, $>,
|
|
55
|
+
type.infer<b, $>,
|
|
56
|
+
type.infer<c, $>,
|
|
57
|
+
type.infer<d, $>,
|
|
58
|
+
type.infer<e, $>,
|
|
59
|
+
type.infer<f, $>
|
|
56
60
|
]>, $>>(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;
|
|
57
61
|
<const a, const b, const c, const d, const e, const f, const g, r = Type<inferNaryIntersection<[
|
|
58
|
-
type.infer<a
|
|
59
|
-
type.infer<b
|
|
60
|
-
type.infer<c
|
|
61
|
-
type.infer<d
|
|
62
|
-
type.infer<e
|
|
63
|
-
type.infer<f
|
|
64
|
-
type.infer<g
|
|
62
|
+
type.infer<a, $>,
|
|
63
|
+
type.infer<b, $>,
|
|
64
|
+
type.infer<c, $>,
|
|
65
|
+
type.infer<d, $>,
|
|
66
|
+
type.infer<e, $>,
|
|
67
|
+
type.infer<f, $>,
|
|
68
|
+
type.infer<g, $>
|
|
65
69
|
]>, $>>(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;
|
|
66
70
|
<const a, const b, const c, const d, const e, const f, const g, const h, r = Type<inferNaryIntersection<[
|
|
67
|
-
type.infer<a
|
|
68
|
-
type.infer<b
|
|
69
|
-
type.infer<c
|
|
70
|
-
type.infer<d
|
|
71
|
-
type.infer<e
|
|
72
|
-
type.infer<f
|
|
73
|
-
type.infer<g
|
|
74
|
-
type.infer<h
|
|
71
|
+
type.infer<a, $>,
|
|
72
|
+
type.infer<b, $>,
|
|
73
|
+
type.infer<c, $>,
|
|
74
|
+
type.infer<d, $>,
|
|
75
|
+
type.infer<e, $>,
|
|
76
|
+
type.infer<f, $>,
|
|
77
|
+
type.infer<g, $>,
|
|
78
|
+
type.infer<h, $>
|
|
75
79
|
]>, $>>(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;
|
|
76
80
|
<const a, const b, const c, const d, const e, const f, const g, const h, const i, r = Type<inferNaryIntersection<[
|
|
77
|
-
type.infer<a
|
|
78
|
-
type.infer<b
|
|
79
|
-
type.infer<c
|
|
80
|
-
type.infer<d
|
|
81
|
-
type.infer<e
|
|
82
|
-
type.infer<f
|
|
83
|
-
type.infer<g
|
|
84
|
-
type.infer<h
|
|
85
|
-
type.infer<i
|
|
81
|
+
type.infer<a, $>,
|
|
82
|
+
type.infer<b, $>,
|
|
83
|
+
type.infer<c, $>,
|
|
84
|
+
type.infer<d, $>,
|
|
85
|
+
type.infer<e, $>,
|
|
86
|
+
type.infer<f, $>,
|
|
87
|
+
type.infer<g, $>,
|
|
88
|
+
type.infer<h, $>,
|
|
89
|
+
type.infer<i, $>
|
|
86
90
|
]>, $>>(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;
|
|
87
91
|
<const a, const b, const c, const d, const e, const f, const g, const h, const i, const j, r = Type<inferNaryIntersection<[
|
|
88
|
-
type.infer<a
|
|
89
|
-
type.infer<b
|
|
90
|
-
type.infer<c
|
|
91
|
-
type.infer<d
|
|
92
|
-
type.infer<e
|
|
93
|
-
type.infer<f
|
|
94
|
-
type.infer<g
|
|
95
|
-
type.infer<h
|
|
96
|
-
type.infer<i
|
|
97
|
-
type.infer<j
|
|
92
|
+
type.infer<a, $>,
|
|
93
|
+
type.infer<b, $>,
|
|
94
|
+
type.infer<c, $>,
|
|
95
|
+
type.infer<d, $>,
|
|
96
|
+
type.infer<e, $>,
|
|
97
|
+
type.infer<f, $>,
|
|
98
|
+
type.infer<g, $>,
|
|
99
|
+
type.infer<h, $>,
|
|
100
|
+
type.infer<i, $>,
|
|
101
|
+
type.infer<j, $>
|
|
98
102
|
]>, $>>(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;
|
|
99
103
|
<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<[
|
|
100
|
-
type.infer<a
|
|
101
|
-
type.infer<b
|
|
102
|
-
type.infer<c
|
|
103
|
-
type.infer<d
|
|
104
|
-
type.infer<e
|
|
105
|
-
type.infer<f
|
|
106
|
-
type.infer<g
|
|
107
|
-
type.infer<h
|
|
108
|
-
type.infer<i
|
|
109
|
-
type.infer<j
|
|
110
|
-
type.infer<k
|
|
104
|
+
type.infer<a, $>,
|
|
105
|
+
type.infer<b, $>,
|
|
106
|
+
type.infer<c, $>,
|
|
107
|
+
type.infer<d, $>,
|
|
108
|
+
type.infer<e, $>,
|
|
109
|
+
type.infer<f, $>,
|
|
110
|
+
type.infer<g, $>,
|
|
111
|
+
type.infer<h, $>,
|
|
112
|
+
type.infer<i, $>,
|
|
113
|
+
type.infer<j, $>,
|
|
114
|
+
type.infer<k, $>
|
|
111
115
|
]>, $>>(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;
|
|
112
116
|
<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<[
|
|
113
|
-
type.infer<a
|
|
114
|
-
type.infer<b
|
|
115
|
-
type.infer<c
|
|
116
|
-
type.infer<d
|
|
117
|
-
type.infer<e
|
|
118
|
-
type.infer<f
|
|
119
|
-
type.infer<g
|
|
120
|
-
type.infer<h
|
|
121
|
-
type.infer<i
|
|
122
|
-
type.infer<j
|
|
123
|
-
type.infer<k
|
|
124
|
-
type.infer<l
|
|
117
|
+
type.infer<a, $>,
|
|
118
|
+
type.infer<b, $>,
|
|
119
|
+
type.infer<c, $>,
|
|
120
|
+
type.infer<d, $>,
|
|
121
|
+
type.infer<e, $>,
|
|
122
|
+
type.infer<f, $>,
|
|
123
|
+
type.infer<g, $>,
|
|
124
|
+
type.infer<h, $>,
|
|
125
|
+
type.infer<i, $>,
|
|
126
|
+
type.infer<j, $>,
|
|
127
|
+
type.infer<k, $>,
|
|
128
|
+
type.infer<l, $>
|
|
125
129
|
]>, $>>(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;
|
|
126
130
|
<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<[
|
|
127
|
-
type.infer<a
|
|
128
|
-
type.infer<b
|
|
129
|
-
type.infer<c
|
|
130
|
-
type.infer<d
|
|
131
|
-
type.infer<e
|
|
132
|
-
type.infer<f
|
|
133
|
-
type.infer<g
|
|
134
|
-
type.infer<h
|
|
135
|
-
type.infer<i
|
|
136
|
-
type.infer<j
|
|
137
|
-
type.infer<k
|
|
138
|
-
type.infer<l
|
|
139
|
-
type.infer<m
|
|
131
|
+
type.infer<a, $>,
|
|
132
|
+
type.infer<b, $>,
|
|
133
|
+
type.infer<c, $>,
|
|
134
|
+
type.infer<d, $>,
|
|
135
|
+
type.infer<e, $>,
|
|
136
|
+
type.infer<f, $>,
|
|
137
|
+
type.infer<g, $>,
|
|
138
|
+
type.infer<h, $>,
|
|
139
|
+
type.infer<i, $>,
|
|
140
|
+
type.infer<j, $>,
|
|
141
|
+
type.infer<k, $>,
|
|
142
|
+
type.infer<l, $>,
|
|
143
|
+
type.infer<m, $>
|
|
140
144
|
]>, $>>(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;
|
|
141
145
|
<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<[
|
|
142
|
-
type.infer<a
|
|
143
|
-
type.infer<b
|
|
144
|
-
type.infer<c
|
|
145
|
-
type.infer<d
|
|
146
|
-
type.infer<e
|
|
147
|
-
type.infer<f
|
|
148
|
-
type.infer<g
|
|
149
|
-
type.infer<h
|
|
150
|
-
type.infer<i
|
|
151
|
-
type.infer<j
|
|
152
|
-
type.infer<k
|
|
153
|
-
type.infer<l
|
|
154
|
-
type.infer<m
|
|
155
|
-
type.infer<n
|
|
146
|
+
type.infer<a, $>,
|
|
147
|
+
type.infer<b, $>,
|
|
148
|
+
type.infer<c, $>,
|
|
149
|
+
type.infer<d, $>,
|
|
150
|
+
type.infer<e, $>,
|
|
151
|
+
type.infer<f, $>,
|
|
152
|
+
type.infer<g, $>,
|
|
153
|
+
type.infer<h, $>,
|
|
154
|
+
type.infer<i, $>,
|
|
155
|
+
type.infer<j, $>,
|
|
156
|
+
type.infer<k, $>,
|
|
157
|
+
type.infer<l, $>,
|
|
158
|
+
type.infer<m, $>,
|
|
159
|
+
type.infer<n, $>
|
|
156
160
|
]>, $>>(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;
|
|
157
161
|
<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<[
|
|
158
|
-
type.infer<a
|
|
159
|
-
type.infer<b
|
|
160
|
-
type.infer<c
|
|
161
|
-
type.infer<d
|
|
162
|
-
type.infer<e
|
|
163
|
-
type.infer<f
|
|
164
|
-
type.infer<g
|
|
165
|
-
type.infer<h
|
|
166
|
-
type.infer<i
|
|
167
|
-
type.infer<j
|
|
168
|
-
type.infer<k
|
|
169
|
-
type.infer<l
|
|
170
|
-
type.infer<m
|
|
171
|
-
type.infer<n
|
|
172
|
-
type.infer<o
|
|
162
|
+
type.infer<a, $>,
|
|
163
|
+
type.infer<b, $>,
|
|
164
|
+
type.infer<c, $>,
|
|
165
|
+
type.infer<d, $>,
|
|
166
|
+
type.infer<e, $>,
|
|
167
|
+
type.infer<f, $>,
|
|
168
|
+
type.infer<g, $>,
|
|
169
|
+
type.infer<h, $>,
|
|
170
|
+
type.infer<i, $>,
|
|
171
|
+
type.infer<j, $>,
|
|
172
|
+
type.infer<k, $>,
|
|
173
|
+
type.infer<l, $>,
|
|
174
|
+
type.infer<m, $>,
|
|
175
|
+
type.infer<n, $>,
|
|
176
|
+
type.infer<o, $>
|
|
173
177
|
]>, $>>(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;
|
|
174
178
|
<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<[
|
|
175
|
-
type.infer<a
|
|
176
|
-
type.infer<b
|
|
177
|
-
type.infer<c
|
|
178
|
-
type.infer<d
|
|
179
|
-
type.infer<e
|
|
180
|
-
type.infer<f
|
|
181
|
-
type.infer<g
|
|
182
|
-
type.infer<h
|
|
183
|
-
type.infer<i
|
|
184
|
-
type.infer<j
|
|
185
|
-
type.infer<k
|
|
186
|
-
type.infer<l
|
|
187
|
-
type.infer<m
|
|
188
|
-
type.infer<n
|
|
189
|
-
type.infer<o
|
|
190
|
-
type.infer<p
|
|
179
|
+
type.infer<a, $>,
|
|
180
|
+
type.infer<b, $>,
|
|
181
|
+
type.infer<c, $>,
|
|
182
|
+
type.infer<d, $>,
|
|
183
|
+
type.infer<e, $>,
|
|
184
|
+
type.infer<f, $>,
|
|
185
|
+
type.infer<g, $>,
|
|
186
|
+
type.infer<h, $>,
|
|
187
|
+
type.infer<i, $>,
|
|
188
|
+
type.infer<j, $>,
|
|
189
|
+
type.infer<k, $>,
|
|
190
|
+
type.infer<l, $>,
|
|
191
|
+
type.infer<m, $>,
|
|
192
|
+
type.infer<n, $>,
|
|
193
|
+
type.infer<o, $>,
|
|
194
|
+
type.infer<p, $>
|
|
191
195
|
]>, $>>(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;
|
|
192
196
|
<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<[
|
|
193
|
-
type.infer<a
|
|
194
|
-
type.infer<b
|
|
195
|
-
type.infer<c
|
|
196
|
-
type.infer<d
|
|
197
|
-
type.infer<e
|
|
198
|
-
type.infer<f
|
|
199
|
-
type.infer<g
|
|
200
|
-
type.infer<h
|
|
201
|
-
type.infer<i
|
|
202
|
-
type.infer<j
|
|
203
|
-
type.infer<k
|
|
204
|
-
type.infer<l
|
|
205
|
-
type.infer<m
|
|
206
|
-
type.infer<n
|
|
207
|
-
type.infer<o
|
|
208
|
-
type.infer<p
|
|
209
|
-
type.infer<q
|
|
197
|
+
type.infer<a, $>,
|
|
198
|
+
type.infer<b, $>,
|
|
199
|
+
type.infer<c, $>,
|
|
200
|
+
type.infer<d, $>,
|
|
201
|
+
type.infer<e, $>,
|
|
202
|
+
type.infer<f, $>,
|
|
203
|
+
type.infer<g, $>,
|
|
204
|
+
type.infer<h, $>,
|
|
205
|
+
type.infer<i, $>,
|
|
206
|
+
type.infer<j, $>,
|
|
207
|
+
type.infer<k, $>,
|
|
208
|
+
type.infer<l, $>,
|
|
209
|
+
type.infer<m, $>,
|
|
210
|
+
type.infer<n, $>,
|
|
211
|
+
type.infer<o, $>,
|
|
212
|
+
type.infer<p, $>,
|
|
213
|
+
type.infer<q, $>
|
|
210
214
|
]>, $>>(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;
|
|
211
215
|
<const defs extends readonly unknown[], r = Type<inferNaryIntersection<{
|
|
212
|
-
[i in keyof defs]: type.infer<defs[i]
|
|
216
|
+
[i in keyof defs]: type.infer<defs[i], $>;
|
|
213
217
|
}>, $>>(...defs: {
|
|
214
|
-
[i in keyof defs]: type.validate<defs[i]
|
|
218
|
+
[i in keyof defs]: type.validate<defs[i], $>;
|
|
215
219
|
}): r extends infer _ ? _ : never;
|
|
216
220
|
};
|
|
217
221
|
export type NaryMergeParser<$> = {
|
|
218
222
|
(): Type<object, $>;
|
|
219
223
|
<const a, inferredA = type.infer<a, $>, r = Type<inferredA, $>>(a: type.validate<a, $> & (inferredA extends object ? unknown : ErrorType<NonObjectMergeErrorMessage, [actual: inferredA]>)): r extends infer _ ? _ : never;
|
|
220
224
|
<const a, const b, inferredA = type.infer<a, $>, inferredB = type.infer<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<"Merged type must be an object", [actual: inferredB]>)): r extends infer _ ? _ : never;
|
|
221
|
-
<const a, const b, const c, inferredA = type.infer<a, $>, inferredB = type.infer<b, $>, inferredC = type.infer<c, $>, r = Type<inferNaryMerge<[
|
|
222
|
-
<const a, const b, const c, const d, inferredA = type.infer<a, $>, inferredB = type.infer<b, $>, inferredC = type.infer<c, $>, inferredD = type.infer<d, $>, r = Type<inferNaryMerge<[
|
|
223
|
-
|
|
224
|
-
type.infer<b>,
|
|
225
|
-
type.infer<c>,
|
|
226
|
-
type.infer<d>
|
|
227
|
-
]>, $>>(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 = type.infer<a, $>, inferredB = type.infer<b, $>, inferredC = type.infer<c, $>, inferredD = type.infer<d, $>, inferredE = type.infer<e, $>, r = Type<inferNaryMerge<[
|
|
229
|
-
type.infer<a>,
|
|
230
|
-
type.infer<b>,
|
|
231
|
-
type.infer<c>,
|
|
232
|
-
type.infer<d>,
|
|
233
|
-
type.infer<e>
|
|
234
|
-
]>, $>>(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;
|
|
225
|
+
<const a, const b, const c, inferredA = type.infer<a, $>, inferredB = type.infer<b, $>, inferredC = type.infer<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;
|
|
226
|
+
<const a, const b, const c, const d, inferredA = type.infer<a, $>, inferredB = type.infer<b, $>, inferredC = type.infer<c, $>, inferredD = type.infer<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;
|
|
227
|
+
<const a, const b, const c, const d, const e, inferredA = type.infer<a, $>, inferredB = type.infer<b, $>, inferredC = type.infer<c, $>, inferredD = type.infer<d, $>, inferredE = type.infer<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;
|
|
235
228
|
<const a, const b, const c, const d, const e, const f, inferredA = type.infer<a, $>, inferredB = type.infer<b, $>, inferredC = type.infer<c, $>, inferredD = type.infer<d, $>, inferredE = type.infer<e, $>, inferredF = type.infer<f, $>, r = Type<inferNaryMerge<[
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
229
|
+
inferredA,
|
|
230
|
+
inferredB,
|
|
231
|
+
inferredC,
|
|
232
|
+
inferredD,
|
|
233
|
+
inferredE,
|
|
234
|
+
inferredF
|
|
242
235
|
]>, $>>(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;
|
|
243
236
|
<const a, const b, const c, const d, const e, const f, const g, inferredA = type.infer<a, $>, inferredB = type.infer<b, $>, inferredC = type.infer<c, $>, inferredD = type.infer<d, $>, inferredE = type.infer<e, $>, inferredF = type.infer<f, $>, inferredG = type.infer<g, $>, r = Type<inferNaryMerge<[
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
237
|
+
inferredA,
|
|
238
|
+
inferredB,
|
|
239
|
+
inferredC,
|
|
240
|
+
inferredD,
|
|
241
|
+
inferredE,
|
|
242
|
+
inferredF,
|
|
243
|
+
inferredG
|
|
251
244
|
]>, $>>(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;
|
|
252
245
|
<const a, const b, const c, const d, const e, const f, const g, const h, inferredA = type.infer<a, $>, inferredB = type.infer<b, $>, inferredC = type.infer<c, $>, inferredD = type.infer<d, $>, inferredE = type.infer<e, $>, inferredF = type.infer<f, $>, inferredG = type.infer<g, $>, inferredH = type.infer<h, $>, r = Type<inferNaryMerge<[
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
246
|
+
inferredA,
|
|
247
|
+
inferredB,
|
|
248
|
+
inferredC,
|
|
249
|
+
inferredD,
|
|
250
|
+
inferredE,
|
|
251
|
+
inferredF,
|
|
252
|
+
inferredG,
|
|
253
|
+
inferredH
|
|
261
254
|
]>, $>>(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;
|
|
262
255
|
<const a, const b, const c, const d, const e, const f, const g, const h, const i, inferredA = type.infer<a, $>, inferredB = type.infer<b, $>, inferredC = type.infer<c, $>, inferredD = type.infer<d, $>, inferredE = type.infer<e, $>, inferredF = type.infer<f, $>, inferredG = type.infer<g, $>, inferredH = type.infer<h, $>, inferredI = type.infer<i, $>, r = Type<inferNaryMerge<[
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
256
|
+
inferredA,
|
|
257
|
+
inferredB,
|
|
258
|
+
inferredC,
|
|
259
|
+
inferredD,
|
|
260
|
+
inferredE,
|
|
261
|
+
inferredF,
|
|
262
|
+
inferredG,
|
|
263
|
+
inferredH,
|
|
264
|
+
inferredI
|
|
272
265
|
]>, $>>(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;
|
|
273
266
|
<const a, const b, const c, const d, const e, const f, const g, const h, const i, const j, inferredA = type.infer<a, $>, inferredB = type.infer<b, $>, inferredC = type.infer<c, $>, inferredD = type.infer<d, $>, inferredE = type.infer<e, $>, inferredF = type.infer<f, $>, inferredG = type.infer<g, $>, inferredH = type.infer<h, $>, inferredI = type.infer<i, $>, inferredJ = type.infer<j, $>, r = Type<inferNaryMerge<[
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
267
|
+
inferredA,
|
|
268
|
+
inferredB,
|
|
269
|
+
inferredC,
|
|
270
|
+
inferredD,
|
|
271
|
+
inferredE,
|
|
272
|
+
inferredF,
|
|
273
|
+
inferredG,
|
|
274
|
+
inferredH,
|
|
275
|
+
inferredI,
|
|
276
|
+
inferredJ
|
|
284
277
|
]>, $>>(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;
|
|
285
278
|
<const a, const b, const c, const d, const e, const f, const g, const h, const i, const j, const k, inferredA = type.infer<a, $>, inferredB = type.infer<b, $>, inferredC = type.infer<c, $>, inferredD = type.infer<d, $>, inferredE = type.infer<e, $>, inferredF = type.infer<f, $>, inferredG = type.infer<g, $>, inferredH = type.infer<h, $>, inferredI = type.infer<i, $>, inferredJ = type.infer<j, $>, inferredK = type.infer<k, $>, r = Type<inferNaryMerge<[
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
279
|
+
inferredA,
|
|
280
|
+
inferredB,
|
|
281
|
+
inferredC,
|
|
282
|
+
inferredD,
|
|
283
|
+
inferredE,
|
|
284
|
+
inferredF,
|
|
285
|
+
inferredG,
|
|
286
|
+
inferredH,
|
|
287
|
+
inferredI,
|
|
288
|
+
inferredJ,
|
|
289
|
+
inferredK
|
|
297
290
|
]>, $>>(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;
|
|
298
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 = type.infer<a, $>, inferredB = type.infer<b, $>, inferredC = type.infer<c, $>, inferredD = type.infer<d, $>, inferredE = type.infer<e, $>, inferredF = type.infer<f, $>, inferredG = type.infer<g, $>, inferredH = type.infer<h, $>, inferredI = type.infer<i, $>, inferredJ = type.infer<j, $>, inferredK = type.infer<k, $>, inferredL = type.infer<l, $>, r = Type<inferNaryMerge<[
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
292
|
+
inferredA,
|
|
293
|
+
inferredB,
|
|
294
|
+
inferredC,
|
|
295
|
+
inferredD,
|
|
296
|
+
inferredE,
|
|
297
|
+
inferredF,
|
|
298
|
+
inferredG,
|
|
299
|
+
inferredH,
|
|
300
|
+
inferredI,
|
|
301
|
+
inferredJ,
|
|
302
|
+
inferredK,
|
|
303
|
+
inferredL
|
|
311
304
|
]>, $>>(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;
|
|
312
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 = type.infer<a, $>, inferredB = type.infer<b, $>, inferredC = type.infer<c, $>, inferredD = type.infer<d, $>, inferredE = type.infer<e, $>, inferredF = type.infer<f, $>, inferredG = type.infer<g, $>, inferredH = type.infer<h, $>, inferredI = type.infer<i, $>, inferredJ = type.infer<j, $>, inferredK = type.infer<k, $>, inferredL = type.infer<l, $>, inferredM = type.infer<m, $>, r = Type<inferNaryMerge<[
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
306
|
+
inferredA,
|
|
307
|
+
inferredB,
|
|
308
|
+
inferredC,
|
|
309
|
+
inferredD,
|
|
310
|
+
inferredE,
|
|
311
|
+
inferredF,
|
|
312
|
+
inferredG,
|
|
313
|
+
inferredH,
|
|
314
|
+
inferredI,
|
|
315
|
+
inferredJ,
|
|
316
|
+
inferredK,
|
|
317
|
+
inferredL,
|
|
318
|
+
inferredM
|
|
326
319
|
]>, $>>(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;
|
|
327
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 = type.infer<a, $>, inferredB = type.infer<b, $>, inferredC = type.infer<c, $>, inferredD = type.infer<d, $>, inferredE = type.infer<e, $>, inferredF = type.infer<f, $>, inferredG = type.infer<g, $>, inferredH = type.infer<h, $>, inferredI = type.infer<i, $>, inferredJ = type.infer<j, $>, inferredK = type.infer<k, $>, inferredL = type.infer<l, $>, inferredM = type.infer<m, $>, inferredN = type.infer<n, $>, r = Type<inferNaryMerge<[
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
321
|
+
inferredA,
|
|
322
|
+
inferredB,
|
|
323
|
+
inferredC,
|
|
324
|
+
inferredD,
|
|
325
|
+
inferredE,
|
|
326
|
+
inferredF,
|
|
327
|
+
inferredG,
|
|
328
|
+
inferredH,
|
|
329
|
+
inferredI,
|
|
330
|
+
inferredJ,
|
|
331
|
+
inferredK,
|
|
332
|
+
inferredL,
|
|
333
|
+
inferredM,
|
|
334
|
+
inferredN
|
|
342
335
|
]>, $>>(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;
|
|
343
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 = type.infer<a, $>, inferredB = type.infer<b, $>, inferredC = type.infer<c, $>, inferredD = type.infer<d, $>, inferredE = type.infer<e, $>, inferredF = type.infer<f, $>, inferredG = type.infer<g, $>, inferredH = type.infer<h, $>, inferredI = type.infer<i, $>, inferredJ = type.infer<j, $>, inferredK = type.infer<k, $>, inferredL = type.infer<l, $>, inferredM = type.infer<m, $>, inferredN = type.infer<n, $>, inferredO = type.infer<o, $>, r = Type<inferNaryMerge<[
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
337
|
+
inferredA,
|
|
338
|
+
inferredB,
|
|
339
|
+
inferredC,
|
|
340
|
+
inferredD,
|
|
341
|
+
inferredE,
|
|
342
|
+
inferredF,
|
|
343
|
+
inferredG,
|
|
344
|
+
inferredH,
|
|
345
|
+
inferredI,
|
|
346
|
+
inferredJ,
|
|
347
|
+
inferredK,
|
|
348
|
+
inferredL,
|
|
349
|
+
inferredM,
|
|
350
|
+
inferredN,
|
|
351
|
+
inferredO
|
|
359
352
|
]>, $>>(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;
|
|
360
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 = type.infer<a, $>, inferredB = type.infer<b, $>, inferredC = type.infer<c, $>, inferredD = type.infer<d, $>, inferredE = type.infer<e, $>, inferredF = type.infer<f, $>, inferredG = type.infer<g, $>, inferredH = type.infer<h, $>, inferredI = type.infer<i, $>, inferredJ = type.infer<j, $>, inferredK = type.infer<k, $>, inferredL = type.infer<l, $>, inferredM = type.infer<m, $>, inferredN = type.infer<n, $>, inferredO = type.infer<o, $>, inferredP = type.infer<p, $>, r = Type<inferNaryMerge<[
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
354
|
+
inferredA,
|
|
355
|
+
inferredB,
|
|
356
|
+
inferredC,
|
|
357
|
+
inferredD,
|
|
358
|
+
inferredE,
|
|
359
|
+
inferredF,
|
|
360
|
+
inferredG,
|
|
361
|
+
inferredH,
|
|
362
|
+
inferredI,
|
|
363
|
+
inferredJ,
|
|
364
|
+
inferredK,
|
|
365
|
+
inferredL,
|
|
366
|
+
inferredM,
|
|
367
|
+
inferredN,
|
|
368
|
+
inferredO,
|
|
369
|
+
inferredP
|
|
377
370
|
]>, $>>(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;
|
|
378
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 = type.infer<a, $>, inferredB = type.infer<b, $>, inferredC = type.infer<c, $>, inferredD = type.infer<d, $>, inferredE = type.infer<e, $>, inferredF = type.infer<f, $>, inferredG = type.infer<g, $>, inferredH = type.infer<h, $>, inferredI = type.infer<i, $>, inferredJ = type.infer<j, $>, inferredK = type.infer<k, $>, inferredL = type.infer<l, $>, inferredM = type.infer<m, $>, inferredN = type.infer<n, $>, inferredO = type.infer<o, $>, inferredP = type.infer<p, $>, inferredQ = type.infer<q, $>, r = Type<inferNaryMerge<[
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
372
|
+
inferredA,
|
|
373
|
+
inferredB,
|
|
374
|
+
inferredC,
|
|
375
|
+
inferredD,
|
|
376
|
+
inferredE,
|
|
377
|
+
inferredF,
|
|
378
|
+
inferredG,
|
|
379
|
+
inferredH,
|
|
380
|
+
inferredI,
|
|
381
|
+
inferredJ,
|
|
382
|
+
inferredK,
|
|
383
|
+
inferredL,
|
|
384
|
+
inferredM,
|
|
385
|
+
inferredN,
|
|
386
|
+
inferredO,
|
|
387
|
+
inferredP,
|
|
388
|
+
inferredQ
|
|
396
389
|
]>, $>>(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;
|
|
397
390
|
<const defs extends readonly unknown[], r = Type<inferNaryMerge<{
|
|
398
|
-
[i in keyof defs]: type.infer<defs[i]
|
|
391
|
+
[i in keyof defs]: type.infer<defs[i], $>;
|
|
399
392
|
}>, $>>(...defs: {
|
|
400
|
-
[i in keyof defs]: type.validate<defs[i]
|
|
393
|
+
[i in keyof defs]: type.validate<defs[i], $> & (type.infer<defs[i], $> extends object ? unknown : ErrorType<NonObjectMergeErrorMessage, [
|
|
401
394
|
actual: type.infer<defs[i], $>
|
|
402
395
|
]>);
|
|
403
396
|
}): r extends infer _ ? _ : never;
|