arktype 2.1.15 → 2.1.16
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/out/attributes.d.ts
CHANGED
|
@@ -47,7 +47,7 @@ type distillArrayFromPostfix<t extends array, endpoint extends distill.Endpoint,
|
|
|
47
47
|
]> : [...{
|
|
48
48
|
[i in keyof t]: _distill<t[i], endpoint, seen>;
|
|
49
49
|
}, ...postfix];
|
|
50
|
-
type BuiltinTerminalObjectKind = Exclude<
|
|
50
|
+
type BuiltinTerminalObjectKind = Exclude<arkPrototypes.NonDegenerateName, "Array" | "Function">;
|
|
51
51
|
/** Objects we don't want to expand during inference like Date or Promise */
|
|
52
52
|
type TerminallyInferredObject = arkPrototypes.instanceOf<BuiltinTerminalObjectKind> | ArkEnv.prototypes;
|
|
53
53
|
export type inferPredicate<t, predicate> = predicate extends (data: any, ...args: any[]) => data is infer narrowed ? narrowed : t;
|
|
@@ -25,6 +25,7 @@ export declare namespace arkPrototypes {
|
|
|
25
25
|
type platform = PlatformObjects;
|
|
26
26
|
interface instances extends ecmascript, platform {
|
|
27
27
|
}
|
|
28
|
-
type
|
|
28
|
+
type NonDegenerateName = keyof instances extends infer k ? k extends keyof instances ? {} extends instances[k] ? never : k : never : never;
|
|
29
|
+
type instanceOf<name extends NonDegenerateName = NonDegenerateName> = instances[name];
|
|
29
30
|
}
|
|
30
31
|
export {};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "arktype",
|
|
3
3
|
"description": "TypeScript's 1:1 validator, optimized from editor to runtime",
|
|
4
|
-
"version": "2.1.
|
|
4
|
+
"version": "2.1.16",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"out"
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@ark/util": "0.45.
|
|
38
|
-
"@ark/schema": "0.45.
|
|
37
|
+
"@ark/util": "0.45.6",
|
|
38
|
+
"@ark/schema": "0.45.6"
|
|
39
39
|
},
|
|
40
40
|
"publishConfig": {
|
|
41
41
|
"access": "public"
|