arktype 3.0.0-beta.1 → 3.0.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +48 -144
- package/out/_internal/regex/charset.d.ts +24 -0
- package/out/_internal/regex/escape.d.ts +29 -0
- package/out/_internal/regex/execArray.d.ts +24 -0
- package/out/_internal/regex/group.d.ts +34 -0
- package/out/_internal/regex/index.d.ts +2 -0
- package/out/_internal/regex/internal.d.ts +9 -0
- package/out/_internal/regex/parse.d.ts +10 -0
- package/out/_internal/regex/quantify.d.ts +59 -0
- package/out/_internal/regex/regex.d.ts +38 -0
- package/out/_internal/regex/state.d.ts +383 -0
- package/out/_internal/schema/codecs.d.ts +2 -0
- package/out/_internal/schema/config.d.ts +103 -0
- package/out/_internal/schema/constraint.d.ts +78 -0
- package/out/_internal/schema/errors.d.ts +1 -0
- package/out/_internal/schema/generic.d.ts +85 -0
- package/out/_internal/schema/i18n.d.ts +3 -0
- package/out/_internal/schema/index.d.ts +54 -0
- package/out/_internal/schema/internal.d.ts +15 -0
- package/out/_internal/schema/intrinsic.d.ts +28 -0
- package/out/_internal/schema/kinds.d.ts +76 -0
- package/out/_internal/schema/module.d.ts +23 -0
- package/out/_internal/schema/mutatesInput.d.ts +2 -0
- package/out/_internal/schema/node.d.ts +349 -0
- package/out/_internal/schema/parse.d.ts +77 -0
- package/out/_internal/schema/parseSchema.d.ts +116 -0
- package/out/_internal/schema/predicate.d.ts +46 -0
- package/out/_internal/schema/refinements/after.d.ts +32 -0
- package/out/_internal/schema/refinements/before.d.ts +32 -0
- package/out/_internal/schema/refinements/divisor.d.ts +41 -0
- package/out/_internal/schema/refinements/exactLength.d.ts +43 -0
- package/out/_internal/schema/refinements/kinds.d.ts +40 -0
- package/out/_internal/schema/refinements/max.d.ts +33 -0
- package/out/_internal/schema/refinements/maxLength.d.ts +32 -0
- package/out/_internal/schema/refinements/min.d.ts +33 -0
- package/out/_internal/schema/refinements/minLength.d.ts +32 -0
- package/out/_internal/schema/refinements/notEqual.d.ts +38 -0
- package/out/_internal/schema/refinements/notEqualLength.d.ts +38 -0
- package/out/_internal/schema/refinements/pattern.d.ts +43 -0
- package/out/_internal/schema/refinements/range.d.ts +101 -0
- package/out/_internal/schema/roots/alias.d.ts +49 -0
- package/out/_internal/schema/roots/basis.d.ts +12 -0
- package/out/_internal/schema/roots/domain.d.ts +45 -0
- package/out/_internal/schema/roots/intersection.d.ts +72 -0
- package/out/_internal/schema/roots/morph.d.ts +59 -0
- package/out/_internal/schema/roots/proto.d.ts +42 -0
- package/out/_internal/schema/roots/root.d.ts +163 -0
- package/out/_internal/schema/roots/union.d.ts +146 -0
- package/out/_internal/schema/roots/unit.d.ts +36 -0
- package/out/_internal/schema/runtime.d.ts +29 -0
- package/out/_internal/schema/runtimeLean.d.ts +2 -0
- package/out/_internal/schema/runtimeNone.d.ts +2 -0
- package/out/_internal/schema/runtimeNoneLean.d.ts +2 -0
- package/out/_internal/schema/scope.d.ts +203 -0
- package/out/_internal/schema/shared/codecs.d.ts +5 -0
- package/out/_internal/schema/shared/compile.d.ts +144 -0
- package/out/_internal/schema/shared/configured.d.ts +14 -0
- package/out/_internal/schema/shared/declare.d.ts +100 -0
- package/out/_internal/schema/shared/disjoint.d.ts +45 -0
- package/out/_internal/schema/shared/enWriters.d.ts +30 -0
- package/out/_internal/schema/shared/errorModes.d.ts +25 -0
- package/out/_internal/schema/shared/errorWriters.d.ts +34 -0
- package/out/_internal/schema/shared/errors.d.ts +264 -0
- package/out/_internal/schema/shared/implement.d.ts +154 -0
- package/out/_internal/schema/shared/inPlace.d.ts +8 -0
- package/out/_internal/schema/shared/issueFeatures.d.ts +38 -0
- package/out/_internal/schema/shared/issues.d.ts +261 -0
- package/out/_internal/schema/shared/issuesLean.d.ts +80 -0
- package/out/_internal/schema/shared/issuesNone.d.ts +22 -0
- package/out/_internal/schema/shared/issuesNoneLean.d.ts +20 -0
- package/out/_internal/schema/shared/issuesUndetailed.d.ts +25 -0
- package/out/_internal/schema/shared/jsonSchema.d.ts +153 -0
- package/out/_internal/schema/shared/listed.d.ts +15 -0
- package/out/_internal/schema/shared/locale.d.ts +149 -0
- package/out/_internal/schema/shared/registry.d.ts +16 -0
- package/out/_internal/schema/shared/render.d.ts +3 -0
- package/out/_internal/schema/shared/rootApply.d.ts +19 -0
- package/out/_internal/schema/shared/sets.d.ts +26 -0
- package/out/_internal/schema/shared/standardFailure.d.ts +22 -0
- package/out/_internal/schema/shared/standardSchema.d.ts +124 -0
- package/out/_internal/schema/shared/toJsonSchema.d.ts +229 -0
- package/out/_internal/schema/shared/transform.d.ts +35 -0
- package/out/_internal/schema/shared/traversal.d.ts +288 -0
- package/out/_internal/schema/shared/utils.d.ts +59 -0
- package/out/_internal/schema/structure/index.d.ts +43 -0
- package/out/_internal/schema/structure/optional.d.ts +61 -0
- package/out/_internal/schema/structure/prop.d.ts +45 -0
- package/out/_internal/schema/structure/required.d.ts +49 -0
- package/out/_internal/schema/structure/sequence.d.ts +127 -0
- package/out/_internal/schema/structure/shared.d.ts +3 -0
- package/out/_internal/schema/structure/structure.d.ts +178 -0
- package/out/_internal/schema/units.d.ts +123 -0
- package/out/_internal/sets/algebra.d.ts +26 -0
- package/out/_internal/sets/constraint.d.ts +19 -0
- package/out/_internal/sets/engine.d.ts +2 -0
- package/out/_internal/sets/formats.d.ts +23 -0
- package/out/_internal/sets/fromJsonSchema.d.ts +15 -0
- package/out/_internal/sets/implement.d.ts +16 -0
- package/out/_internal/sets/index.d.ts +2 -0
- package/out/_internal/sets/internal.d.ts +20 -0
- package/out/_internal/sets/intersections.d.ts +5 -0
- package/out/_internal/sets/kinds.d.ts +3 -0
- package/out/_internal/sets/refinements.d.ts +14 -0
- package/out/_internal/sets/roots/alias.d.ts +3 -0
- package/out/_internal/sets/roots/domain.d.ts +3 -0
- package/out/_internal/sets/roots/intersection.d.ts +4 -0
- package/out/_internal/sets/roots/morph.d.ts +4 -0
- package/out/_internal/sets/roots/proto.d.ts +3 -0
- package/out/_internal/sets/roots/union.d.ts +16 -0
- package/out/_internal/sets/roots/unit.d.ts +3 -0
- package/out/_internal/sets/structure/index.d.ts +3 -0
- package/out/_internal/sets/structure/prop.d.ts +8 -0
- package/out/_internal/sets/structure/sequence.d.ts +3 -0
- package/out/_internal/sets/structure/structure.d.ts +3 -0
- package/out/_internal/sets/toJsonSchema.d.ts +25 -0
- package/out/_internal/util/arrays.d.ts +130 -0
- package/out/_internal/util/clone.d.ts +4 -0
- package/out/_internal/util/describe.d.ts +25 -0
- package/out/_internal/util/domain.d.ts +49 -0
- package/out/_internal/util/errors.d.ts +29 -0
- package/out/_internal/util/facts.d.ts +22 -0
- package/out/_internal/util/flatMorph.d.ts +41 -0
- package/out/_internal/util/formats.d.ts +8 -0
- package/out/_internal/util/functions.d.ts +33 -0
- package/out/_internal/util/generics.d.ts +65 -0
- package/out/_internal/util/get.d.ts +9 -0
- package/out/_internal/util/hkt.d.ts +27 -0
- package/out/_internal/util/i18n.d.ts +12 -0
- package/out/_internal/util/index.d.ts +28 -0
- package/out/_internal/util/internal.d.ts +2 -0
- package/out/_internal/util/intersections.d.ts +50 -0
- package/out/_internal/util/isomorphic.d.ts +8 -0
- package/out/_internal/util/keys.d.ts +18 -0
- package/out/_internal/util/lazily.d.ts +7 -0
- package/out/_internal/util/numbers.d.ts +82 -0
- package/out/_internal/util/objectKinds.d.ts +157 -0
- package/out/_internal/util/path.d.ts +16 -0
- package/out/_internal/util/primitive.d.ts +16 -0
- package/out/_internal/util/records.d.ts +173 -0
- package/out/_internal/util/registry.d.ts +13 -0
- package/out/_internal/util/scanner.d.ts +110 -0
- package/out/_internal/util/serialize.d.ts +40 -0
- package/out/_internal/util/strings.d.ts +35 -0
- package/out/_internal/util/traits.d.ts +89 -0
- package/out/_internal/util/unionToTuple.d.ts +14 -0
- package/out/_internal/util/weak.d.ts +8 -0
- package/out/attributes.d.ts +15 -11
- package/out/checkers.d.ts +1 -1
- package/out/chunk-22RQSVV3.js +0 -0
- package/out/chunk-3HZC67MT.js +965 -0
- package/out/chunk-3KBOPH3J.js +1564 -0
- package/out/chunk-3SH2BQ4T.js +15 -0
- package/out/chunk-46PLKNON.js +126 -0
- package/out/{chunk-G45P2CLE.js → chunk-4FTHWK63.js} +6 -1
- package/out/{chunk-UK5UGFOX.js → chunk-4HREHNIV.js} +23 -11
- package/out/chunk-4NZCLVBD.js +14 -0
- package/out/chunk-6FMBO47M.js +7 -0
- package/out/chunk-7TALAWYX.js +10 -0
- package/out/{chunk-DLWCO4RV.js → chunk-BCYKO54Z.js} +11 -2
- package/out/chunk-BDJVONP7.js +168 -0
- package/out/{chunk-E3DZXEZK.js → chunk-C2JOL5M2.js} +4 -2
- package/out/{chunk-2U2AWCI3.js → chunk-C2V6QPE3.js} +126 -97
- package/out/chunk-C3B4IFQL.js +6408 -0
- package/out/chunk-CWSF57VM.js +10 -0
- package/out/chunk-F5BACUJS.js +7 -0
- package/out/{chunk-EVCML554.js → chunk-FWRSDUJ2.js} +14 -5
- package/out/chunk-GID3FSQA.js +161 -0
- package/out/chunk-I2KLQ2HA.js +22 -0
- package/out/chunk-K7SLP5D2.js +84 -0
- package/out/chunk-KQPSKGUI.js +9 -0
- package/out/chunk-KXOC3JEX.js +8234 -0
- package/out/chunk-KXOSUYRA.js +405 -0
- package/out/chunk-LHNEY6QW.js +0 -0
- package/out/chunk-MTWKGAGO.js +323 -0
- package/out/chunk-NU73GNCX.js +170 -0
- package/out/{chunk-RAZ3TXOE.js → chunk-P5W67FQH.js} +34 -19
- package/out/chunk-PDLTEX6Z.js +1118 -0
- package/out/{chunk-VV6YDN2D.js → chunk-QUS4IAXJ.js} +304 -263
- package/out/chunk-R7WXIH5P.js +94 -0
- package/out/chunk-TACLEIDM.js +95 -0
- package/out/chunk-UJJGG4VQ.js +71 -0
- package/out/chunk-US6BWOGJ.js +109 -0
- package/out/chunk-VMMMOO4R.js +945 -0
- package/out/chunk-VYMXHSFR.js +439 -0
- package/out/chunk-W2XOI5DY.js +141 -0
- package/out/chunk-WC5L5YRP.js +25 -0
- package/out/{chunk-NRIGTMPM.js → chunk-WKOSL2G6.js} +4 -1
- package/out/chunk-XLG66ZDF.js +0 -0
- package/out/{chunk-5U2ZMDNI.js → chunk-XNUAQSJ4.js} +52 -30
- package/out/chunk-ZRYEHGSG.js +79 -0
- package/out/cli.d.ts +28 -0
- package/out/cli.js +636 -0
- package/out/codecs.d.ts +6 -5
- package/out/codecs.js +23 -7
- package/out/config.d.ts +5 -17
- package/out/config.js +11 -2
- package/out/declare.d.ts +40 -12
- package/out/deferred.d.ts +2 -2
- package/out/errors.d.ts +1 -1
- package/out/errors.js +10 -2
- package/out/fn.d.ts +20 -13
- package/out/fromJsonSchema.d.ts +18 -0
- package/out/generic.d.ts +9 -6
- package/out/i18n.d.ts +2 -2
- package/out/i18n.js +9 -2
- package/out/index.d.ts +16 -7
- package/out/index.js +25 -8
- package/out/internal.d.ts +4 -0
- package/out/internal.js +41 -17
- package/out/island.js +22 -6
- package/out/islandDependency.js +42 -18
- package/out/jsonSchema/infer.d.ts +805 -0
- package/out/jsonSchema/validate.d.ts +416 -0
- package/out/keywords/Array.d.ts +2 -2
- package/out/keywords/builtins.d.ts +3 -3
- package/out/keywords/constructors.d.ts +1 -1
- package/out/keywords/functions.d.ts +5 -192
- package/out/keywords/keywords.d.ts +3 -3
- package/out/keywords/number.d.ts +2 -2
- package/out/keywords/phrases.d.ts +4 -191
- package/out/keywords/string.d.ts +3 -3
- package/out/keywords/ts.d.ts +18 -18
- package/out/keywords/ts.js +19 -4
- package/out/locale.d.ts +6 -2
- package/out/locales/de.js +9 -2
- package/out/locales/en.js +21 -5
- package/out/match.d.ts +13 -10
- package/out/module.d.ts +2 -2
- package/out/mutatesInput.js +18 -3
- package/out/nary.d.ts +220 -194
- package/out/parser/ast/bounds.d.ts +2 -2
- package/out/parser/ast/default.d.ts +2 -2
- package/out/parser/ast/divisor.d.ts +2 -2
- package/out/parser/ast/generic.d.ts +2 -2
- package/out/parser/ast/infer.d.ts +1 -1
- package/out/parser/ast/keyof.d.ts +2 -2
- package/out/parser/ast/utils.d.ts +1 -1
- package/out/parser/ast/validate.d.ts +2 -2
- package/out/parser/definition.d.ts +4 -4
- package/out/parser/objectLiteral.d.ts +2 -2
- package/out/parser/property.d.ts +2 -2
- package/out/parser/reduce/dynamic.d.ts +2 -2
- package/out/parser/reduce/shared.d.ts +1 -1
- package/out/parser/reduce/static.d.ts +1 -1
- package/out/parser/shift/operand/enclosed.d.ts +2 -2
- package/out/parser/shift/operand/genericArgs.d.ts +2 -2
- package/out/parser/shift/operand/operand.d.ts +1 -1
- package/out/parser/shift/operand/unenclosed.d.ts +2 -2
- package/out/parser/shift/operand/unresolvable.d.ts +2 -2
- package/out/parser/shift/operator/bounds.d.ts +2 -2
- package/out/parser/shift/operator/brand.d.ts +2 -2
- package/out/parser/shift/operator/default.d.ts +4 -4
- package/out/parser/shift/operator/divisor.d.ts +1 -1
- package/out/parser/shift/operator/operator.d.ts +1 -1
- package/out/parser/shift/tokens.d.ts +1 -1
- package/out/parser/string.d.ts +2 -2
- package/out/parser/tupleExpressions.d.ts +6 -8
- package/out/parser/tupleLiteral.d.ts +2 -2
- package/out/precompiled.d.ts +1 -1
- package/out/precompiled.js +16 -2
- package/out/regex.d.ts +1 -0
- package/out/regex.js +2 -0
- package/out/runtime.d.ts +10 -8
- package/out/runtime.js +6 -4
- package/out/runtimeDevelopment.js +70 -52
- package/out/schema.d.ts +1 -0
- package/out/schema.js +15 -0
- package/out/schemaInternal.d.ts +1 -0
- package/out/schemaInternal.js +1401 -0
- package/out/schemaIssueFeatures.d.ts +1 -0
- package/out/schemaRuntime.d.ts +1 -0
- package/out/schemaRuntime.js +7 -0
- package/out/schemaRuntimeLean.d.ts +1 -0
- package/out/schemaRuntimeLean.js +1870 -0
- package/out/schemaRuntimeNone.d.ts +1 -0
- package/out/schemaRuntimeNone.js +1774 -0
- package/out/schemaRuntimeNoneLean.d.ts +1 -0
- package/out/schemaRuntimeNoneLean.js +1767 -0
- package/out/scope.d.ts +3 -4
- package/out/shared/issueFeatures.d.ts +38 -0
- package/out/shared/issueFeatures.js +40 -0
- package/out/standalone/artifact.d.ts +6 -6
- package/out/standalone/baking.d.ts +2 -2
- package/out/standalone/combinators.d.ts +1 -1
- package/out/standalone/compilers.d.ts +1 -1
- package/out/standalone/fallbacks.d.ts +1 -1
- package/out/standalone/keys.d.ts +1 -1
- package/out/standalone/sites.d.ts +3 -3
- package/out/standalone/units.d.ts +1 -1
- package/out/standalone/values.d.ts +1 -1
- package/out/type.d.ts +6 -6
- package/out/util.d.ts +1 -0
- package/out/util.js +137 -0
- package/out/variants/array.d.ts +6 -6
- package/out/variants/base.d.ts +61 -10
- package/out/variants/date.d.ts +5 -5
- package/out/variants/instantiate.d.ts +1 -1
- package/out/variants/number.d.ts +6 -6
- package/out/variants/object.d.ts +25 -12
- package/out/variants/string.d.ts +8 -8
- package/package.json +183 -8
- package/skills/arktype/SKILL.md +93 -93
- package/skills/arktype/references/migrating.md +144 -158
- package/skills/arktype/references/precompile.md +7 -7
- package/out/chunk-4CUA5XIP.js +0 -7
- package/out/chunk-GPNK5353.js +0 -2529
- package/out/chunk-MLKGABMK.js +0 -9
- package/out/chunk-PRTMQCHS.js +0 -3
- package/out/chunk-R5G57XC7.js +0 -7
- package/out/chunk-SWOOCAHN.js +0 -4
- package/out/chunk-TAHPKDNM.js +0 -3
- package/out/chunk-UETB6YE2.js +0 -14
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ArkError,
|
|
2
|
-
import { type Json } from "
|
|
1
|
+
import type { ArkError, Traversal } from "../_internal/schema/index.js";
|
|
2
|
+
import { type Json } from "../_internal/util/index.js";
|
|
3
3
|
import type { ParsedFormData } from "./FormData.ts";
|
|
4
4
|
export declare const parseInteger: (s: string, ctx: Traversal) => number | ArkError;
|
|
5
5
|
export declare const parseNumeric: (s: string) => number;
|
|
@@ -26,7 +26,6 @@ export declare const epochDescriptions: {
|
|
|
26
26
|
max: string;
|
|
27
27
|
};
|
|
28
28
|
export declare const isEpochString: (s: string, ctx: Traversal) => boolean;
|
|
29
|
-
export declare const writeJsonSyntaxErrorMessage: (error: unknown) => string;
|
|
30
29
|
export declare const isJsonString: (s: string, ctx: Traversal) => boolean;
|
|
31
30
|
export declare const parseJson: (s: string, ctx: Traversal) => Json | ArkError;
|
|
32
31
|
export declare const stringifyJson: (data: Json) => string;
|
|
@@ -59,195 +58,9 @@ export declare const emptyCollectionDefaults: {
|
|
|
59
58
|
export declare const isRegexPattern: (s: string, ctx: Traversal) => boolean;
|
|
60
59
|
/** en's phrases of the keywords that write the errors they raise through ctx */
|
|
61
60
|
export declare const raisedErrorPhrases: {
|
|
62
|
-
readonly "string.json":
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
};
|
|
66
|
-
readonly "string.json.parse": {
|
|
67
|
-
readonly noun: "a JSON string";
|
|
68
|
-
readonly message: Locale.MessageWriter<import("@ark/schema").ArkErrorCode>;
|
|
69
|
-
};
|
|
70
|
-
readonly "string.regex": {
|
|
71
|
-
readonly noun: "a regex pattern";
|
|
72
|
-
readonly message: (e: (import("@ark/util").omit<({
|
|
73
|
-
discriminantKind: "domain";
|
|
74
|
-
cases: readonly import("@ark/schema").DomainCase[];
|
|
75
|
-
onKey: boolean;
|
|
76
|
-
absent: boolean;
|
|
77
|
-
data: unknown;
|
|
78
|
-
code: "discriminant";
|
|
79
|
-
description?: string;
|
|
80
|
-
} | {
|
|
81
|
-
discriminantKind: "unit";
|
|
82
|
-
cases: readonly unknown[];
|
|
83
|
-
onKey: boolean;
|
|
84
|
-
absent: boolean;
|
|
85
|
-
data: unknown;
|
|
86
|
-
code: "discriminant";
|
|
87
|
-
description?: string;
|
|
88
|
-
}) & import("@ark/schema").WrittenErrorContext<"discriminant">, "message"> & {
|
|
89
|
-
toString(never: never): string;
|
|
90
|
-
toLocaleString(never: never): string;
|
|
91
|
-
}) | (import("@ark/util").omit<{
|
|
92
|
-
domain: import("@ark/schema").Domain.NonEnumerable;
|
|
93
|
-
numberAllowsNaN?: boolean;
|
|
94
|
-
numberAllowsInfinity?: boolean;
|
|
95
|
-
code: "domain";
|
|
96
|
-
description?: string;
|
|
97
|
-
} & import("@ark/schema").WrittenErrorContext<"domain">, "message"> & {
|
|
98
|
-
toString(never: never): string;
|
|
99
|
-
toLocaleString(never: never): string;
|
|
100
|
-
}) | (import("@ark/util").omit<{
|
|
101
|
-
unit: unknown;
|
|
102
|
-
code: "unit";
|
|
103
|
-
description?: string;
|
|
104
|
-
} & import("@ark/schema").WrittenErrorContext<"unit">, "message"> & {
|
|
105
|
-
toString(never: never): string;
|
|
106
|
-
toLocaleString(never: never): string;
|
|
107
|
-
}) | (import("@ark/util").omit<{
|
|
108
|
-
errors: readonly ArkError[];
|
|
109
|
-
code: "union";
|
|
110
|
-
description?: string;
|
|
111
|
-
} & import("@ark/schema").WrittenErrorContext<"union">, "message"> & {
|
|
112
|
-
toString(never: never): string;
|
|
113
|
-
toLocaleString(never: never): string;
|
|
114
|
-
}) | (import("@ark/util").omit<{
|
|
115
|
-
missingValueDescription: string;
|
|
116
|
-
missing: import("@ark/schema").MissingValue;
|
|
117
|
-
valueMeta: ArkEnv.meta;
|
|
118
|
-
code: "required";
|
|
119
|
-
description?: string;
|
|
120
|
-
} & import("@ark/schema").WrittenErrorContext<"required">, "message"> & {
|
|
121
|
-
toString(never: never): string;
|
|
122
|
-
toLocaleString(never: never): string;
|
|
123
|
-
}) | (import("@ark/util").omit<{
|
|
124
|
-
rule: number;
|
|
125
|
-
code: "exactLength";
|
|
126
|
-
description?: string;
|
|
127
|
-
} & import("@ark/schema").WrittenErrorContext<"exactLength">, "message"> & {
|
|
128
|
-
toString(never: never): string;
|
|
129
|
-
toLocaleString(never: never): string;
|
|
130
|
-
}) | (import("@ark/util").omit<{
|
|
131
|
-
rule: number;
|
|
132
|
-
code: "maxLength";
|
|
133
|
-
description?: string;
|
|
134
|
-
} & import("@ark/schema").WrittenErrorContext<"maxLength">, "message"> & {
|
|
135
|
-
toString(never: never): string;
|
|
136
|
-
toLocaleString(never: never): string;
|
|
137
|
-
}) | (import("@ark/util").omit<{
|
|
138
|
-
rule: number;
|
|
139
|
-
code: "minLength";
|
|
140
|
-
description?: string;
|
|
141
|
-
} & import("@ark/schema").WrittenErrorContext<"minLength">, "message"> & {
|
|
142
|
-
toString(never: never): string;
|
|
143
|
-
toLocaleString(never: never): string;
|
|
144
|
-
}) | (import("@ark/util").omit<{
|
|
145
|
-
rule: Date;
|
|
146
|
-
code: "after";
|
|
147
|
-
description?: string;
|
|
148
|
-
} & import("@ark/schema").WrittenErrorContext<"after">, "message"> & {
|
|
149
|
-
toString(never: never): string;
|
|
150
|
-
toLocaleString(never: never): string;
|
|
151
|
-
}) | (import("@ark/util").omit<{
|
|
152
|
-
rule: Date;
|
|
153
|
-
code: "before";
|
|
154
|
-
description?: string;
|
|
155
|
-
} & import("@ark/schema").WrittenErrorContext<"before">, "message"> & {
|
|
156
|
-
toString(never: never): string;
|
|
157
|
-
toLocaleString(never: never): string;
|
|
158
|
-
}) | (import("@ark/util").omit<{
|
|
159
|
-
rule: number;
|
|
160
|
-
exclusive?: true;
|
|
161
|
-
code: "max";
|
|
162
|
-
description?: string;
|
|
163
|
-
} & import("@ark/schema").WrittenErrorContext<"max">, "message"> & {
|
|
164
|
-
toString(never: never): string;
|
|
165
|
-
toLocaleString(never: never): string;
|
|
166
|
-
}) | (import("@ark/util").omit<{
|
|
167
|
-
rule: number;
|
|
168
|
-
exclusive?: true;
|
|
169
|
-
code: "min";
|
|
170
|
-
description?: string;
|
|
171
|
-
} & import("@ark/schema").WrittenErrorContext<"min">, "message"> & {
|
|
172
|
-
toString(never: never): string;
|
|
173
|
-
toLocaleString(never: never): string;
|
|
174
|
-
}) | (import("@ark/util").omit<{
|
|
175
|
-
rule: import("@ark/schema").LimitValue;
|
|
176
|
-
code: "notEqual";
|
|
177
|
-
description?: string;
|
|
178
|
-
} & import("@ark/schema").WrittenErrorContext<"notEqual">, "message"> & {
|
|
179
|
-
toString(never: never): string;
|
|
180
|
-
toLocaleString(never: never): string;
|
|
181
|
-
}) | (import("@ark/util").omit<{
|
|
182
|
-
rule: number;
|
|
183
|
-
code: "notEqualLength";
|
|
184
|
-
description?: string;
|
|
185
|
-
} & import("@ark/schema").WrittenErrorContext<"notEqualLength">, "message"> & {
|
|
186
|
-
toString(never: never): string;
|
|
187
|
-
toLocaleString(never: never): string;
|
|
188
|
-
}) | (import("@ark/util").omit<{
|
|
189
|
-
code: "proto";
|
|
190
|
-
description?: string;
|
|
191
|
-
proto: import("@ark/util").Constructor;
|
|
192
|
-
dateAllowsInvalid?: boolean;
|
|
193
|
-
} & import("@ark/schema").WrittenErrorContext<"proto">, "message"> & {
|
|
194
|
-
toString(never: never): string;
|
|
195
|
-
toLocaleString(never: never): string;
|
|
196
|
-
}) | (import("@ark/util").omit<{
|
|
197
|
-
code: "intersection";
|
|
198
|
-
description?: string;
|
|
199
|
-
domain?: import("@ark/schema").Domain.Node;
|
|
200
|
-
proto?: import("@ark/schema").Proto.Node;
|
|
201
|
-
structure?: import("@ark/schema").Structure.Node;
|
|
202
|
-
predicate?: import("@ark/util").array<import("@ark/schema").PredicateNode>;
|
|
203
|
-
errors: readonly ArkError[];
|
|
204
|
-
after?: import("@ark/schema").AfterNode;
|
|
205
|
-
before?: import("@ark/schema").BeforeNode;
|
|
206
|
-
divisor?: import("@ark/schema").DivisorNode;
|
|
207
|
-
exactLength?: import("@ark/schema").ExactLengthNode;
|
|
208
|
-
max?: import("@ark/schema").MaxNode;
|
|
209
|
-
maxLength?: import("@ark/schema").MaxLengthNode;
|
|
210
|
-
min?: import("@ark/schema").MinNode;
|
|
211
|
-
minLength?: import("@ark/schema").MinLengthNode;
|
|
212
|
-
notEqual?: readonly import("@ark/schema").NotEqualNode[];
|
|
213
|
-
notEqualLength?: readonly import("@ark/schema").NotEqualLengthNode[];
|
|
214
|
-
pattern?: readonly import("@ark/schema").PatternNode[];
|
|
215
|
-
} & import("@ark/schema").WrittenErrorContext<"intersection">, "message"> & {
|
|
216
|
-
toString(never: never): string;
|
|
217
|
-
toLocaleString(never: never): string;
|
|
218
|
-
}) | (import("@ark/util").omit<{
|
|
219
|
-
code: "predicate";
|
|
220
|
-
description?: string;
|
|
221
|
-
predicate?: import("@ark/schema").Predicate;
|
|
222
|
-
morph?: import("@ark/schema").Morph;
|
|
223
|
-
cause?: unknown;
|
|
224
|
-
} & import("@ark/schema").WrittenErrorContext<"predicate">, "message"> & {
|
|
225
|
-
toString(never: never): string;
|
|
226
|
-
toLocaleString(never: never): string;
|
|
227
|
-
}) | (import("@ark/util").omit<{
|
|
228
|
-
code: "divisor";
|
|
229
|
-
description?: string;
|
|
230
|
-
rule: number;
|
|
231
|
-
} & import("@ark/schema").WrittenErrorContext<"divisor">, "message"> & {
|
|
232
|
-
toString(never: never): string;
|
|
233
|
-
toLocaleString(never: never): string;
|
|
234
|
-
}) | (import("@ark/util").omit<{
|
|
235
|
-
code: "pattern";
|
|
236
|
-
description?: string;
|
|
237
|
-
rule: string;
|
|
238
|
-
flags?: string;
|
|
239
|
-
} & import("@ark/schema").WrittenErrorContext<"pattern">, "message"> & {
|
|
240
|
-
toString(never: never): string;
|
|
241
|
-
toLocaleString(never: never): string;
|
|
242
|
-
}) | (import("@ark/util").omit<{
|
|
243
|
-
data: unknown;
|
|
244
|
-
code: "undeclared";
|
|
245
|
-
description?: string;
|
|
246
|
-
} & import("@ark/schema").WrittenErrorContext<"undeclared">, "message"> & {
|
|
247
|
-
toString(never: never): string;
|
|
248
|
-
toLocaleString(never: never): string;
|
|
249
|
-
}), locale: Locale<string>) => string;
|
|
250
|
-
};
|
|
61
|
+
readonly "string.json": "a JSON string";
|
|
62
|
+
readonly "string.json.parse": "a JSON string";
|
|
63
|
+
readonly "string.regex": "a regex pattern";
|
|
251
64
|
};
|
|
252
65
|
export declare const isParsableUrl: (s: string) => boolean;
|
|
253
66
|
export declare const parseUrl: (s: string, ctx: Traversal) => URL | ArkError;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type ArkErrors, type arkKind, type flatResolutionsOf } from "
|
|
2
|
-
import { type Brand, type inferred } from "
|
|
1
|
+
import { type ArkErrors, type arkKind, type flatResolutionsOf } from "../_internal/schema/index.js";
|
|
2
|
+
import { type Brand, type inferred } from "../_internal/util/index.js";
|
|
3
3
|
import type { distill, InferredMorph, Out, To } from "../attributes.ts";
|
|
4
4
|
import type { DeclarationParser } from "../declare.ts";
|
|
5
5
|
import type { FnParser } from "../fn.ts";
|
|
@@ -47,7 +47,7 @@ export declare namespace type {
|
|
|
47
47
|
type errors = ArkErrors;
|
|
48
48
|
type validate<def, $ = {}, args = bindThis<def>> = validateDefinitionArgument<def, $, args>;
|
|
49
49
|
type instantiate<def, $ = {}, args = bindThis<def>> = instantiateDefinition<def, $, args>;
|
|
50
|
-
type infer<def, $ = {}, args = bindThis<def>> = inferDefinition<def, $, args
|
|
50
|
+
type infer<def, $ = {}, args = bindThis<def>> = distill.Out<inferDefinition<def, $, args>>;
|
|
51
51
|
namespace infer {
|
|
52
52
|
type In<def, $ = {}, args = {}> = distill.In<inferDefinition<def, $, args>>;
|
|
53
53
|
type Out<def, $ = {}, args = {}> = distill.Out<inferDefinition<def, $, args>>;
|
package/out/keywords/number.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Module, Submodule } from "../module.ts";
|
|
2
|
-
export declare const epoch: () => import("
|
|
3
|
-
export declare const integer: () => import("
|
|
2
|
+
export declare const epoch: () => import("../_internal/schema/index.js").nodeOfKind<"intersection" | import("../_internal/schema/index.js").Intersection.BasisKind>;
|
|
3
|
+
export declare const integer: () => import("../_internal/schema/index.js").nodeOfKind<"intersection" | import("../_internal/schema/index.js").Intersection.BasisKind>;
|
|
4
4
|
export declare const number: number.module;
|
|
5
5
|
export declare namespace number {
|
|
6
6
|
type module = Module<submodule>;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { type Locale } from "@ark/schema";
|
|
2
1
|
/** the English phrase of each builtin keyword whose nodes carry one */
|
|
3
2
|
export declare const keywordPhrases: {
|
|
4
3
|
readonly "FormData.parsed": "an object representing parsed form data";
|
|
5
4
|
readonly "number.epoch": {
|
|
6
5
|
readonly noun: "an integer representing a safe Unix timestamp";
|
|
7
|
-
readonly expected: (e: import("
|
|
6
|
+
readonly expected: (e: import("../_internal/schema/index.js").ExpectedContext | import("../_internal/schema/index.js").MissingBasis) => string;
|
|
8
7
|
};
|
|
9
8
|
readonly "object.json": "a plain object or array";
|
|
10
9
|
readonly "string.alpha": "only letters";
|
|
@@ -26,14 +25,8 @@ export declare const keywordPhrases: {
|
|
|
26
25
|
readonly "string.ip": "an IP address";
|
|
27
26
|
readonly "string.ip.v4": "an IPv4 address";
|
|
28
27
|
readonly "string.ip.v6": "an IPv6 address";
|
|
29
|
-
readonly "string.json":
|
|
30
|
-
|
|
31
|
-
readonly message: Locale.MessageWriter<import("@ark/schema").ArkErrorCode>;
|
|
32
|
-
};
|
|
33
|
-
readonly "string.json.parse": {
|
|
34
|
-
readonly noun: "a JSON string";
|
|
35
|
-
readonly message: Locale.MessageWriter<import("@ark/schema").ArkErrorCode>;
|
|
36
|
-
};
|
|
28
|
+
readonly "string.json": "a JSON string";
|
|
29
|
+
readonly "string.json.parse": "a JSON string";
|
|
37
30
|
readonly "string.lower.preformatted": "lowercase";
|
|
38
31
|
readonly "string.normalize.NFC.preformatted": "NFC-normalized unicode";
|
|
39
32
|
readonly "string.normalize.NFD.preformatted": "NFD-normalized unicode";
|
|
@@ -41,187 +34,7 @@ export declare const keywordPhrases: {
|
|
|
41
34
|
readonly "string.normalize.NFKD.preformatted": "NFKD-normalized unicode";
|
|
42
35
|
readonly "string.numeric": "a well-formed numeric string";
|
|
43
36
|
readonly "string.numeric.parse": "finite";
|
|
44
|
-
readonly "string.regex":
|
|
45
|
-
readonly noun: "a regex pattern";
|
|
46
|
-
readonly message: (e: (import("@ark/util").omit<({
|
|
47
|
-
discriminantKind: "domain";
|
|
48
|
-
cases: readonly import("@ark/schema").DomainCase[];
|
|
49
|
-
onKey: boolean;
|
|
50
|
-
absent: boolean;
|
|
51
|
-
data: unknown;
|
|
52
|
-
code: "discriminant";
|
|
53
|
-
description?: string;
|
|
54
|
-
} | {
|
|
55
|
-
discriminantKind: "unit";
|
|
56
|
-
cases: readonly unknown[];
|
|
57
|
-
onKey: boolean;
|
|
58
|
-
absent: boolean;
|
|
59
|
-
data: unknown;
|
|
60
|
-
code: "discriminant";
|
|
61
|
-
description?: string;
|
|
62
|
-
}) & import("@ark/schema").WrittenErrorContext<"discriminant">, "message"> & {
|
|
63
|
-
toString(never: never): string;
|
|
64
|
-
toLocaleString(never: never): string;
|
|
65
|
-
}) | (import("@ark/util").omit<{
|
|
66
|
-
domain: import("@ark/schema").Domain.NonEnumerable;
|
|
67
|
-
numberAllowsNaN?: boolean;
|
|
68
|
-
numberAllowsInfinity?: boolean;
|
|
69
|
-
code: "domain";
|
|
70
|
-
description?: string;
|
|
71
|
-
} & import("@ark/schema").WrittenErrorContext<"domain">, "message"> & {
|
|
72
|
-
toString(never: never): string;
|
|
73
|
-
toLocaleString(never: never): string;
|
|
74
|
-
}) | (import("@ark/util").omit<{
|
|
75
|
-
unit: unknown;
|
|
76
|
-
code: "unit";
|
|
77
|
-
description?: string;
|
|
78
|
-
} & import("@ark/schema").WrittenErrorContext<"unit">, "message"> & {
|
|
79
|
-
toString(never: never): string;
|
|
80
|
-
toLocaleString(never: never): string;
|
|
81
|
-
}) | (import("@ark/util").omit<{
|
|
82
|
-
errors: readonly import("@ark/schema").ArkError[];
|
|
83
|
-
code: "union";
|
|
84
|
-
description?: string;
|
|
85
|
-
} & import("@ark/schema").WrittenErrorContext<"union">, "message"> & {
|
|
86
|
-
toString(never: never): string;
|
|
87
|
-
toLocaleString(never: never): string;
|
|
88
|
-
}) | (import("@ark/util").omit<{
|
|
89
|
-
missingValueDescription: string;
|
|
90
|
-
missing: import("@ark/schema").MissingValue;
|
|
91
|
-
valueMeta: ArkEnv.meta;
|
|
92
|
-
code: "required";
|
|
93
|
-
description?: string;
|
|
94
|
-
} & import("@ark/schema").WrittenErrorContext<"required">, "message"> & {
|
|
95
|
-
toString(never: never): string;
|
|
96
|
-
toLocaleString(never: never): string;
|
|
97
|
-
}) | (import("@ark/util").omit<{
|
|
98
|
-
rule: number;
|
|
99
|
-
code: "exactLength";
|
|
100
|
-
description?: string;
|
|
101
|
-
} & import("@ark/schema").WrittenErrorContext<"exactLength">, "message"> & {
|
|
102
|
-
toString(never: never): string;
|
|
103
|
-
toLocaleString(never: never): string;
|
|
104
|
-
}) | (import("@ark/util").omit<{
|
|
105
|
-
rule: number;
|
|
106
|
-
code: "maxLength";
|
|
107
|
-
description?: string;
|
|
108
|
-
} & import("@ark/schema").WrittenErrorContext<"maxLength">, "message"> & {
|
|
109
|
-
toString(never: never): string;
|
|
110
|
-
toLocaleString(never: never): string;
|
|
111
|
-
}) | (import("@ark/util").omit<{
|
|
112
|
-
rule: number;
|
|
113
|
-
code: "minLength";
|
|
114
|
-
description?: string;
|
|
115
|
-
} & import("@ark/schema").WrittenErrorContext<"minLength">, "message"> & {
|
|
116
|
-
toString(never: never): string;
|
|
117
|
-
toLocaleString(never: never): string;
|
|
118
|
-
}) | (import("@ark/util").omit<{
|
|
119
|
-
rule: Date;
|
|
120
|
-
code: "after";
|
|
121
|
-
description?: string;
|
|
122
|
-
} & import("@ark/schema").WrittenErrorContext<"after">, "message"> & {
|
|
123
|
-
toString(never: never): string;
|
|
124
|
-
toLocaleString(never: never): string;
|
|
125
|
-
}) | (import("@ark/util").omit<{
|
|
126
|
-
rule: Date;
|
|
127
|
-
code: "before";
|
|
128
|
-
description?: string;
|
|
129
|
-
} & import("@ark/schema").WrittenErrorContext<"before">, "message"> & {
|
|
130
|
-
toString(never: never): string;
|
|
131
|
-
toLocaleString(never: never): string;
|
|
132
|
-
}) | (import("@ark/util").omit<{
|
|
133
|
-
rule: number;
|
|
134
|
-
exclusive?: true;
|
|
135
|
-
code: "max";
|
|
136
|
-
description?: string;
|
|
137
|
-
} & import("@ark/schema").WrittenErrorContext<"max">, "message"> & {
|
|
138
|
-
toString(never: never): string;
|
|
139
|
-
toLocaleString(never: never): string;
|
|
140
|
-
}) | (import("@ark/util").omit<{
|
|
141
|
-
rule: number;
|
|
142
|
-
exclusive?: true;
|
|
143
|
-
code: "min";
|
|
144
|
-
description?: string;
|
|
145
|
-
} & import("@ark/schema").WrittenErrorContext<"min">, "message"> & {
|
|
146
|
-
toString(never: never): string;
|
|
147
|
-
toLocaleString(never: never): string;
|
|
148
|
-
}) | (import("@ark/util").omit<{
|
|
149
|
-
rule: import("@ark/schema").LimitValue;
|
|
150
|
-
code: "notEqual";
|
|
151
|
-
description?: string;
|
|
152
|
-
} & import("@ark/schema").WrittenErrorContext<"notEqual">, "message"> & {
|
|
153
|
-
toString(never: never): string;
|
|
154
|
-
toLocaleString(never: never): string;
|
|
155
|
-
}) | (import("@ark/util").omit<{
|
|
156
|
-
rule: number;
|
|
157
|
-
code: "notEqualLength";
|
|
158
|
-
description?: string;
|
|
159
|
-
} & import("@ark/schema").WrittenErrorContext<"notEqualLength">, "message"> & {
|
|
160
|
-
toString(never: never): string;
|
|
161
|
-
toLocaleString(never: never): string;
|
|
162
|
-
}) | (import("@ark/util").omit<{
|
|
163
|
-
code: "proto";
|
|
164
|
-
description?: string;
|
|
165
|
-
proto: import("@ark/util").Constructor;
|
|
166
|
-
dateAllowsInvalid?: boolean;
|
|
167
|
-
} & import("@ark/schema").WrittenErrorContext<"proto">, "message"> & {
|
|
168
|
-
toString(never: never): string;
|
|
169
|
-
toLocaleString(never: never): string;
|
|
170
|
-
}) | (import("@ark/util").omit<{
|
|
171
|
-
code: "intersection";
|
|
172
|
-
description?: string;
|
|
173
|
-
domain?: import("@ark/schema").Domain.Node;
|
|
174
|
-
proto?: import("@ark/schema").Proto.Node;
|
|
175
|
-
structure?: import("@ark/schema").Structure.Node;
|
|
176
|
-
predicate?: import("@ark/util").array<import("@ark/schema").PredicateNode>;
|
|
177
|
-
errors: readonly import("@ark/schema").ArkError[];
|
|
178
|
-
after?: import("@ark/schema").AfterNode;
|
|
179
|
-
before?: import("@ark/schema").BeforeNode;
|
|
180
|
-
divisor?: import("@ark/schema").DivisorNode;
|
|
181
|
-
exactLength?: import("@ark/schema").ExactLengthNode;
|
|
182
|
-
max?: import("@ark/schema").MaxNode;
|
|
183
|
-
maxLength?: import("@ark/schema").MaxLengthNode;
|
|
184
|
-
min?: import("@ark/schema").MinNode;
|
|
185
|
-
minLength?: import("@ark/schema").MinLengthNode;
|
|
186
|
-
notEqual?: readonly import("@ark/schema").NotEqualNode[];
|
|
187
|
-
notEqualLength?: readonly import("@ark/schema").NotEqualLengthNode[];
|
|
188
|
-
pattern?: readonly import("@ark/schema").PatternNode[];
|
|
189
|
-
} & import("@ark/schema").WrittenErrorContext<"intersection">, "message"> & {
|
|
190
|
-
toString(never: never): string;
|
|
191
|
-
toLocaleString(never: never): string;
|
|
192
|
-
}) | (import("@ark/util").omit<{
|
|
193
|
-
code: "predicate";
|
|
194
|
-
description?: string;
|
|
195
|
-
predicate?: import("@ark/schema").Predicate;
|
|
196
|
-
morph?: import("@ark/schema").Morph;
|
|
197
|
-
cause?: unknown;
|
|
198
|
-
} & import("@ark/schema").WrittenErrorContext<"predicate">, "message"> & {
|
|
199
|
-
toString(never: never): string;
|
|
200
|
-
toLocaleString(never: never): string;
|
|
201
|
-
}) | (import("@ark/util").omit<{
|
|
202
|
-
code: "divisor";
|
|
203
|
-
description?: string;
|
|
204
|
-
rule: number;
|
|
205
|
-
} & import("@ark/schema").WrittenErrorContext<"divisor">, "message"> & {
|
|
206
|
-
toString(never: never): string;
|
|
207
|
-
toLocaleString(never: never): string;
|
|
208
|
-
}) | (import("@ark/util").omit<{
|
|
209
|
-
code: "pattern";
|
|
210
|
-
description?: string;
|
|
211
|
-
rule: string;
|
|
212
|
-
flags?: string;
|
|
213
|
-
} & import("@ark/schema").WrittenErrorContext<"pattern">, "message"> & {
|
|
214
|
-
toString(never: never): string;
|
|
215
|
-
toLocaleString(never: never): string;
|
|
216
|
-
}) | (import("@ark/util").omit<{
|
|
217
|
-
data: unknown;
|
|
218
|
-
code: "undeclared";
|
|
219
|
-
description?: string;
|
|
220
|
-
} & import("@ark/schema").WrittenErrorContext<"undeclared">, "message"> & {
|
|
221
|
-
toString(never: never): string;
|
|
222
|
-
toLocaleString(never: never): string;
|
|
223
|
-
}), locale: Locale<string>) => string;
|
|
224
|
-
};
|
|
37
|
+
readonly "string.regex": "a regex pattern";
|
|
225
38
|
readonly "string.semver": "a semantic version (see https://semver.org/)";
|
|
226
39
|
readonly "string.trim.preformatted": "trimmed";
|
|
227
40
|
readonly "string.upper.preformatted": "uppercase";
|
package/out/keywords/string.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type Intersection, type JsonSchema } from "
|
|
2
|
-
import { iso8601Matcher, type Json } from "
|
|
1
|
+
import { type Intersection, type JsonSchema } from "../_internal/schema/index.js";
|
|
2
|
+
import { iso8601Matcher, type Json } from "../_internal/util/index.js";
|
|
3
3
|
import type { To } from "../attributes.ts";
|
|
4
4
|
import type { Module, Submodule } from "../module.ts";
|
|
5
5
|
import { type KeywordPhraseAlias } from "./phrases.ts";
|
|
@@ -32,7 +32,7 @@ export declare namespace capitalize {
|
|
|
32
32
|
preformatted: string;
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
|
-
export declare const creditCard: () => import("
|
|
35
|
+
export declare const creditCard: () => import("../_internal/schema/index.js").nodeOfKind<"intersection" | Intersection.BasisKind>;
|
|
36
36
|
type DayDelimiter = "." | "/" | "-";
|
|
37
37
|
type DayPart = DayPatterns[PartKey];
|
|
38
38
|
type PartKey = keyof DayPatterns;
|
package/out/keywords/ts.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type BaseRoot } from "
|
|
2
|
-
import { Hkt, type
|
|
1
|
+
import { type BaseRoot } from "../_internal/schema/index.js";
|
|
2
|
+
import { Hkt, type JsonStructure, type Key, type omit, type pick, type show, type Thunk } from "../_internal/util/index.js";
|
|
3
3
|
import type { required, To } from "../attributes.ts";
|
|
4
4
|
import type { Module, Submodule } from "../module.ts";
|
|
5
5
|
export declare const tsKeywordDefinitions: Record<keyof arkTsKeywords.$, Thunk<BaseRoot>>;
|
|
@@ -34,8 +34,8 @@ export declare const json: Module<json.$>;
|
|
|
34
34
|
export declare namespace json {
|
|
35
35
|
type submodule = Submodule<$>;
|
|
36
36
|
type $ = {
|
|
37
|
-
root:
|
|
38
|
-
stringify: (In:
|
|
37
|
+
root: JsonStructure;
|
|
38
|
+
stringify: (In: JsonStructure) => To<string>;
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
41
|
export declare const object: Module<object.$>;
|
|
@@ -51,45 +51,45 @@ export declare class RecordHkt extends Hkt<[Key, unknown]> {
|
|
|
51
51
|
private record;
|
|
52
52
|
description: string;
|
|
53
53
|
}
|
|
54
|
-
declare const Record: () => import("
|
|
54
|
+
declare const Record: () => import("../_internal/schema/index.js").GenericRoot<readonly [["K", Key], ["V", unknown]], RecordHkt>;
|
|
55
55
|
declare class PickHkt extends Hkt<[object, Key]> {
|
|
56
56
|
body: pick<this[0], this[1] & keyof this[0]>;
|
|
57
57
|
description: string;
|
|
58
58
|
}
|
|
59
|
-
declare const Pick: () => import("
|
|
59
|
+
declare const Pick: () => import("../_internal/schema/index.js").GenericRoot<readonly [["T", object], ["K", Key]], PickHkt>;
|
|
60
60
|
declare class OmitHkt extends Hkt<[object, Key]> {
|
|
61
61
|
body: omit<this[0], this[1] & keyof this[0]>;
|
|
62
62
|
description: string;
|
|
63
63
|
}
|
|
64
|
-
declare const Omit: () => import("
|
|
64
|
+
declare const Omit: () => import("../_internal/schema/index.js").GenericRoot<readonly [["T", object], ["K", Key]], OmitHkt>;
|
|
65
65
|
declare class PartialHkt extends Hkt<[object]> {
|
|
66
66
|
body: show<Partial<this[0]>>;
|
|
67
67
|
description: string;
|
|
68
68
|
}
|
|
69
|
-
declare const Partial: () => import("
|
|
69
|
+
declare const Partial: () => import("../_internal/schema/index.js").GenericRoot<readonly [["T", object]], PartialHkt>;
|
|
70
70
|
declare class RequiredHkt extends Hkt<[object]> {
|
|
71
71
|
body: show<required<this[0]>>;
|
|
72
72
|
description: string;
|
|
73
73
|
}
|
|
74
|
-
declare const Required: () => import("
|
|
74
|
+
declare const Required: () => import("../_internal/schema/index.js").GenericRoot<readonly [["T", object]], RequiredHkt>;
|
|
75
75
|
declare class ExcludeHkt extends Hkt<[unknown, unknown]> {
|
|
76
76
|
body: Exclude<this[0], this[1]>;
|
|
77
77
|
description: string;
|
|
78
78
|
}
|
|
79
|
-
declare const Exclude: () => import("
|
|
79
|
+
declare const Exclude: () => import("../_internal/schema/index.js").GenericRoot<readonly [["T", unknown], ["U", unknown]], ExcludeHkt>;
|
|
80
80
|
declare class ExtractHkt extends Hkt<[unknown, unknown]> {
|
|
81
81
|
body: Extract<this[0], this[1]>;
|
|
82
82
|
description: string;
|
|
83
83
|
}
|
|
84
|
-
declare const Extract: () => import("
|
|
84
|
+
declare const Extract: () => import("../_internal/schema/index.js").GenericRoot<readonly [["T", unknown], ["U", unknown]], ExtractHkt>;
|
|
85
85
|
export declare const tsGenericDefinitions: {
|
|
86
|
-
Exclude: () => import("
|
|
87
|
-
Extract: () => import("
|
|
88
|
-
Omit: () => import("
|
|
89
|
-
Partial: () => import("
|
|
90
|
-
Pick: () => import("
|
|
91
|
-
Record: () => import("
|
|
92
|
-
Required: () => import("
|
|
86
|
+
Exclude: () => import("../_internal/schema/index.js").GenericRoot<readonly [["T", unknown], ["U", unknown]], ExcludeHkt>;
|
|
87
|
+
Extract: () => import("../_internal/schema/index.js").GenericRoot<readonly [["T", unknown], ["U", unknown]], ExtractHkt>;
|
|
88
|
+
Omit: () => import("../_internal/schema/index.js").GenericRoot<readonly [["T", object], ["K", Key]], OmitHkt>;
|
|
89
|
+
Partial: () => import("../_internal/schema/index.js").GenericRoot<readonly [["T", object]], PartialHkt>;
|
|
90
|
+
Pick: () => import("../_internal/schema/index.js").GenericRoot<readonly [["T", object], ["K", Key]], PickHkt>;
|
|
91
|
+
Record: () => import("../_internal/schema/index.js").GenericRoot<readonly [["K", Key], ["V", unknown]], RecordHkt>;
|
|
92
|
+
Required: () => import("../_internal/schema/index.js").GenericRoot<readonly [["T", object]], RequiredHkt>;
|
|
93
93
|
};
|
|
94
94
|
export declare const arkTsGenerics: arkTsGenerics.module;
|
|
95
95
|
export declare namespace arkTsGenerics {
|
package/out/keywords/ts.js
CHANGED
|
@@ -1,4 +1,19 @@
|
|
|
1
|
-
export { RecordHkt, arkTsGenerics, arkTsKeywords, json, object, tsGenericDefinitions, tsKeywordDefinitions, unknown, writeUnresolvedFilterMessage } from "../chunk-
|
|
2
|
-
import "../chunk-
|
|
3
|
-
import "../chunk-
|
|
4
|
-
import "../chunk-
|
|
1
|
+
export { RecordHkt, arkTsGenerics, arkTsKeywords, json, object, tsGenericDefinitions, tsKeywordDefinitions, unknown, writeUnresolvedFilterMessage } from "../chunk-C3B4IFQL.js";
|
|
2
|
+
import "../chunk-4FTHWK63.js";
|
|
3
|
+
import "../chunk-BDJVONP7.js";
|
|
4
|
+
import "../chunk-4HREHNIV.js";
|
|
5
|
+
import "../chunk-KXOC3JEX.js";
|
|
6
|
+
import "../chunk-CWSF57VM.js";
|
|
7
|
+
import "../chunk-UJJGG4VQ.js";
|
|
8
|
+
import "../chunk-US6BWOGJ.js";
|
|
9
|
+
import "../chunk-KXOSUYRA.js";
|
|
10
|
+
import "../chunk-W2XOI5DY.js";
|
|
11
|
+
import "../chunk-TACLEIDM.js";
|
|
12
|
+
import "../chunk-K7SLP5D2.js";
|
|
13
|
+
import "../chunk-VYMXHSFR.js";
|
|
14
|
+
import "../chunk-PDLTEX6Z.js";
|
|
15
|
+
import "../chunk-3KBOPH3J.js";
|
|
16
|
+
import "../chunk-ZRYEHGSG.js";
|
|
17
|
+
import "../chunk-3SH2BQ4T.js";
|
|
18
|
+
import "../chunk-3HZC67MT.js";
|
|
19
|
+
import "../chunk-I2KLQ2HA.js";
|
package/out/locale.d.ts
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
import type { ArkErrorCode, Locale as BaseLocale } from "
|
|
1
|
+
import type { ArkErrorCode, Locale as BaseLocale } from "./_internal/schema/index.js";
|
|
2
2
|
import type { KeywordPhraseAlias } from "./keywords/phrases.ts";
|
|
3
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* A locale you write: its tag and any part you replace, each part you leave
|
|
5
|
+
* out written as en writes it, with a phrase for any builtin keyword
|
|
6
|
+
*/
|
|
4
7
|
export type Locale = BaseLocale<KeywordPhraseAlias>;
|
|
5
8
|
export declare namespace Locale {
|
|
6
9
|
type Info = BaseLocale.Info;
|
|
7
10
|
type Data = BaseLocale.Data<KeywordPhraseAlias>;
|
|
8
11
|
type Writers = BaseLocale.Writers;
|
|
12
|
+
type Resolved = BaseLocale.Resolved<KeywordPhraseAlias>;
|
|
9
13
|
type CodeWriters<code extends ArkErrorCode = ArkErrorCode> = BaseLocale.CodeWriters<code>;
|
|
10
14
|
type ExpectedContext<code extends ArkErrorCode = ArkErrorCode> = BaseLocale.ExpectedContext<code>;
|
|
11
15
|
type ExpectedWriter<code extends ArkErrorCode = ArkErrorCode> = BaseLocale.ExpectedWriter<code>;
|
package/out/locales/de.js
CHANGED
|
@@ -1,2 +1,9 @@
|
|
|
1
|
-
export { de } from "../chunk-
|
|
2
|
-
import "../chunk-
|
|
1
|
+
export { de } from "../chunk-P5W67FQH.js";
|
|
2
|
+
import "../chunk-XLG66ZDF.js";
|
|
3
|
+
import "../chunk-NU73GNCX.js";
|
|
4
|
+
import "../chunk-PDLTEX6Z.js";
|
|
5
|
+
import "../chunk-3KBOPH3J.js";
|
|
6
|
+
import "../chunk-ZRYEHGSG.js";
|
|
7
|
+
import "../chunk-3SH2BQ4T.js";
|
|
8
|
+
import "../chunk-3HZC67MT.js";
|
|
9
|
+
import "../chunk-I2KLQ2HA.js";
|
package/out/locales/en.js
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
|
-
export { en } from "../chunk-
|
|
2
|
-
import "../chunk-
|
|
3
|
-
import "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
1
|
+
export { en } from "../chunk-7TALAWYX.js";
|
|
2
|
+
import "../chunk-C2JOL5M2.js";
|
|
3
|
+
import "../chunk-22RQSVV3.js";
|
|
4
|
+
import "../chunk-XLG66ZDF.js";
|
|
5
|
+
import "../chunk-NU73GNCX.js";
|
|
6
|
+
import "../chunk-4HREHNIV.js";
|
|
7
|
+
import "../chunk-KXOC3JEX.js";
|
|
8
|
+
import "../chunk-CWSF57VM.js";
|
|
9
|
+
import "../chunk-UJJGG4VQ.js";
|
|
10
|
+
import "../chunk-US6BWOGJ.js";
|
|
11
|
+
import "../chunk-KXOSUYRA.js";
|
|
12
|
+
import "../chunk-W2XOI5DY.js";
|
|
13
|
+
import "../chunk-TACLEIDM.js";
|
|
14
|
+
import "../chunk-K7SLP5D2.js";
|
|
15
|
+
import "../chunk-VYMXHSFR.js";
|
|
16
|
+
import "../chunk-PDLTEX6Z.js";
|
|
17
|
+
import "../chunk-3KBOPH3J.js";
|
|
18
|
+
import "../chunk-ZRYEHGSG.js";
|
|
19
|
+
import "../chunk-3SH2BQ4T.js";
|
|
20
|
+
import "../chunk-3HZC67MT.js";
|
|
21
|
+
import "../chunk-I2KLQ2HA.js";
|