arktype 2.0.0-dev.5 → 2.0.0-dev.6
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/__tests__/array.test.ts +70 -38
- package/__tests__/badDefinitionType.test.ts +9 -2
- package/__tests__/basis.test.ts +6 -2
- package/__tests__/bounds.test.ts +49 -218
- package/__tests__/cast.test.ts +7 -2
- package/__tests__/completions.test.ts +8 -3
- package/__tests__/config.test.ts +8 -2
- package/__tests__/cyclic.test.ts +141 -137
- package/__tests__/dateLiteral.test.ts +6 -2
- package/__tests__/declared.test.ts +2 -2
- package/__tests__/divisor.test.ts +28 -12
- package/__tests__/enclosed.test.ts +32 -23
- package/__tests__/examples.test.ts +56 -56
- package/__tests__/expressions.test.ts +184 -106
- package/__tests__/generic.test.ts +307 -287
- package/__tests__/group.test.ts +59 -51
- package/__tests__/imports.test.ts +44 -37
- package/__tests__/instanceof.test.ts +14 -12
- package/__tests__/intersection.test.ts +16 -36
- package/__tests__/keyTraversal.test.ts +6 -1
- package/__tests__/keyof.test.ts +57 -43
- package/__tests__/keywords.test.ts +144 -135
- package/__tests__/literal.test.ts +12 -7
- package/__tests__/match.test.ts +234 -236
- package/__tests__/morph.test.ts +169 -153
- package/__tests__/narrow.test.ts +14 -9
- package/__tests__/objectLiteral.test.ts +172 -184
- package/__tests__/realWorld.test.ts +60 -59
- package/__tests__/regex.test.ts +17 -7
- package/__tests__/scope.test.ts +59 -14
- package/__tests__/serialization.test.ts +19 -0
- package/__tests__/string.test.ts +11 -7
- package/__tests__/submodule.test.ts +24 -37
- package/__tests__/this.test.ts +83 -57
- package/__tests__/thunk.test.ts +13 -7
- package/__tests__/traverse.test.ts +22 -12
- package/__tests__/tsGenerics.test.ts +12 -12
- package/__tests__/type.test.ts +38 -0
- package/__tests__/typeReference.test.ts +5 -5
- package/__tests__/unenclosed.test.ts +106 -96
- package/__tests__/union.test.ts +207 -212
- package/ark.ts +44 -0
- package/generic.ts +67 -0
- package/main.ts +6 -17
- package/match.ts +41 -51
- package/module.ts +15 -0
- package/out/ark.d.ts +12 -40
- package/out/ark.d.ts.map +1 -1
- package/out/ark.js +9 -20
- package/out/ark.js.map +1 -1
- package/out/base.d.ts +198 -122
- package/out/base.d.ts.map +1 -1
- package/out/base.js +317 -271
- package/out/base.js.map +1 -1
- package/out/builtins/builtins.d.ts +21 -17
- package/out/builtins/builtins.js +15 -12
- package/out/builtins/jsObjects.d.ts +17 -17
- package/out/builtins/jsObjects.js +18 -15
- package/out/builtins/parsing.d.ts +13 -13
- package/out/builtins/parsing.js +57 -54
- package/out/builtins/tsGenerics.d.ts +2 -2
- package/out/builtins/tsGenerics.js +2 -2
- package/out/builtins/tsKeywords.d.ts +21 -21
- package/out/builtins/tsKeywords.js +23 -20
- package/out/builtins/utils/creditCard.d.ts +3 -3
- package/out/builtins/utils/creditCard.js +31 -32
- package/out/builtins/utils/date.d.ts +39 -20
- package/out/builtins/utils/date.js +51 -48
- package/out/builtins/validation.d.ts +17 -17
- package/out/builtins/validation.js +66 -62
- package/out/config.d.ts +9 -6
- package/out/config.js +17 -16
- package/out/constraints/ast.d.ts +263 -152
- package/out/constraints/ast.js +2 -2
- package/out/constraints/constraint.d.ts +196 -66
- package/out/constraints/constraint.js +21 -17
- package/out/constraints/predicate.d.ts +60 -42
- package/out/constraints/predicate.js +48 -43
- package/out/constraints/props/index.d.ts +35 -29
- package/out/constraints/props/index.js +54 -46
- package/out/constraints/props/optional.d.ts +31 -28
- package/out/constraints/props/optional.js +54 -53
- package/out/constraints/props/prop.d.ts +42 -39
- package/out/constraints/props/prop.js +104 -102
- package/out/constraints/props/props.d.ts +35 -32
- package/out/constraints/props/props.js +117 -102
- package/out/constraints/props/props.js.map +1 -1
- package/out/constraints/props/required.d.ts +40 -37
- package/out/constraints/props/required.js +78 -73
- package/out/constraints/props/sequence.d.ts +74 -56
- package/out/constraints/props/sequence.js +371 -322
- package/out/constraints/props/shared.d.ts +3 -3
- package/out/constraints/props/shared.js +4 -4
- package/out/constraints/refinements/after.d.ts +26 -18
- package/out/constraints/refinements/after.js +34 -33
- package/out/constraints/refinements/before.d.ts +26 -18
- package/out/constraints/refinements/before.js +41 -39
- package/out/constraints/refinements/divisor.d.ts +47 -37
- package/out/constraints/refinements/divisor.js +48 -37
- package/out/constraints/refinements/exactLength.d.ts +40 -36
- package/out/constraints/refinements/exactLength.js +50 -42
- package/out/constraints/refinements/kinds.d.ts +25 -25
- package/out/constraints/refinements/kinds.js +16 -16
- package/out/constraints/refinements/length.d.ts +45 -39
- package/out/constraints/refinements/length.js +51 -43
- package/out/constraints/refinements/max.d.ts +24 -17
- package/out/constraints/refinements/max.js +33 -29
- package/out/constraints/refinements/maxLength.d.ts +25 -17
- package/out/constraints/refinements/maxLength.js +34 -32
- package/out/constraints/refinements/min.d.ts +24 -17
- package/out/constraints/refinements/min.js +26 -23
- package/out/constraints/refinements/minLength.d.ts +25 -17
- package/out/constraints/refinements/minLength.js +31 -30
- package/out/constraints/refinements/range.d.ts +107 -78
- package/out/constraints/refinements/range.js +83 -66
- package/out/constraints/refinements/regex.d.ts +42 -38
- package/out/constraints/refinements/regex.js +35 -34
- package/out/constraints/refinements/shared.d.ts +20 -5
- package/out/constraints/refinements/shared.js +9 -9
- package/out/generic.d.ts +22 -0
- package/out/generic.d.ts.map +1 -0
- package/out/generic.js +23 -0
- package/out/generic.js.map +1 -0
- package/out/inference.d.ts +132 -35
- package/out/inference.js +2 -2
- package/out/keywords/ark.d.ts +60 -50
- package/out/keywords/ark.js +25 -25
- package/out/keywords/internal.d.ts +11 -11
- package/out/keywords/internal.js +13 -10
- package/out/keywords/jsObject.d.ts +18 -18
- package/out/keywords/jsObject.js +18 -15
- package/out/keywords/parsing.d.ts +14 -14
- package/out/keywords/parsing.js +53 -50
- package/out/keywords/root.d.ts +6 -6
- package/out/keywords/root.js +4 -4
- package/out/keywords/tsGenerics.d.ts +2 -2
- package/out/keywords/tsGenerics.js +2 -2
- package/out/keywords/tsPrimitive.d.ts +22 -22
- package/out/keywords/tsPrimitive.js +25 -22
- package/out/keywords/utils/creditCard.d.ts +11 -8
- package/out/keywords/utils/creditCard.js +31 -32
- package/out/keywords/utils/date.d.ts +43 -23
- package/out/keywords/utils/date.js +51 -48
- package/out/keywords/validation.d.ts +18 -18
- package/out/keywords/validation.js +67 -63
- package/out/kinds.d.ts +97 -67
- package/out/kinds.js +28 -28
- package/out/main.d.ts +6 -7
- package/out/main.d.ts.map +1 -1
- package/out/main.js +4 -2
- package/out/main.js.map +1 -1
- package/out/match.d.ts +6 -10
- package/out/match.d.ts.map +1 -1
- package/out/match.js +1 -1
- package/out/match.js.map +1 -1
- package/out/module.d.ts +11 -0
- package/out/module.d.ts.map +1 -0
- package/out/module.js +4 -0
- package/out/module.js.map +1 -0
- package/out/parse.d.ts +28 -22
- package/out/parse.js +157 -144
- package/out/parser/definition.d.ts +8 -10
- package/out/parser/definition.d.ts.map +1 -1
- package/out/parser/definition.js +5 -6
- package/out/parser/definition.js.map +1 -1
- package/out/parser/generic.d.ts +3 -4
- package/out/parser/generic.d.ts.map +1 -1
- package/out/parser/generic.js +6 -8
- package/out/parser/generic.js.map +1 -1
- package/out/parser/objectLiteral.d.ts +5 -6
- package/out/parser/objectLiteral.d.ts.map +1 -1
- package/out/parser/objectLiteral.js +10 -15
- package/out/parser/objectLiteral.js.map +1 -1
- package/out/parser/semantic/bounds.d.ts +4 -3
- package/out/parser/semantic/bounds.d.ts.map +1 -1
- package/out/parser/semantic/bounds.js.map +1 -1
- package/out/parser/semantic/divisor.d.ts +4 -3
- package/out/parser/semantic/divisor.d.ts.map +1 -1
- package/out/parser/semantic/infer.d.ts +7 -10
- package/out/parser/semantic/infer.d.ts.map +1 -1
- package/out/parser/semantic/utils.d.ts.map +1 -1
- package/out/parser/semantic/validate.d.ts +13 -11
- package/out/parser/semantic/validate.d.ts.map +1 -1
- package/out/parser/semantic/validate.js +1 -0
- package/out/parser/semantic/validate.js.map +1 -1
- package/out/parser/string/reduce/dynamic.d.ts +7 -8
- package/out/parser/string/reduce/dynamic.d.ts.map +1 -1
- package/out/parser/string/reduce/dynamic.js +26 -22
- package/out/parser/string/reduce/dynamic.js.map +1 -1
- package/out/parser/string/reduce/shared.d.ts +2 -2
- package/out/parser/string/reduce/shared.d.ts.map +1 -1
- package/out/parser/string/reduce/static.d.ts +8 -5
- package/out/parser/string/reduce/static.d.ts.map +1 -1
- package/out/parser/string/shift/operand/date.d.ts +1 -1
- package/out/parser/string/shift/operand/date.d.ts.map +1 -1
- package/out/parser/string/shift/operand/date.js +2 -2
- package/out/parser/string/shift/operand/date.js.map +1 -1
- package/out/parser/string/shift/operand/enclosed.d.ts +1 -1
- package/out/parser/string/shift/operand/enclosed.d.ts.map +1 -1
- package/out/parser/string/shift/operand/enclosed.js +1 -1
- package/out/parser/string/shift/operand/enclosed.js.map +1 -1
- package/out/parser/string/shift/operand/genericArgs.d.ts +8 -8
- package/out/parser/string/shift/operand/genericArgs.d.ts.map +1 -1
- package/out/parser/string/shift/operand/genericArgs.js +6 -8
- package/out/parser/string/shift/operand/genericArgs.js.map +1 -1
- package/out/parser/string/shift/operand/operand.d.ts +3 -3
- package/out/parser/string/shift/operand/operand.d.ts.map +1 -1
- package/out/parser/string/shift/operand/operand.js +8 -11
- package/out/parser/string/shift/operand/operand.js.map +1 -1
- package/out/parser/string/shift/operand/unenclosed.d.ts +10 -16
- package/out/parser/string/shift/operand/unenclosed.d.ts.map +1 -1
- package/out/parser/string/shift/operand/unenclosed.js +19 -24
- package/out/parser/string/shift/operand/unenclosed.js.map +1 -1
- package/out/parser/string/shift/operator/bounds.d.ts +6 -8
- package/out/parser/string/shift/operator/bounds.d.ts.map +1 -1
- package/out/parser/string/shift/operator/bounds.js +20 -29
- package/out/parser/string/shift/operator/bounds.js.map +1 -1
- package/out/parser/string/shift/operator/divisor.d.ts +1 -2
- package/out/parser/string/shift/operator/divisor.d.ts.map +1 -1
- package/out/parser/string/shift/operator/divisor.js.map +1 -1
- package/out/parser/string/shift/operator/operator.d.ts +1 -1
- package/out/parser/string/shift/operator/operator.d.ts.map +1 -1
- package/out/parser/string/shift/operator/operator.js +12 -18
- package/out/parser/string/shift/operator/operator.js.map +1 -1
- package/out/parser/string/shift/scanner.d.ts +2 -1
- package/out/parser/string/shift/scanner.d.ts.map +1 -1
- package/out/parser/string/shift/scanner.js +12 -11
- package/out/parser/string/shift/scanner.js.map +1 -1
- package/out/parser/string/string.d.ts +7 -4
- package/out/parser/string/string.d.ts.map +1 -1
- package/out/parser/string/string.js.map +1 -1
- package/out/parser/tuple.d.ts +27 -30
- package/out/parser/tuple.d.ts.map +1 -1
- package/out/parser/tuple.js +33 -35
- package/out/parser/tuple.js.map +1 -1
- package/out/schema.d.ts +171 -40
- package/out/schema.js +2 -2
- package/out/schemaScope.d.ts +170 -100
- package/out/schemaScope.js +231 -208
- package/out/scope.d.ts +43 -187
- package/out/scope.d.ts.map +1 -1
- package/out/scope.js +56 -326
- package/out/scope.js.map +1 -1
- package/out/shared/compile.d.ts +19 -19
- package/out/shared/compile.js +77 -65
- package/out/shared/context.d.ts +51 -26
- package/out/shared/context.js +50 -45
- package/out/shared/declare.d.ts +61 -45
- package/out/shared/declare.js +2 -2
- package/out/shared/disjoint.d.ts +85 -73
- package/out/shared/disjoint.js +108 -80
- package/out/shared/disjoint.js.map +1 -1
- package/out/shared/errors.d.ts +85 -45
- package/out/shared/errors.js +101 -101
- package/out/shared/implement.d.ts +351 -158
- package/out/shared/implement.js +61 -62
- package/out/shared/implement.js.map +1 -1
- package/out/shared/inference.d.ts +5 -5
- package/out/shared/inference.js +2 -2
- package/out/shared/intersections.d.ts +57 -12
- package/out/shared/intersections.js +2 -2
- package/out/shared/traversal.d.ts +57 -39
- package/out/shared/traversal.js +95 -95
- package/out/shared/utils.d.ts +23 -7
- package/out/shared/utils.d.ts.map +1 -1
- package/out/shared/utils.js +14 -9
- package/out/shared/utils.js.map +1 -1
- package/out/type.d.ts +24 -32
- package/out/type.d.ts.map +1 -1
- package/out/type.js +2 -51
- package/out/type.js.map +1 -1
- package/out/types/basis.d.ts +44 -21
- package/out/types/basis.js +13 -13
- package/out/types/discriminate.d.ts +33 -19
- package/out/types/discriminate.js +116 -110
- package/out/types/domain.d.ts +54 -37
- package/out/types/domain.js +39 -36
- package/out/types/intersection.d.ts +121 -61
- package/out/types/intersection.js +355 -326
- package/out/types/morph.d.ts +148 -70
- package/out/types/morph.js +97 -93
- package/out/types/proto.d.ts +48 -39
- package/out/types/proto.js +58 -46
- package/out/types/type.d.ts +137 -55
- package/out/types/type.d.ts.map +1 -1
- package/out/types/type.js +121 -109
- package/out/types/type.js.map +1 -1
- package/out/types/union.d.ts +66 -43
- package/out/types/union.js +299 -257
- package/out/types/unit.d.ts +41 -36
- package/out/types/unit.js +53 -45
- package/out/util.d.ts +30 -21
- package/out/util.js +8 -7
- package/package.json +3 -2
- package/parser/definition.ts +64 -81
- package/parser/generic.ts +35 -36
- package/parser/objectLiteral.ts +78 -92
- package/parser/semantic/bounds.ts +25 -33
- package/parser/semantic/divisor.ts +7 -11
- package/parser/semantic/infer.ts +69 -80
- package/parser/semantic/utils.ts +10 -13
- package/parser/semantic/validate.ts +81 -71
- package/parser/string/reduce/dynamic.ts +42 -39
- package/parser/string/reduce/shared.ts +1 -1
- package/parser/string/reduce/static.ts +50 -52
- package/parser/string/shift/operand/date.ts +5 -5
- package/parser/string/shift/operand/enclosed.ts +12 -13
- package/parser/string/shift/operand/genericArgs.ts +45 -44
- package/parser/string/shift/operand/operand.ts +32 -37
- package/parser/string/shift/operand/unenclosed.ts +99 -134
- package/parser/string/shift/operator/bounds.ts +78 -75
- package/parser/string/shift/operator/divisor.ts +11 -13
- package/parser/string/shift/operator/operator.ts +35 -46
- package/parser/string/shift/scanner.ts +39 -36
- package/parser/string/string.ts +26 -30
- package/parser/tuple.ts +206 -248
- package/scope.ts +185 -704
- package/type.ts +101 -140
- package/__tests__/errors.test.ts +0 -115
- package/__tests__/schema.bench.ts +0 -14
- package/__tests__/schema.test.ts +0 -60
- package/__tests__/typeMethods.test.ts +0 -68
- package/__tests__/unit.test.ts +0 -61
- package/base.ts +0 -520
- package/config.ts +0 -25
- package/constraints/ast.ts +0 -288
- package/constraints/constraint.ts +0 -91
- package/constraints/predicate.ts +0 -102
- package/constraints/props/index.ts +0 -93
- package/constraints/props/prop.ts +0 -146
- package/constraints/props/props.ts +0 -148
- package/constraints/props/sequence.ts +0 -473
- package/constraints/props/shared.ts +0 -5
- package/constraints/refinements/after.ts +0 -68
- package/constraints/refinements/before.ts +0 -75
- package/constraints/refinements/divisor.ts +0 -76
- package/constraints/refinements/exactLength.ts +0 -75
- package/constraints/refinements/kinds.ts +0 -31
- package/constraints/refinements/max.ts +0 -61
- package/constraints/refinements/maxLength.ts +0 -66
- package/constraints/refinements/min.ts +0 -54
- package/constraints/refinements/minLength.ts +0 -63
- package/constraints/refinements/range.ts +0 -181
- package/constraints/refinements/regex.ts +0 -59
- package/keywords/ark.ts +0 -101
- package/keywords/internal.ts +0 -29
- package/keywords/jsObject.ts +0 -39
- package/keywords/parsing.ts +0 -87
- package/keywords/root.ts +0 -9
- package/keywords/tsGenerics.ts +0 -28
- package/keywords/tsPrimitive.ts +0 -52
- package/keywords/utils/creditCard.ts +0 -37
- package/keywords/utils/date.ts +0 -112
- package/keywords/validation.ts +0 -115
- package/kinds.ts +0 -115
- package/parse.ts +0 -221
- package/schema.ts +0 -263
- package/shared/compile.ts +0 -92
- package/shared/declare.ts +0 -75
- package/shared/disjoint.ts +0 -203
- package/shared/errors.ts +0 -204
- package/shared/implement.ts +0 -327
- package/shared/inference.ts +0 -9
- package/shared/intersections.ts +0 -53
- package/shared/traversal.ts +0 -146
- package/shared/utils.ts +0 -30
- package/types/basis.ts +0 -62
- package/types/discriminate.ts +0 -168
- package/types/domain.ts +0 -79
- package/types/intersection.ts +0 -539
- package/types/morph.ts +0 -263
- package/types/proto.ts +0 -89
- package/types/type.ts +0 -319
- package/types/union.ts +0 -451
- package/types/unit.ts +0 -78
- package/util.ts +0 -39
package/out/scope.d.ts
CHANGED
|
@@ -1,79 +1,15 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
import { type
|
|
3
|
-
import type { type } from "./
|
|
4
|
-
import
|
|
5
|
-
import type { jsObjectKeywords } from "./keywords/jsObject.js";
|
|
6
|
-
import type { tsPrimitiveKeywords } from "./keywords/tsPrimitive.js";
|
|
1
|
+
import { type ArkConfig, type GenericProps, type NodeParseOptions, type PreparsedNodeResolution, type RawSchema, type RawSchemaResolutions, RawSchemaScope, type SchemaScope, type ambient, type arkKind, type destructuredExportContext, type destructuredImportContext, type exportedNameOf } from "@arktype/schema";
|
|
2
|
+
import { type nominal, type show } from "@arktype/util";
|
|
3
|
+
import type { type } from "./ark.js";
|
|
4
|
+
import { Generic } from "./generic.js";
|
|
7
5
|
import { type MatchParser } from "./match.js";
|
|
8
|
-
import {
|
|
6
|
+
import type { Module } from "./module.js";
|
|
9
7
|
import { type inferDefinition, type validateDefinition } from "./parser/definition.js";
|
|
10
|
-
import {
|
|
11
|
-
import type {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
import { type DeclarationParser, type DefinitionParser, type Generic, type GenericProps, type TypeParser } from "./type.js";
|
|
16
|
-
import type { distillConstrainableIn, distillConstrainableOut } from "./types/morph.js";
|
|
17
|
-
import { type Type } from "./types/type.js";
|
|
18
|
-
import type { UnionNode } from "./types/union.js";
|
|
19
|
-
import type { UnitNode } from "./types/unit.js";
|
|
20
|
-
import { type arkKind } from "./util.js";
|
|
21
|
-
export type nodeResolutions<keywords> = {
|
|
22
|
-
[k in keyof keywords]: Type;
|
|
23
|
-
};
|
|
24
|
-
export type BaseResolutions = Record<string, Type>;
|
|
25
|
-
declare global {
|
|
26
|
-
export interface StaticArkConfig {
|
|
27
|
-
preserve(): never;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
type nodeConfigForKind<kind extends NodeKind> = Readonly<evaluate<{
|
|
31
|
-
description?: DescriptionWriter<kind>;
|
|
32
|
-
} & (kind extends ArkErrorCode ? {
|
|
33
|
-
expected?: ExpectedWriter<kind>;
|
|
34
|
-
actual?: ActualWriter<kind>;
|
|
35
|
-
problem?: ProblemWriter<kind>;
|
|
36
|
-
message?: MessageWriter<kind>;
|
|
37
|
-
} : {})>>;
|
|
38
|
-
type NodeConfigsByKind = {
|
|
39
|
-
[kind in NodeKind]: nodeConfigForKind<kind>;
|
|
40
|
-
};
|
|
41
|
-
export type NodeConfig<kind extends NodeKind = NodeKind> = NodeConfigsByKind[kind];
|
|
42
|
-
type UnknownNodeConfig = {
|
|
43
|
-
description?: DescriptionWriter;
|
|
44
|
-
expected?: ExpectedWriter;
|
|
45
|
-
actual?: ActualWriter;
|
|
46
|
-
problem?: ProblemWriter;
|
|
47
|
-
message?: MessageWriter;
|
|
48
|
-
};
|
|
49
|
-
export type ParsedUnknownNodeConfig = requireKeys<UnknownNodeConfig, "description">;
|
|
50
|
-
export type StaticArkOption<k extends keyof StaticArkConfig> = ReturnType<StaticArkConfig[k]>;
|
|
51
|
-
export interface ArkConfig extends Partial<Readonly<NodeConfigsByKind>> {
|
|
52
|
-
readonly ambient?: Scope | null;
|
|
53
|
-
}
|
|
54
|
-
type resolveConfig<config extends ArkConfig> = {
|
|
55
|
-
[k in keyof config]-?: k extends NodeKind ? Required<config[k]> : config[k];
|
|
56
|
-
};
|
|
57
|
-
export type ResolvedArkConfig = resolveConfig<ArkConfig>;
|
|
58
|
-
export declare const defaultConfig: ResolvedArkConfig;
|
|
59
|
-
declare const resolveConfig: (scopeConfig: ArkConfig | undefined) => ResolvedArkConfig;
|
|
60
|
-
export type ScopeParser<parent, ambient> = {
|
|
61
|
-
<const def>(def: validateScope<def, parent & ambient>, config?: ArkConfig): Scope<{
|
|
62
|
-
exports: inferBootstrapped<{
|
|
63
|
-
exports: bootstrapExports<def>;
|
|
64
|
-
locals: bootstrapLocals<def> & parent;
|
|
65
|
-
ambient: ambient;
|
|
66
|
-
}>;
|
|
67
|
-
locals: inferBootstrapped<{
|
|
68
|
-
exports: bootstrapLocals<def>;
|
|
69
|
-
locals: bootstrapExports<def> & parent;
|
|
70
|
-
ambient: ambient;
|
|
71
|
-
}>;
|
|
72
|
-
ambient: ambient;
|
|
73
|
-
}>;
|
|
74
|
-
};
|
|
75
|
-
type validateScope<def, $> = {
|
|
76
|
-
[k in keyof def]: parseScopeKey<k>["params"] extends [] ? def[k] extends Type | PreparsedResolution ? def[k] : validateDefinition<def[k], $ & bootstrap<def>, {}> : parseScopeKey<k>["params"] extends GenericParamsParseError ? parseScopeKey<k>["params"][0] : validateDefinition<def[k], $ & bootstrap<def>, {
|
|
8
|
+
import { type GenericDeclaration, type GenericParamsParseError, parseGenericParams } from "./parser/generic.js";
|
|
9
|
+
import type { DeclarationParser, DefinitionParser, Type, TypeParser } from "./type.js";
|
|
10
|
+
export type ScopeParser = <const def>(def: validateScope<def>, config?: ArkConfig) => Scope<inferBootstrapped<bootstrapAliases<def>>>;
|
|
11
|
+
type validateScope<def> = {
|
|
12
|
+
[k in keyof def]: k extends symbol ? unknown : parseScopeKey<k>["params"] extends [] ? def[k] extends Type | PreparsedResolution ? def[k] : validateDefinition<def[k], ambient & bootstrapAliases<def>, {}> : parseScopeKey<k>["params"] extends GenericParamsParseError ? parseScopeKey<k>["params"][0] : validateDefinition<def[k], ambient & bootstrapAliases<def>, {
|
|
77
13
|
[param in parseScopeKey<k>["params"][number]]: unknown;
|
|
78
14
|
}>;
|
|
79
15
|
};
|
|
@@ -84,143 +20,63 @@ export type bindThis<def> = {
|
|
|
84
20
|
type Def<def = {}> = nominal<def, "unparsed">;
|
|
85
21
|
/** sentinel indicating a scope that will be associated with a generic has not yet been parsed */
|
|
86
22
|
export type UnparsedScope = "$";
|
|
87
|
-
type bootstrap<def> = bootstrapLocals<def> & bootstrapExports<def>;
|
|
88
|
-
type bootstrapLocals<def> = bootstrapAliases<{
|
|
89
|
-
[k in keyof def & PrivateDeclaration as extractPrivateKey<k>]: def[k];
|
|
90
|
-
}>;
|
|
91
|
-
type bootstrapExports<def> = bootstrapAliases<{
|
|
92
|
-
[k in Exclude<keyof def, PrivateDeclaration>]: def[k];
|
|
93
|
-
}>;
|
|
94
23
|
/** These are legal as values of a scope but not as definitions in other contexts */
|
|
95
|
-
type PreparsedResolution =
|
|
24
|
+
type PreparsedResolution = PreparsedNodeResolution;
|
|
96
25
|
type bootstrapAliases<def> = {
|
|
97
26
|
[k in Exclude<keyof def, GenericDeclaration | symbol>]: def[k] extends PreparsedResolution ? def[k] : def[k] extends (() => infer thunkReturn extends PreparsedResolution) ? thunkReturn : Def<def[k]>;
|
|
98
27
|
} & {
|
|
99
|
-
[k in keyof def & GenericDeclaration as extractGenericName<k>]:
|
|
28
|
+
[k in keyof def & GenericDeclaration as extractGenericName<k>]: GenericProps<parseGenericParams<extractGenericParameters<k>>, def[k], UnparsedScope>;
|
|
100
29
|
};
|
|
101
|
-
type inferBootstrapped
|
|
102
|
-
[name in keyof
|
|
30
|
+
type inferBootstrapped<$> = show<{
|
|
31
|
+
[name in keyof $]: $[name] extends Def<infer def> ? inferDefinition<def, $ & ambient, {}> : $[name] extends GenericProps<infer params, infer def> ? Generic<params, def, $> : $[name];
|
|
103
32
|
}>;
|
|
104
33
|
type extractGenericName<k> = k extends GenericDeclaration<infer name> ? name : never;
|
|
105
34
|
type extractGenericParameters<k> = k extends GenericDeclaration<string, infer params> ? params : never;
|
|
106
|
-
type
|
|
107
|
-
type PrivateDeclaration<key extends string = string> = `#${key}`;
|
|
108
|
-
export type resolve<reference extends keyof $ | keyof args, $, args> = (reference extends keyof args ? args[reference] : $[reference & keyof $]) extends infer resolution ? [resolution] extends [never] ? never : isAny<resolution> extends true ? any : resolution extends Def<infer def> ? inferDefinition<def, $, args> : resolution : never;
|
|
35
|
+
export type resolve<reference extends keyof $ | keyof args, $, args> = (reference extends keyof args ? args[reference] : $[reference & keyof $]) extends infer resolution ? resolution extends Def<infer def> ? def extends null ? resolution : inferDefinition<def, $, args> : resolution : never;
|
|
109
36
|
export type moduleKeyOf<$> = {
|
|
110
|
-
[k in keyof $]: $[k] extends
|
|
37
|
+
[k in keyof $]: $[k] extends {
|
|
38
|
+
[arkKind]: "module";
|
|
39
|
+
} ? k & string : never;
|
|
111
40
|
}[keyof $];
|
|
112
|
-
export type tryInferSubmoduleReference<$, token> = token extends `${infer submodule extends moduleKeyOf<$>}.${infer subalias}` ? subalias extends keyof $[submodule] ? $[submodule][subalias] extends
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
export
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
ambient: {};
|
|
127
|
-
};
|
|
128
|
-
export type ParseContext = {
|
|
129
|
-
baseName: string;
|
|
130
|
-
path: string[];
|
|
131
|
-
$: Scope;
|
|
132
|
-
args: Record<string, Type> | undefined;
|
|
133
|
-
};
|
|
134
|
-
type ParseContextInput = Partial<ParseContext>;
|
|
135
|
-
export type PrimitiveKeywords = typeof tsPrimitiveKeywords & typeof jsObjectKeywords & typeof internalPrimitiveKeywords;
|
|
136
|
-
export declare class Scope<r extends Resolutions = any> {
|
|
137
|
-
infer: distillConstrainableOut<r["exports"]>;
|
|
138
|
-
inferIn: distillConstrainableIn<r["exports"]>;
|
|
139
|
-
readonly config: ArkConfig;
|
|
140
|
-
readonly resolvedConfig: ResolvedArkConfig;
|
|
41
|
+
export type tryInferSubmoduleReference<$, token> = token extends `${infer submodule extends moduleKeyOf<$>}.${infer subalias}` ? subalias extends keyof $[submodule] ? $[submodule][subalias] extends type.cast<infer t> ? t : never : never : never;
|
|
42
|
+
export interface ParseContext extends NodeParseOptions {
|
|
43
|
+
$: RawScope;
|
|
44
|
+
}
|
|
45
|
+
export declare const scope: ScopeParser;
|
|
46
|
+
export interface Scope<$ = any> extends SchemaScope<$> {
|
|
47
|
+
type: TypeParser<$>;
|
|
48
|
+
match: MatchParser<$>;
|
|
49
|
+
declare: DeclarationParser<$>;
|
|
50
|
+
define: DefinitionParser<$>;
|
|
51
|
+
import<names extends exportedNameOf<$>[]>(...names: names): Module<show<destructuredImportContext<$, names>>>;
|
|
52
|
+
export<names extends exportedNameOf<$>[]>(...names: names): Module<show<destructuredExportContext<$, names>>>;
|
|
53
|
+
}
|
|
54
|
+
export declare class RawScope<$ extends RawSchemaResolutions = RawSchemaResolutions> extends RawSchemaScope<$> {
|
|
141
55
|
private parseCache;
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
[name: string]: UnknownNode;
|
|
148
|
-
};
|
|
149
|
-
references: readonly UnknownNode[];
|
|
150
|
-
json: Json;
|
|
151
|
-
protected resolved: boolean;
|
|
152
|
-
/** The set of names defined at the root-level of the scope mapped to their
|
|
153
|
-
* corresponding definitions.**/
|
|
154
|
-
aliases: Record<string, unknown>;
|
|
155
|
-
private exportedNames;
|
|
156
|
-
constructor(def: Dict, config?: ArkConfig);
|
|
157
|
-
type: TypeParser<$<r>>;
|
|
158
|
-
schema: SchemaParser<$<r>>;
|
|
159
|
-
protected rawSchema(schema: unknown): ["schema", unknown];
|
|
160
|
-
match: MatchParser<$<r>>;
|
|
161
|
-
declare: DeclarationParser<$<r>>;
|
|
162
|
-
scope: ScopeParser<r["exports"], r["ambient"]>;
|
|
163
|
-
define: DefinitionParser<$<r>>;
|
|
164
|
-
toAmbient(): Scope<{
|
|
165
|
-
exports: r["exports"];
|
|
166
|
-
locals: r["locals"];
|
|
167
|
-
ambient: r["exports"];
|
|
168
|
-
}>;
|
|
169
|
-
get<name extends keyof r["exports"] & string>(name: name): Type<r["exports"][name], $<r>>;
|
|
170
|
-
parse(def: unknown, ctx: ParseContext): Type;
|
|
171
|
-
parseTypeRoot(def: unknown, input?: ParseContextInput): Type;
|
|
172
|
-
parseString(def: string, ctx: ParseContext): Type;
|
|
173
|
-
maybeResolve(name: string): Type | Generic | undefined;
|
|
174
|
-
/** If name is a valid reference to a submodule alias, return its resolution */
|
|
175
|
-
private maybeResolveSubalias;
|
|
176
|
-
maybeResolveNode(name: string): Type | undefined;
|
|
177
|
-
import<names extends exportedName<r>[]>(...names: names): destructuredImportContext<r, names extends [] ? keyof r["exports"] & string : names[number]>;
|
|
178
|
-
private exportedResolutions;
|
|
179
|
-
private exportCache;
|
|
180
|
-
export<names extends exportedName<r>[]>(...names: names): Module<names extends [] ? r : destructuredExportContext<r, names[number]>>;
|
|
181
|
-
parseUnits<const branches extends array>(...values: branches): branches["length"] extends 1 ? UnionNode<branches[0]> : UnionNode<branches[number]> | UnitNode<branches[number]>;
|
|
182
|
-
node: NodeParser<$<r>>;
|
|
183
|
-
protected internalNodeParser(schemaOrKind: unknown, schemaOrOpts?: unknown, constraintOpts?: SchemaParseOptions): UnknownNode;
|
|
184
|
-
protected bindCompiledScope(references: readonly UnknownNode[]): void;
|
|
185
|
-
protected compileScope(references: readonly UnknownNode[]): {
|
|
186
|
-
[k: `${string}Allows`]: TraverseAllows;
|
|
187
|
-
[k: `${string}Apply`]: TraverseApply;
|
|
56
|
+
constructor(def: Record<string, unknown>, config?: ArkConfig);
|
|
57
|
+
type(...args: unknown[]): RawSchema | Generic;
|
|
58
|
+
match: MatchParser<$>;
|
|
59
|
+
declare(): {
|
|
60
|
+
type: RawScope["type"];
|
|
188
61
|
};
|
|
62
|
+
define(def: unknown): unknown;
|
|
63
|
+
preparseRoot(def: unknown): unknown;
|
|
64
|
+
parseRoot(def: unknown, opts?: NodeParseOptions): RawSchema;
|
|
65
|
+
parse(def: unknown, ctx: ParseContext): RawSchema;
|
|
66
|
+
parseString(def: string, ctx: ParseContext): RawSchema;
|
|
189
67
|
}
|
|
190
|
-
type destructuredExportContext<r extends Resolutions, name extends exportedName<r>> = {
|
|
191
|
-
exports: {
|
|
192
|
-
[k in name]: r["exports"][k];
|
|
193
|
-
};
|
|
194
|
-
locals: r["locals"] & {
|
|
195
|
-
[k in Exclude<keyof r["exports"], name>]: r["exports"][k];
|
|
196
|
-
};
|
|
197
|
-
ambient: r["ambient"];
|
|
198
|
-
};
|
|
199
|
-
type destructuredImportContext<r extends Resolutions, name extends exportedName<r>> = {
|
|
200
|
-
[k in name as `#${k & string}`]: type.cast<r["exports"][k]>;
|
|
201
|
-
};
|
|
202
68
|
export declare const writeShallowCycleErrorMessage: (name: string, seen: string[]) => string;
|
|
203
|
-
export declare const writeDuplicateNameMessage: <name extends string>(name: name) => `Duplicate name '${name}'`;
|
|
204
|
-
type writeDuplicateNameMessage<name extends string> = `Duplicate name '${name}'`;
|
|
205
69
|
export type ParsedScopeKey = {
|
|
206
|
-
isLocal: boolean;
|
|
207
70
|
name: string;
|
|
208
71
|
params: string[];
|
|
209
72
|
};
|
|
210
73
|
export declare const parseScopeKey: (k: string) => ParsedScopeKey;
|
|
211
|
-
type parseScopeKey<k> = k extends
|
|
212
|
-
type parsePossibleGenericDeclaration<k, isLocal extends boolean> = k extends GenericDeclaration<infer name, infer paramString> ? {
|
|
213
|
-
isLocal: isLocal;
|
|
74
|
+
export type parseScopeKey<k> = k extends GenericDeclaration<infer name, infer paramString> ? {
|
|
214
75
|
name: name;
|
|
215
76
|
params: parseGenericParams<paramString>;
|
|
216
77
|
} : {
|
|
217
|
-
isLocal: isLocal;
|
|
218
78
|
name: k;
|
|
219
79
|
params: [];
|
|
220
80
|
};
|
|
221
|
-
export interface TypeSchemaParseOptions<allowedKind extends TypeKind = TypeKind> extends SchemaParseOptions {
|
|
222
|
-
root?: boolean;
|
|
223
|
-
allowedKinds?: readonly allowedKind[];
|
|
224
|
-
}
|
|
225
81
|
export {};
|
|
226
82
|
//# sourceMappingURL=scope.d.ts.map
|
package/out/scope.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scope.d.ts","sourceRoot":"","sources":["../scope.ts"],"names":[],"mappings":"AAAA,OAAO,EASN,KAAK,IAAI,EACT,KAAK,IAAI,EACT,KAAK,KAA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