arktype 3.0.0-beta.1 → 3.0.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +48 -144
- package/out/_internal/regex/charset.d.ts +24 -0
- package/out/_internal/regex/escape.d.ts +29 -0
- package/out/_internal/regex/execArray.d.ts +24 -0
- package/out/_internal/regex/group.d.ts +34 -0
- package/out/_internal/regex/index.d.ts +2 -0
- package/out/_internal/regex/internal.d.ts +9 -0
- package/out/_internal/regex/parse.d.ts +10 -0
- package/out/_internal/regex/quantify.d.ts +59 -0
- package/out/_internal/regex/regex.d.ts +38 -0
- package/out/_internal/regex/state.d.ts +383 -0
- package/out/_internal/schema/codecs.d.ts +2 -0
- package/out/_internal/schema/config.d.ts +103 -0
- package/out/_internal/schema/constraint.d.ts +78 -0
- package/out/_internal/schema/errors.d.ts +1 -0
- package/out/_internal/schema/generic.d.ts +85 -0
- package/out/_internal/schema/i18n.d.ts +3 -0
- package/out/_internal/schema/index.d.ts +54 -0
- package/out/_internal/schema/internal.d.ts +15 -0
- package/out/_internal/schema/intrinsic.d.ts +28 -0
- package/out/_internal/schema/kinds.d.ts +76 -0
- package/out/_internal/schema/module.d.ts +23 -0
- package/out/_internal/schema/mutatesInput.d.ts +2 -0
- package/out/_internal/schema/node.d.ts +349 -0
- package/out/_internal/schema/parse.d.ts +77 -0
- package/out/_internal/schema/parseSchema.d.ts +116 -0
- package/out/_internal/schema/predicate.d.ts +46 -0
- package/out/_internal/schema/refinements/after.d.ts +32 -0
- package/out/_internal/schema/refinements/before.d.ts +32 -0
- package/out/_internal/schema/refinements/divisor.d.ts +41 -0
- package/out/_internal/schema/refinements/exactLength.d.ts +43 -0
- package/out/_internal/schema/refinements/kinds.d.ts +40 -0
- package/out/_internal/schema/refinements/max.d.ts +33 -0
- package/out/_internal/schema/refinements/maxLength.d.ts +32 -0
- package/out/_internal/schema/refinements/min.d.ts +33 -0
- package/out/_internal/schema/refinements/minLength.d.ts +32 -0
- package/out/_internal/schema/refinements/notEqual.d.ts +38 -0
- package/out/_internal/schema/refinements/notEqualLength.d.ts +38 -0
- package/out/_internal/schema/refinements/pattern.d.ts +43 -0
- package/out/_internal/schema/refinements/range.d.ts +101 -0
- package/out/_internal/schema/roots/alias.d.ts +49 -0
- package/out/_internal/schema/roots/basis.d.ts +12 -0
- package/out/_internal/schema/roots/domain.d.ts +45 -0
- package/out/_internal/schema/roots/intersection.d.ts +72 -0
- package/out/_internal/schema/roots/morph.d.ts +59 -0
- package/out/_internal/schema/roots/proto.d.ts +42 -0
- package/out/_internal/schema/roots/root.d.ts +163 -0
- package/out/_internal/schema/roots/union.d.ts +146 -0
- package/out/_internal/schema/roots/unit.d.ts +36 -0
- package/out/_internal/schema/runtime.d.ts +29 -0
- package/out/_internal/schema/runtimeLean.d.ts +2 -0
- package/out/_internal/schema/runtimeNone.d.ts +2 -0
- package/out/_internal/schema/runtimeNoneLean.d.ts +2 -0
- package/out/_internal/schema/scope.d.ts +203 -0
- package/out/_internal/schema/shared/codecs.d.ts +5 -0
- package/out/_internal/schema/shared/compile.d.ts +144 -0
- package/out/_internal/schema/shared/configured.d.ts +14 -0
- package/out/_internal/schema/shared/declare.d.ts +100 -0
- package/out/_internal/schema/shared/disjoint.d.ts +45 -0
- package/out/_internal/schema/shared/enWriters.d.ts +30 -0
- package/out/_internal/schema/shared/errorModes.d.ts +25 -0
- package/out/_internal/schema/shared/errorWriters.d.ts +34 -0
- package/out/_internal/schema/shared/errors.d.ts +264 -0
- package/out/_internal/schema/shared/implement.d.ts +154 -0
- package/out/_internal/schema/shared/inPlace.d.ts +8 -0
- package/out/_internal/schema/shared/issueFeatures.d.ts +38 -0
- package/out/_internal/schema/shared/issues.d.ts +261 -0
- package/out/_internal/schema/shared/issuesLean.d.ts +80 -0
- package/out/_internal/schema/shared/issuesNone.d.ts +22 -0
- package/out/_internal/schema/shared/issuesNoneLean.d.ts +20 -0
- package/out/_internal/schema/shared/issuesUndetailed.d.ts +25 -0
- package/out/_internal/schema/shared/jsonSchema.d.ts +153 -0
- package/out/_internal/schema/shared/listed.d.ts +15 -0
- package/out/_internal/schema/shared/locale.d.ts +149 -0
- package/out/_internal/schema/shared/registry.d.ts +16 -0
- package/out/_internal/schema/shared/render.d.ts +3 -0
- package/out/_internal/schema/shared/rootApply.d.ts +19 -0
- package/out/_internal/schema/shared/sets.d.ts +26 -0
- package/out/_internal/schema/shared/standardFailure.d.ts +22 -0
- package/out/_internal/schema/shared/standardSchema.d.ts +124 -0
- package/out/_internal/schema/shared/toJsonSchema.d.ts +229 -0
- package/out/_internal/schema/shared/transform.d.ts +35 -0
- package/out/_internal/schema/shared/traversal.d.ts +288 -0
- package/out/_internal/schema/shared/utils.d.ts +59 -0
- package/out/_internal/schema/structure/index.d.ts +43 -0
- package/out/_internal/schema/structure/optional.d.ts +61 -0
- package/out/_internal/schema/structure/prop.d.ts +45 -0
- package/out/_internal/schema/structure/required.d.ts +49 -0
- package/out/_internal/schema/structure/sequence.d.ts +127 -0
- package/out/_internal/schema/structure/shared.d.ts +3 -0
- package/out/_internal/schema/structure/structure.d.ts +178 -0
- package/out/_internal/schema/units.d.ts +123 -0
- package/out/_internal/sets/algebra.d.ts +26 -0
- package/out/_internal/sets/constraint.d.ts +19 -0
- package/out/_internal/sets/engine.d.ts +2 -0
- package/out/_internal/sets/formats.d.ts +23 -0
- package/out/_internal/sets/fromJsonSchema.d.ts +15 -0
- package/out/_internal/sets/implement.d.ts +16 -0
- package/out/_internal/sets/index.d.ts +2 -0
- package/out/_internal/sets/internal.d.ts +20 -0
- package/out/_internal/sets/intersections.d.ts +5 -0
- package/out/_internal/sets/kinds.d.ts +3 -0
- package/out/_internal/sets/refinements.d.ts +14 -0
- package/out/_internal/sets/roots/alias.d.ts +3 -0
- package/out/_internal/sets/roots/domain.d.ts +3 -0
- package/out/_internal/sets/roots/intersection.d.ts +4 -0
- package/out/_internal/sets/roots/morph.d.ts +4 -0
- package/out/_internal/sets/roots/proto.d.ts +3 -0
- package/out/_internal/sets/roots/union.d.ts +16 -0
- package/out/_internal/sets/roots/unit.d.ts +3 -0
- package/out/_internal/sets/structure/index.d.ts +3 -0
- package/out/_internal/sets/structure/prop.d.ts +8 -0
- package/out/_internal/sets/structure/sequence.d.ts +3 -0
- package/out/_internal/sets/structure/structure.d.ts +3 -0
- package/out/_internal/sets/toJsonSchema.d.ts +25 -0
- package/out/_internal/util/arrays.d.ts +130 -0
- package/out/_internal/util/clone.d.ts +4 -0
- package/out/_internal/util/describe.d.ts +25 -0
- package/out/_internal/util/domain.d.ts +49 -0
- package/out/_internal/util/errors.d.ts +29 -0
- package/out/_internal/util/facts.d.ts +22 -0
- package/out/_internal/util/flatMorph.d.ts +41 -0
- package/out/_internal/util/formats.d.ts +8 -0
- package/out/_internal/util/functions.d.ts +33 -0
- package/out/_internal/util/generics.d.ts +65 -0
- package/out/_internal/util/get.d.ts +9 -0
- package/out/_internal/util/hkt.d.ts +27 -0
- package/out/_internal/util/i18n.d.ts +12 -0
- package/out/_internal/util/index.d.ts +28 -0
- package/out/_internal/util/internal.d.ts +2 -0
- package/out/_internal/util/intersections.d.ts +50 -0
- package/out/_internal/util/isomorphic.d.ts +8 -0
- package/out/_internal/util/keys.d.ts +18 -0
- package/out/_internal/util/lazily.d.ts +7 -0
- package/out/_internal/util/numbers.d.ts +82 -0
- package/out/_internal/util/objectKinds.d.ts +157 -0
- package/out/_internal/util/path.d.ts +16 -0
- package/out/_internal/util/primitive.d.ts +16 -0
- package/out/_internal/util/records.d.ts +173 -0
- package/out/_internal/util/registry.d.ts +13 -0
- package/out/_internal/util/scanner.d.ts +110 -0
- package/out/_internal/util/serialize.d.ts +40 -0
- package/out/_internal/util/strings.d.ts +35 -0
- package/out/_internal/util/traits.d.ts +89 -0
- package/out/_internal/util/unionToTuple.d.ts +14 -0
- package/out/_internal/util/weak.d.ts +8 -0
- package/out/attributes.d.ts +15 -11
- package/out/checkers.d.ts +1 -1
- package/out/chunk-22RQSVV3.js +0 -0
- package/out/chunk-3HZC67MT.js +965 -0
- package/out/chunk-3KBOPH3J.js +1564 -0
- package/out/chunk-3SH2BQ4T.js +15 -0
- package/out/chunk-46PLKNON.js +126 -0
- package/out/{chunk-G45P2CLE.js → chunk-4FTHWK63.js} +6 -1
- package/out/{chunk-UK5UGFOX.js → chunk-4HREHNIV.js} +23 -11
- package/out/chunk-4NZCLVBD.js +14 -0
- package/out/chunk-6FMBO47M.js +7 -0
- package/out/chunk-7TALAWYX.js +10 -0
- package/out/{chunk-DLWCO4RV.js → chunk-BCYKO54Z.js} +11 -2
- package/out/chunk-BDJVONP7.js +168 -0
- package/out/{chunk-E3DZXEZK.js → chunk-C2JOL5M2.js} +4 -2
- package/out/{chunk-2U2AWCI3.js → chunk-C2V6QPE3.js} +126 -97
- package/out/chunk-C3B4IFQL.js +6408 -0
- package/out/chunk-CWSF57VM.js +10 -0
- package/out/chunk-F5BACUJS.js +7 -0
- package/out/{chunk-EVCML554.js → chunk-FWRSDUJ2.js} +14 -5
- package/out/chunk-GID3FSQA.js +161 -0
- package/out/chunk-I2KLQ2HA.js +22 -0
- package/out/chunk-K7SLP5D2.js +84 -0
- package/out/chunk-KQPSKGUI.js +9 -0
- package/out/chunk-KXOC3JEX.js +8234 -0
- package/out/chunk-KXOSUYRA.js +405 -0
- package/out/chunk-LHNEY6QW.js +0 -0
- package/out/chunk-MTWKGAGO.js +323 -0
- package/out/chunk-NU73GNCX.js +170 -0
- package/out/{chunk-RAZ3TXOE.js → chunk-P5W67FQH.js} +34 -19
- package/out/chunk-PDLTEX6Z.js +1118 -0
- package/out/{chunk-VV6YDN2D.js → chunk-QUS4IAXJ.js} +304 -263
- package/out/chunk-R7WXIH5P.js +94 -0
- package/out/chunk-TACLEIDM.js +95 -0
- package/out/chunk-UJJGG4VQ.js +71 -0
- package/out/chunk-US6BWOGJ.js +109 -0
- package/out/chunk-VMMMOO4R.js +945 -0
- package/out/chunk-VYMXHSFR.js +439 -0
- package/out/chunk-W2XOI5DY.js +141 -0
- package/out/chunk-WC5L5YRP.js +25 -0
- package/out/{chunk-NRIGTMPM.js → chunk-WKOSL2G6.js} +4 -1
- package/out/chunk-XLG66ZDF.js +0 -0
- package/out/{chunk-5U2ZMDNI.js → chunk-XNUAQSJ4.js} +52 -30
- package/out/chunk-ZRYEHGSG.js +79 -0
- package/out/cli.d.ts +28 -0
- package/out/cli.js +636 -0
- package/out/codecs.d.ts +6 -5
- package/out/codecs.js +23 -7
- package/out/config.d.ts +5 -17
- package/out/config.js +11 -2
- package/out/declare.d.ts +40 -12
- package/out/deferred.d.ts +2 -2
- package/out/errors.d.ts +1 -1
- package/out/errors.js +10 -2
- package/out/fn.d.ts +20 -13
- package/out/fromJsonSchema.d.ts +18 -0
- package/out/generic.d.ts +9 -6
- package/out/i18n.d.ts +2 -2
- package/out/i18n.js +9 -2
- package/out/index.d.ts +16 -7
- package/out/index.js +25 -8
- package/out/internal.d.ts +4 -0
- package/out/internal.js +41 -17
- package/out/island.js +22 -6
- package/out/islandDependency.js +42 -18
- package/out/jsonSchema/infer.d.ts +805 -0
- package/out/jsonSchema/validate.d.ts +416 -0
- package/out/keywords/Array.d.ts +2 -2
- package/out/keywords/builtins.d.ts +3 -3
- package/out/keywords/constructors.d.ts +1 -1
- package/out/keywords/functions.d.ts +5 -192
- package/out/keywords/keywords.d.ts +3 -3
- package/out/keywords/number.d.ts +2 -2
- package/out/keywords/phrases.d.ts +4 -191
- package/out/keywords/string.d.ts +3 -3
- package/out/keywords/ts.d.ts +18 -18
- package/out/keywords/ts.js +19 -4
- package/out/locale.d.ts +6 -2
- package/out/locales/de.js +9 -2
- package/out/locales/en.js +21 -5
- package/out/match.d.ts +13 -10
- package/out/module.d.ts +2 -2
- package/out/mutatesInput.js +18 -3
- package/out/nary.d.ts +220 -194
- package/out/parser/ast/bounds.d.ts +2 -2
- package/out/parser/ast/default.d.ts +2 -2
- package/out/parser/ast/divisor.d.ts +2 -2
- package/out/parser/ast/generic.d.ts +2 -2
- package/out/parser/ast/infer.d.ts +1 -1
- package/out/parser/ast/keyof.d.ts +2 -2
- package/out/parser/ast/utils.d.ts +1 -1
- package/out/parser/ast/validate.d.ts +2 -2
- package/out/parser/definition.d.ts +4 -4
- package/out/parser/objectLiteral.d.ts +2 -2
- package/out/parser/property.d.ts +2 -2
- package/out/parser/reduce/dynamic.d.ts +2 -2
- package/out/parser/reduce/shared.d.ts +1 -1
- package/out/parser/reduce/static.d.ts +1 -1
- package/out/parser/shift/operand/enclosed.d.ts +2 -2
- package/out/parser/shift/operand/genericArgs.d.ts +2 -2
- package/out/parser/shift/operand/operand.d.ts +1 -1
- package/out/parser/shift/operand/unenclosed.d.ts +2 -2
- package/out/parser/shift/operand/unresolvable.d.ts +2 -2
- package/out/parser/shift/operator/bounds.d.ts +2 -2
- package/out/parser/shift/operator/brand.d.ts +2 -2
- package/out/parser/shift/operator/default.d.ts +4 -4
- package/out/parser/shift/operator/divisor.d.ts +1 -1
- package/out/parser/shift/operator/operator.d.ts +1 -1
- package/out/parser/shift/tokens.d.ts +1 -1
- package/out/parser/string.d.ts +2 -2
- package/out/parser/tupleExpressions.d.ts +6 -8
- package/out/parser/tupleLiteral.d.ts +2 -2
- package/out/precompiled.d.ts +1 -1
- package/out/precompiled.js +16 -2
- package/out/regex.d.ts +1 -0
- package/out/regex.js +2 -0
- package/out/runtime.d.ts +10 -8
- package/out/runtime.js +6 -4
- package/out/runtimeDevelopment.js +70 -52
- package/out/schema.d.ts +1 -0
- package/out/schema.js +15 -0
- package/out/schemaInternal.d.ts +1 -0
- package/out/schemaInternal.js +1401 -0
- package/out/schemaIssueFeatures.d.ts +1 -0
- package/out/schemaRuntime.d.ts +1 -0
- package/out/schemaRuntime.js +7 -0
- package/out/schemaRuntimeLean.d.ts +1 -0
- package/out/schemaRuntimeLean.js +1870 -0
- package/out/schemaRuntimeNone.d.ts +1 -0
- package/out/schemaRuntimeNone.js +1774 -0
- package/out/schemaRuntimeNoneLean.d.ts +1 -0
- package/out/schemaRuntimeNoneLean.js +1767 -0
- package/out/scope.d.ts +3 -4
- package/out/shared/issueFeatures.d.ts +38 -0
- package/out/shared/issueFeatures.js +40 -0
- package/out/standalone/artifact.d.ts +6 -6
- package/out/standalone/baking.d.ts +2 -2
- package/out/standalone/combinators.d.ts +1 -1
- package/out/standalone/compilers.d.ts +1 -1
- package/out/standalone/fallbacks.d.ts +1 -1
- package/out/standalone/keys.d.ts +1 -1
- package/out/standalone/sites.d.ts +3 -3
- package/out/standalone/units.d.ts +1 -1
- package/out/standalone/values.d.ts +1 -1
- package/out/type.d.ts +6 -6
- package/out/util.d.ts +1 -0
- package/out/util.js +137 -0
- package/out/variants/array.d.ts +6 -6
- package/out/variants/base.d.ts +61 -10
- package/out/variants/date.d.ts +5 -5
- package/out/variants/instantiate.d.ts +1 -1
- package/out/variants/number.d.ts +6 -6
- package/out/variants/object.d.ts +25 -12
- package/out/variants/string.d.ts +8 -8
- package/package.json +183 -8
- package/skills/arktype/SKILL.md +93 -93
- package/skills/arktype/references/migrating.md +144 -158
- package/skills/arktype/references/precompile.md +7 -7
- package/out/chunk-4CUA5XIP.js +0 -7
- package/out/chunk-GPNK5353.js +0 -2529
- package/out/chunk-MLKGABMK.js +0 -9
- package/out/chunk-PRTMQCHS.js +0 -3
- package/out/chunk-R5G57XC7.js +0 -7
- package/out/chunk-SWOOCAHN.js +0 -4
- package/out/chunk-TAHPKDNM.js +0 -3
- package/out/chunk-UETB6YE2.js +0 -14
package/out/config.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { arkKind, TypeMeta } from "
|
|
1
|
+
import type { ArkEnv, arkKind, TypeMeta } from "./_internal/schema/index.js";
|
|
2
2
|
import type { Ark } from "./keywords/keywords.ts";
|
|
3
3
|
import type { Locale } from "./locale.ts";
|
|
4
|
-
import { type ArkSchemaConfig, type writeUnknownConfigOptionMessage } from "
|
|
5
|
-
import type { anyOrNever, ErrorMessage } from "
|
|
4
|
+
import { type ArkSchemaConfig, type writeUnknownConfigOptionMessage } from "./_internal/schema/config.js";
|
|
5
|
+
import type { anyOrNever, ErrorMessage } from "./_internal/util/index.js";
|
|
6
6
|
export type KeywordConfig = {
|
|
7
7
|
[k in keyof Ark.flat as parseConfigurableFlatAlias<k, Ark.flat[k]>]?: TypeMeta.Collapsible;
|
|
8
8
|
};
|
|
@@ -19,21 +19,9 @@ export declare const configure: <config extends ArkConfig>(config: validateConfi
|
|
|
19
19
|
type validateConfig<config> = {
|
|
20
20
|
[k in keyof config]: k extends keyof ArkConfig ? config[k] : ErrorMessage<writeUnknownConfigOptionMessage<k & string>>;
|
|
21
21
|
};
|
|
22
|
-
|
|
23
|
-
export interface ArkEnv {
|
|
24
|
-
$(): Ark;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* This mirrors the global ArkEnv namespace as a local export. We use it instead
|
|
29
|
-
* of the global internally due to a bug in twoslash that prevents `ark/docs`
|
|
30
|
-
* from building if we refer to the global directly.
|
|
31
|
-
*
|
|
32
|
-
* If, in the future, docs can build while arktype refers to `ArkEnv.$` directly,
|
|
33
|
-
* this can be removed.
|
|
34
|
-
*/
|
|
22
|
+
/** what strings resolve against: ArkEnv's $ if a program declares one, else Ark */
|
|
35
23
|
export declare namespace ArkAmbient {
|
|
36
|
-
type $ = ReturnType<ArkEnv["$"]>;
|
|
24
|
+
type $ = unknown extends ReturnType<ArkEnv["$"]> ? Ark : ReturnType<ArkEnv["$"]>;
|
|
37
25
|
type meta = ArkEnv.meta;
|
|
38
26
|
type prototypes = ArkEnv.prototypes;
|
|
39
27
|
}
|
package/out/config.js
CHANGED
|
@@ -1,2 +1,11 @@
|
|
|
1
|
-
export { configure } from "./chunk-
|
|
2
|
-
import "./chunk-
|
|
1
|
+
export { configure } from "./chunk-WKOSL2G6.js";
|
|
2
|
+
import "./chunk-KXOSUYRA.js";
|
|
3
|
+
import "./chunk-W2XOI5DY.js";
|
|
4
|
+
import "./chunk-TACLEIDM.js";
|
|
5
|
+
import "./chunk-VYMXHSFR.js";
|
|
6
|
+
import "./chunk-PDLTEX6Z.js";
|
|
7
|
+
import "./chunk-3KBOPH3J.js";
|
|
8
|
+
import "./chunk-ZRYEHGSG.js";
|
|
9
|
+
import "./chunk-3SH2BQ4T.js";
|
|
10
|
+
import "./chunk-3HZC67MT.js";
|
|
11
|
+
import "./chunk-I2KLQ2HA.js";
|
package/out/declare.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { TypeMeta, UndeclaredKeyBehavior } from "
|
|
2
|
-
import type { anyOrNever, array, Backslash, equals, ErrorMessage, ErrorType, optionalKeyOf, requiredKeyOf, show, unset } from "
|
|
1
|
+
import type { TypeMeta, UndeclaredKeyBehavior } from "./_internal/schema/index.js";
|
|
2
|
+
import type { anyOrNever, array, Backslash, equals, ErrorMessage, ErrorType, optionalKeyOf, requiredKeyOf, show, unset } from "./_internal/util/index.js";
|
|
3
3
|
import type { distill, Out } from "./attributes.ts";
|
|
4
4
|
import type { type } from "./keywords/keywords.ts";
|
|
5
5
|
import type { inferDefinition, TerminalObjectDefinition, ThunkCast } from "./parser/definition.ts";
|
|
@@ -9,24 +9,46 @@ import type { TupleExpression } from "./parser/tupleExpressions.ts";
|
|
|
9
9
|
import type { bindThis } from "./scope.ts";
|
|
10
10
|
import type { Type } from "./type.ts";
|
|
11
11
|
export type DeclarationParser<$> = <preinferred = unset, ctx extends DeclareContext = {}>() => {
|
|
12
|
-
type: <const def>(def: [preinferred] extends [unset] ?
|
|
13
|
-
preinferred
|
|
14
|
-
] extends [anyOrNever] ? validateDeclared<preinferred, def, $, ctx> : ErrorMessage<`declare<ExternalType>() requires a generic argument`> : validateDeclared<preinferred, def, $, ctx>) => Type<finalizePreinferred<preinferred, def, $, ctx>, $>;
|
|
12
|
+
type: <const def>(def: [preinferred] extends [anyOrNever] ? validateDeclared<preinferred, def, $, ctx> : [preinferred] extends [unset] ? ErrorMessage<`declare<ExternalType>() requires a generic argument`> : validateDeclared<preinferred, def, $, ctx>) => Type<finalizePreinferred<preinferred, def, $, ctx>, $>;
|
|
15
13
|
};
|
|
16
|
-
type finalizePreinferred<preinferred, def, $, ctx extends DeclareContext> = ctx["side"] extends distill.Side ? ctx["side"] extends "in" ? (In: preinferred) => type.infer.Out<def,
|
|
14
|
+
type finalizePreinferred<preinferred, def, $, ctx extends DeclareContext> = ctx["assignable"] extends true ? inferDefinition<def, $> : ctx["side"] extends distill.Side ? ctx["side"] extends "in" ? (In: preinferred) => Out<type.infer.Out<def, $>> : (In: type.infer.In<def, $>) => Out<preinferred> : preinferred;
|
|
17
15
|
export type DeclareContext = {
|
|
18
16
|
side?: "in" | "out";
|
|
17
|
+
/**
|
|
18
|
+
* Check that the definition is assignable to the declared type, rather
|
|
19
|
+
* than equal to it, and keep the type the definition infers.
|
|
20
|
+
*
|
|
21
|
+
* A required key may be required or optional where it's declared optional,
|
|
22
|
+
* an optional key may be left out, and each value may be narrower than
|
|
23
|
+
* the one declared. A key the declared type doesn't name is still an error.
|
|
24
|
+
*/
|
|
25
|
+
assignable?: boolean;
|
|
19
26
|
};
|
|
20
27
|
export type validateDeclared<declared, def, $, ctx extends DeclareContext> = def extends type.validate<def, $> ? validateInference<def, declared, $, bindThis<def>, ctx> : type.validate<def, $>;
|
|
21
28
|
type validateInference<def, declared, $, args, ctx extends DeclareContext> = def extends TerminalObjectDefinition | ThunkCast | TupleExpression ? keyof def extends never ? validateObjectInference<def, declared, $, args, ctx> : validateShallowInference<inferDefinition<def, $, args>, declared, ctx> : def extends array ? validateArrayInference<def, declared, $, args, ctx> : def extends object ? validateObjectInference<def, declared, $, args, ctx> : validateShallowInference<inferDefinition<def, $, args>, declared, ctx>;
|
|
22
|
-
type validateArrayInference<def extends array, declared, $, args, ctx extends DeclareContext> = declared extends array ? {
|
|
29
|
+
type validateArrayInference<def extends array, declared, $, args, ctx extends DeclareContext> = declaredObjectOf<declared, ctx> extends infer declared extends array ? {
|
|
23
30
|
[i in keyof declared]: i extends keyof def ? validateInference<def[i], declared[i], $, args, ctx> : declared[i];
|
|
24
31
|
} : show<declarationMismatch<inferDefinition<def, $, args>, declared>>;
|
|
25
|
-
type validateObjectInference<def extends object, declared, $, args, ctx extends DeclareContext> = show<
|
|
32
|
+
type validateObjectInference<def extends object, declared, $, args, ctx extends DeclareContext> = show<validateObjectKeys<def, declaredObjectOf<declared, ctx>, $, args, ctx> & DeclaredObjectSettings>;
|
|
33
|
+
type declaredObjectOf<declared, ctx extends DeclareContext> = ctx["assignable"] extends true ? Exclude<declared, null | undefined> : declared;
|
|
34
|
+
type validateObjectKeys<def extends object, declared, $, args, ctx extends DeclareContext> = string extends keyof declared ? validateIndexedDeclaredKeys<def, declared, $, args, ctx> : [keyof declared & MetaKey] extends [never] ? validateDeclaredKeys<def, declared, $, args, ctx> : validateEscapedDeclaredKeys<def, declared, $, args, ctx>;
|
|
35
|
+
type validateIndexedDeclaredKeys<def extends object, declared, $, args, ctx extends DeclareContext, literalKey extends keyof declared = literalKeyOf<declared>> = ([literalKey] extends [never] ? unknown : validateObjectKeys<def, Pick<declared, literalKey>, $, args, ctx>) & {
|
|
36
|
+
[k in Exclude<keyof def, literalKey | `${literalKey & string}?` | MetaKey>]: validateInference<def[k], declared[string & keyof declared], $, args, ctx>;
|
|
37
|
+
};
|
|
38
|
+
type literalKeyOf<o> = keyof {
|
|
39
|
+
[k in keyof o as string extends k ? never : number extends k ? never : symbol extends k ? never : k]: 0;
|
|
40
|
+
};
|
|
26
41
|
type validateDeclaredKeys<def extends object, declared, $, args, ctx extends DeclareContext> = {
|
|
27
42
|
[k in requiredKeyOf<declared>]: k extends keyof def ? validateInference<def[k], declared[k], $, args, ctx> : declared[k];
|
|
28
|
-
} & {
|
|
43
|
+
} & (ctx["assignable"] extends true ? validateAssignableOptionalKeys<def, declared, $, args, ctx> : {
|
|
29
44
|
[k in optionalKeyOf<declared> & string as declaredOptionalKeySuggestion<k, def>]: declaredOptionalValueSuggestion<def, k, declared, $, args, ctx>;
|
|
45
|
+
});
|
|
46
|
+
type validateAssignableOptionalKeys<def extends object, declared, $, args, ctx extends DeclareContext> = {
|
|
47
|
+
[k in optionalKeyOf<declared> & string as k extends keyof def ? k : `${k}?` extends keyof def ? `${k}?` : k | `${k}?`]?: (k extends keyof def ? k : `${k}?` extends keyof def ? `${k}?` : never) extends infer defKey extends keyof def ? [
|
|
48
|
+
defKey
|
|
49
|
+
] extends [never] ? declared[k] : validateInference<def[defKey], Required<declared>[k] | ({
|
|
50
|
+
[_ in k]: undefined;
|
|
51
|
+
} extends Pick<declared, k> ? undefined : never), $, args, ctx> : never;
|
|
30
52
|
};
|
|
31
53
|
type validateEscapedDeclaredKeys<def extends object, declared, $, args, ctx extends DeclareContext> = {
|
|
32
54
|
[k in requiredKeyOf<declared> as declaredKey<k>]: declaredKey<k> extends (keyof def) ? validateInference<def[declaredKey<k>], declared[k], $, args, ctx> : declared[k];
|
|
@@ -39,9 +61,15 @@ type DeclaredObjectSettings = {
|
|
|
39
61
|
};
|
|
40
62
|
type declaredKey<k> = k extends MetaKey ? `${Backslash}${k}` : k;
|
|
41
63
|
type declaredOptionalKeySuggestion<k extends string, def> = k extends keyof def ? def[k] extends OptionalPropertyDefinition ? k : `${k}?` : `${k}?`;
|
|
42
|
-
type declaredEscapedOptionalValueSuggestion<def, k extends keyof declared & MetaKey, declared, $, args, ctx extends DeclareContext> = def[declaredKey<k> & keyof def] extends OptionalPropertyDefinition ? validateInference<def[declaredKey<k> & keyof def],
|
|
43
|
-
type declaredOptionalValueSuggestion<def, k extends keyof declared & string, declared, $, args, ctx extends DeclareContext> = k extends keyof def ? def[k] extends OptionalPropertyDefinition ? validateInference<def[k],
|
|
44
|
-
type
|
|
64
|
+
type declaredEscapedOptionalValueSuggestion<def, k extends keyof declared & MetaKey, declared, $, args, ctx extends DeclareContext> = def[declaredKey<k> & keyof def] extends OptionalPropertyDefinition ? validateInference<def[declaredKey<k> & keyof def], declaredOptionalValue<declared, k, def[declaredKey<k> & keyof def], $, args>, $, args, ctx> : OptionalPropertyDefinition;
|
|
65
|
+
type declaredOptionalValueSuggestion<def, k extends keyof declared & string, declared, $, args, ctx extends DeclareContext> = k extends keyof def ? def[k] extends OptionalPropertyDefinition ? validateInference<def[k], declaredOptionalValue<declared, k, def[k], $, args>, $, args, ctx> : declared[k] : `${k}?` extends keyof def ? validateInference<def[`${k}?`], declaredOptionalValue<declared, k, def[`${k}?`], $, args>, $, args, ctx> : declared[k];
|
|
66
|
+
type declaredOptionalValue<declared, k extends keyof declared, valueDef, $, args> = undefined extends inferDefinition<valueDef, $, args> ? {
|
|
67
|
+
[_ in k]: undefined;
|
|
68
|
+
} extends Pick<declared, k> ? declared[k] : Required<declared>[k] : Required<declared>[k];
|
|
69
|
+
type validateShallowInference<t, declared, ctx extends DeclareContext, inferred = ctx["side"] extends distill.Side ? distill<t, ctx["side"]> : t> = (ctx["assignable"] extends true ? [
|
|
70
|
+
inferred
|
|
71
|
+
] extends [declared] ? true : false : isAny<declared> extends true ? unknown extends inferred ? true : false : equals<inferred, declared>) extends true ? unknown : show<declarationMismatch<inferred, declared>>;
|
|
72
|
+
type isAny<t> = 0 extends 1 & t ? true : false;
|
|
45
73
|
type declarationMismatch<inferred, declared> = ErrorType<{
|
|
46
74
|
declared: declared;
|
|
47
75
|
inferred: inferred;
|
package/out/deferred.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BaseRoot, type GenericRoot } from "
|
|
2
|
-
import { type Dict, type Domain } from "
|
|
1
|
+
import { BaseRoot, type GenericRoot } from "./_internal/schema/index.js";
|
|
2
|
+
import { type Dict, type Domain } from "./_internal/util/index.js";
|
|
3
3
|
import type { InternalScope } from "./scope.ts";
|
|
4
4
|
export declare const keywordDomains: Dict<string, Domain>;
|
|
5
5
|
export declare const deferUnion: (branches: unknown[], $: InternalScope) => BaseRoot | undefined;
|
package/out/errors.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { UndetailedErrors } from "
|
|
1
|
+
export { UndetailedErrors } from "./_internal/schema/errors.js";
|
package/out/errors.js
CHANGED
|
@@ -1,2 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import "./chunk-KQPSKGUI.js";
|
|
2
|
+
export { UndetailedErrors } from "./chunk-R7WXIH5P.js";
|
|
3
|
+
import "./chunk-K7SLP5D2.js";
|
|
4
|
+
import "./chunk-VYMXHSFR.js";
|
|
5
|
+
import "./chunk-PDLTEX6Z.js";
|
|
6
|
+
import "./chunk-3KBOPH3J.js";
|
|
7
|
+
import "./chunk-ZRYEHGSG.js";
|
|
8
|
+
import "./chunk-3SH2BQ4T.js";
|
|
9
|
+
import "./chunk-3HZC67MT.js";
|
|
10
|
+
import "./chunk-I2KLQ2HA.js";
|
package/out/fn.d.ts
CHANGED
|
@@ -1,14 +1,19 @@
|
|
|
1
|
-
import type { BaseRoot, IntersectionNode } from "
|
|
2
|
-
import { Callable, type applyElementLabels, type conform, type Fn, type get } from "
|
|
1
|
+
import type { BaseRoot, IntersectionNode } from "./_internal/schema/index.js";
|
|
2
|
+
import { Callable, type applyElementLabels, type conform, type Fn, type get, type show } from "./_internal/util/index.js";
|
|
3
3
|
import type { distill } from "./attributes.ts";
|
|
4
4
|
import type { type } from "./keywords/keywords.ts";
|
|
5
|
-
import type { validateInnerDefinition } from "./parser/definition.ts";
|
|
5
|
+
import type { inferDefinition, validateInnerDefinition } from "./parser/definition.ts";
|
|
6
6
|
import type { inferTupleLiteral, validateTupleLiteral } from "./parser/tupleLiteral.ts";
|
|
7
7
|
import type { InternalScope, Scope } from "./scope.ts";
|
|
8
8
|
import type { Type } from "./type.ts";
|
|
9
|
-
export type BaseFnParser<$ = {}> = <const args extends readonly unknown[], paramsT extends readonly unknown[] = inferTupleLiteral<args extends readonly [...infer params, ":", unknown] ? params : args, $, {}>, returnT = args extends readonly [...unknown[], ":", infer returnDef] ?
|
|
9
|
+
export type BaseFnParser<$ = {}> = <const args extends readonly unknown[], paramsT extends readonly unknown[] = inferTupleLiteral<args extends readonly [...infer params, ":", unknown] ? params : args, $, {}>, returnT = args extends readonly [...unknown[], ":", infer returnDef] ? inferDefinition<returnDef, $> : unknown>(...args: {
|
|
10
10
|
[i in keyof args]: conform<args[i], get<validateFnArgs<args, $>, i>>;
|
|
11
|
-
}) => <internalSignature extends (...args: distill.Out<paramsT>) => distill.In<returnT>, externalSignature extends Fn = (...args: applyElementLabels<distill.In<paramsT>, Required<Parameters<internalSignature>>>) => args extends readonly [...unknown[], ":", unknown] ? distill.Out<returnT> : ReturnType<internalSignature>>(implementation: internalSignature) => TypedFn<externalSignature, $, args
|
|
11
|
+
}) => <internalSignature extends (...args: distill.Out<paramsT>) => distill.In<returnT>, externalSignature extends Fn = (...args: applyElementLabels<distill.In<paramsT>, Required<Parameters<internalSignature>>>) => args extends readonly [...unknown[], ":", unknown] ? distill.Out<returnT> : ReturnType<internalSignature>>(implementation: internalSignature) => TypedFn<externalSignature, $, fnMetaOf<args, paramsT, returnT>>;
|
|
12
|
+
type fnMetaOf<args, paramsT extends readonly unknown[], returnT> = show<(args extends readonly [...unknown[], ":", unknown] ? {
|
|
13
|
+
returns: returnT;
|
|
14
|
+
} : {}) & ([distill.In<paramsT>] extends [paramsT] ? {} : {
|
|
15
|
+
params: paramsT;
|
|
16
|
+
})>;
|
|
12
17
|
export interface FnParser<$ = {}> extends BaseFnParser<$> {
|
|
13
18
|
/**
|
|
14
19
|
* The {@link Scope} in which definitions passed to this function will be parsed.
|
|
@@ -27,13 +32,20 @@ export declare class InternalFnParser extends Callable<(...args: unknown[]) => F
|
|
|
27
32
|
}
|
|
28
33
|
export declare namespace TypedFn {
|
|
29
34
|
type meta = {
|
|
30
|
-
|
|
35
|
+
/** its params' Types, where they transform or default */
|
|
36
|
+
params?: readonly unknown[];
|
|
37
|
+
/** its declared return Type */
|
|
38
|
+
returns?: unknown;
|
|
31
39
|
};
|
|
32
40
|
}
|
|
33
41
|
export interface TypedFn<signature extends Fn = Fn, $ = {}, meta extends TypedFn.meta = {}> extends Callable<signature> {
|
|
34
42
|
expression: string;
|
|
35
|
-
params:
|
|
36
|
-
|
|
43
|
+
params: Type<meta extends {
|
|
44
|
+
params: infer params;
|
|
45
|
+
} ? params : Parameters<signature>, $>;
|
|
46
|
+
returns: Type<meta extends {
|
|
47
|
+
returns: infer returns;
|
|
48
|
+
} ? returns : unknown, $>;
|
|
37
49
|
}
|
|
38
50
|
export declare class InternalTypedFn extends Callable<(...args: unknown[]) => unknown> {
|
|
39
51
|
raw: Fn;
|
|
@@ -42,11 +54,6 @@ export declare class InternalTypedFn extends Callable<(...args: unknown[]) => un
|
|
|
42
54
|
constructor(raw: Fn, params: IntersectionNode, returns: BaseRoot);
|
|
43
55
|
get expression(): string;
|
|
44
56
|
}
|
|
45
|
-
export declare namespace Return {
|
|
46
|
-
interface introspectable {
|
|
47
|
-
introspectableReturn: true;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
57
|
type validateFnArgs<args, $> = args extends readonly unknown[] ? args extends readonly [...infer paramDefs, ":", infer returnDef] ? readonly [
|
|
51
58
|
...validateFnParamDefs<paramDefs, $>,
|
|
52
59
|
":",
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { StandardJSONSchemaV1 } from "./_internal/schema/index.js";
|
|
2
|
+
import type { inferJsonSchema } from "./jsonSchema/infer.ts";
|
|
3
|
+
import type { validateJsonSchema } from "./jsonSchema/validate.ts";
|
|
4
|
+
import type { Type } from "./type.ts";
|
|
5
|
+
/** a Standard Schema of any vendor, which is read only if it's a Standard JSON Schema */
|
|
6
|
+
export interface StandardSchemaLike {
|
|
7
|
+
readonly "~standard": unknown;
|
|
8
|
+
}
|
|
9
|
+
export type validateFromJsonSchema<schema> = schema extends StandardSchemaLike ? StandardJSONSchemaV1 : validateJsonSchema<schema>;
|
|
10
|
+
export type inferFromJsonSchema<schema> = 0 extends 1 & schema ? unknown : schema extends StandardJSONSchemaV1 ? StandardJSONSchemaV1.InferInput<schema> : inferJsonSchema<schema>;
|
|
11
|
+
export type FromJsonSchema = <const schema, r = Type<inferFromJsonSchema<schema>>>(schema: validateFromJsonSchema<schema>) => r extends infer _ ? _ : never;
|
|
12
|
+
/**
|
|
13
|
+
* The Type of a JSON Schema (an object or a boolean) or a Standard JSON Schema
|
|
14
|
+
* (e.g. a zod schema). A JSON Schema written as a literal is checked and its
|
|
15
|
+
* type inferred; a Standard Schema is read as the JSON Schema of its input.
|
|
16
|
+
* @throws {ParseError} for anything else, or a schema that can't be read exactly
|
|
17
|
+
*/
|
|
18
|
+
export declare const fromJsonSchema: FromJsonSchema;
|
package/out/generic.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GenericRoot, type arkKind, type BaseParseContext, type GenericAst, type GenericParamAst, type GenericParamDef, type genericParamNames, type LazyGenericBody } from "
|
|
2
|
-
import { type array, type Callable, type conform, type ErrorMessage, type ErrorType, type Hkt, type JsonStructure, type Scanner, type WhitespaceChar } from "
|
|
1
|
+
import { GenericRoot, type arkKind, type BaseParseContext, type GenericAst, type GenericParamAst, type GenericParamDef, type genericParamNames, type LazyGenericBody } from "./_internal/schema/index.js";
|
|
2
|
+
import { type array, type Callable, type conform, type ErrorMessage, type ErrorType, type Hkt, type JsonStructure, type Scanner, type WhitespaceChar } from "./_internal/util/index.js";
|
|
3
3
|
import type { type } from "./keywords/keywords.ts";
|
|
4
4
|
import type { inferAstRoot } from "./parser/ast/infer.ts";
|
|
5
5
|
import type { validateAst } from "./parser/ast/validate.ts";
|
|
@@ -11,7 +11,7 @@ import type { Type } from "./type.ts";
|
|
|
11
11
|
export type ParameterString<params extends string = string> = `<${params}>`;
|
|
12
12
|
export type extractParams<s extends ParameterString> = s extends ParameterString<infer params> ? params : never;
|
|
13
13
|
export type validateParameterString<s extends ParameterString, $> = parseGenericParams<extractParams<s>, $> extends infer e extends ErrorMessage ? e : s;
|
|
14
|
-
export type validateGenericArg<arg, param extends GenericParamAst, $> =
|
|
14
|
+
export type validateGenericArg<arg, param extends GenericParamAst, $> = inferDefinition<arg, $> extends param[1] ? unknown : ErrorType<[`Invalid argument for ${param[0]}`, expected: param[1]]>;
|
|
15
15
|
export type GenericInstantiator<params extends array<GenericParamAst>, def, $, args$> = params["length"] extends 1 ? {
|
|
16
16
|
<const a, r = instantiateGeneric<def, params, [a], $, args$>>(a: type.validate<a, args$> & validateGenericArg<a, params[0], args$>): r extends infer _ ? _ : never;
|
|
17
17
|
} : params["length"] extends 2 ? {
|
|
@@ -53,10 +53,10 @@ export type GenericInstantiator<params extends array<GenericParamAst>, def, $, a
|
|
|
53
53
|
type instantiateGeneric<def, params extends array<GenericParamAst>, args, $, args$> = Type<[
|
|
54
54
|
def
|
|
55
55
|
] extends [Hkt] ? Hkt.apply<def, {
|
|
56
|
-
[i in keyof args]:
|
|
56
|
+
[i in keyof args]: inferDefinition<args[i], args$>;
|
|
57
57
|
}> : inferDefinition<def, $, bindGenericArgs<params, args$, args>>, args$>;
|
|
58
58
|
type bindGenericArgs<params extends array<GenericParamAst>, $, args> = {
|
|
59
|
-
[i in keyof params & `${number}` as params[i][0]]:
|
|
59
|
+
[i in keyof params & `${number}` as params[i][0]]: inferDefinition<args[i & keyof args], $>;
|
|
60
60
|
};
|
|
61
61
|
type baseGenericResolutions<params extends array<GenericParamAst>, $> = baseGenericConstraints<params> extends infer baseConstraints ? {
|
|
62
62
|
[k in keyof baseConstraints]: Type<baseConstraints[k], $>;
|
|
@@ -102,7 +102,10 @@ type _parseOptionalConstraint<unscanned extends string, name extends string, res
|
|
|
102
102
|
...result,
|
|
103
103
|
[name, unknown]
|
|
104
104
|
], $>;
|
|
105
|
-
type genericParamDefToAst<schema extends GenericParamDef, $> = schema extends string ? [schema, unknown] : schema extends readonly [infer name, infer def] ? [
|
|
105
|
+
type genericParamDefToAst<schema extends GenericParamDef, $> = schema extends string ? [schema, unknown] : schema extends readonly [infer name, infer def] ? [
|
|
106
|
+
name,
|
|
107
|
+
inferDefinition<def, $>
|
|
108
|
+
] : never;
|
|
106
109
|
export type genericParamDefsToAst<defs extends array<GenericParamDef>, $> = [
|
|
107
110
|
...{
|
|
108
111
|
[i in keyof defs]: genericParamDefToAst<defs[i], $>;
|
package/out/i18n.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { describeCause, describeMissing, groupByPath, labelOf, printedActualOf, writeKeywordExpected, type PathGroup } from "
|
|
2
|
-
export { isolate, listPattern, type ListPattern, type ListType } from "
|
|
1
|
+
export { describeCause, describeMissing, groupByPath, labelOf, printedActualOf, writeKeywordExpected, type PathGroup } from "./_internal/schema/i18n.js";
|
|
2
|
+
export { isolate, listPattern, type ListPattern, type ListType } from "./_internal/util/index.js";
|
package/out/i18n.js
CHANGED
|
@@ -1,2 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-22RQSVV3.js";
|
|
2
|
+
import "./chunk-XLG66ZDF.js";
|
|
3
|
+
import "./chunk-NU73GNCX.js";
|
|
4
|
+
export { describeCause, describeMissing, groupByPath, labelOf, writeKeywordExpected } from "./chunk-PDLTEX6Z.js";
|
|
5
|
+
export { printedActualOf } from "./chunk-3KBOPH3J.js";
|
|
6
|
+
import "./chunk-ZRYEHGSG.js";
|
|
7
|
+
export { isolate, listPattern } from "./chunk-3SH2BQ4T.js";
|
|
8
|
+
import "./chunk-3HZC67MT.js";
|
|
9
|
+
import "./chunk-I2KLQ2HA.js";
|
package/out/index.d.ts
CHANGED
|
@@ -1,13 +1,22 @@
|
|
|
1
|
-
export { annotatingFallback, ArkErrors, byAncestorPath, byPath, flatByPath, firstIssue, flatMessagesByPath, messageIn, Traversal, TraversalError, type ArkError, type ArkErrorCode, type
|
|
2
|
-
export { Hkt, inferred, ParseError, type Brand, type Json } from "
|
|
3
|
-
export { regex, type Regex } from "
|
|
4
|
-
export type { Default, distill, Out,
|
|
5
|
-
export
|
|
1
|
+
export { annotatingFallback, ArkErrors, byAncestorPath, byPath, flatByPath, firstIssue, flatMessagesByPath, messageIn, Traversal, TraversalError, type ArkEnv, type ArkError, type ArkErrorCode, type GenericAst, type JsonSchema, type StandardJSONSchemaV1, type StandardSchemaV1, type StandardTypedV1, type ToJsonSchema } from "./_internal/schema/index.js";
|
|
2
|
+
export { Hkt, inferred, ParseError, type Brand, type Json, type JsonStructure } from "./_internal/util/index.js";
|
|
3
|
+
export { regex, type Regex, type RegexExecArray } from "./_internal/regex/index.js";
|
|
4
|
+
export type { Default, distill, Out, To } from "./attributes.ts";
|
|
5
|
+
export { configure, type ArkConfig, type KeywordConfig } from "./config.ts";
|
|
6
|
+
export type { TypedFn } from "./fn.ts";
|
|
7
|
+
export { fromJsonSchema } from "./fromJsonSchema.ts";
|
|
6
8
|
export { Generic } from "./generic.ts";
|
|
9
|
+
export type { ParsedFormData } from "./keywords/FormData.ts";
|
|
7
10
|
export type { Locale } from "./locale.ts";
|
|
8
11
|
export { ark, declare, define, fn, generic, keywords, match, type, type Ark } from "./keywords/keywords.ts";
|
|
12
|
+
export type { Match, MatchParser } from "./match.ts";
|
|
9
13
|
export { Module, type BoundModule, type Submodule } from "./module.ts";
|
|
10
14
|
export type { inferDefinition, validateDefinition } from "./parser/definition.ts";
|
|
11
15
|
export { scope, type bindThis, type Scope } from "./scope.ts";
|
|
12
|
-
export { Type } from "./type.ts";
|
|
13
|
-
export type {
|
|
16
|
+
export { Type, type TypeParser } from "./type.ts";
|
|
17
|
+
export type { ArrayType } from "./variants/array.ts";
|
|
18
|
+
export type { BaseType, BoundType } from "./variants/base.ts";
|
|
19
|
+
export type { DateType } from "./variants/date.ts";
|
|
20
|
+
export type { NumberType } from "./variants/number.ts";
|
|
21
|
+
export type { BaseTypeProp, DefaultedTypeProp, ObjectType } from "./variants/object.ts";
|
|
22
|
+
export type { StringType } from "./variants/string.ts";
|
package/out/index.js
CHANGED
|
@@ -1,8 +1,25 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
|
|
5
|
-
export {
|
|
6
|
-
import "./chunk-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
export { Module, fromJsonSchema } from "./chunk-WC5L5YRP.js";
|
|
2
|
+
export { regex } from "./chunk-F5BACUJS.js";
|
|
3
|
+
export { inferred } from "./chunk-4NZCLVBD.js";
|
|
4
|
+
export { ark, declare, define, fn, generic, keywords, match, type } from "./chunk-C2V6QPE3.js";
|
|
5
|
+
export { Generic, Type, scope } from "./chunk-C3B4IFQL.js";
|
|
6
|
+
import "./chunk-4FTHWK63.js";
|
|
7
|
+
export { Hkt } from "./chunk-BDJVONP7.js";
|
|
8
|
+
export { configure } from "./chunk-WKOSL2G6.js";
|
|
9
|
+
import "./chunk-C2JOL5M2.js";
|
|
10
|
+
import "./chunk-4HREHNIV.js";
|
|
11
|
+
import "./chunk-KXOC3JEX.js";
|
|
12
|
+
import "./chunk-CWSF57VM.js";
|
|
13
|
+
import "./chunk-UJJGG4VQ.js";
|
|
14
|
+
import "./chunk-US6BWOGJ.js";
|
|
15
|
+
export { annotatingFallback } from "./chunk-KXOSUYRA.js";
|
|
16
|
+
import "./chunk-W2XOI5DY.js";
|
|
17
|
+
import "./chunk-TACLEIDM.js";
|
|
18
|
+
import "./chunk-K7SLP5D2.js";
|
|
19
|
+
import "./chunk-VYMXHSFR.js";
|
|
20
|
+
export { ArkErrors, ThrownErrors as TraversalError, byAncestorPath, byPath, firstIssue, flatByPath, flatMessagesByPath, messageIn } from "./chunk-PDLTEX6Z.js";
|
|
21
|
+
export { Traversal } from "./chunk-3KBOPH3J.js";
|
|
22
|
+
import "./chunk-ZRYEHGSG.js";
|
|
23
|
+
import "./chunk-3SH2BQ4T.js";
|
|
24
|
+
export { ParseError } from "./chunk-3HZC67MT.js";
|
|
25
|
+
import "./chunk-I2KLQ2HA.js";
|
package/out/internal.d.ts
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
export * from "./index.ts";
|
|
2
2
|
export * from "./attributes.ts";
|
|
3
3
|
export * from "./codecs.ts";
|
|
4
|
+
export * from "./config.ts";
|
|
4
5
|
export * from "./declare.ts";
|
|
5
6
|
export * from "./deferred.ts";
|
|
6
7
|
export * from "./errors.ts";
|
|
7
8
|
export * from "./fn.ts";
|
|
9
|
+
export * from "./fromJsonSchema.ts";
|
|
8
10
|
export * from "./generic.ts";
|
|
9
11
|
export * from "./i18n.ts";
|
|
12
|
+
export * from "./jsonSchema/infer.ts";
|
|
13
|
+
export * from "./jsonSchema/validate.ts";
|
|
10
14
|
export * from "./keywords/Array.ts";
|
|
11
15
|
export * from "./keywords/builtins.ts";
|
|
12
16
|
export * from "./keywords/constructors.ts";
|
package/out/internal.js
CHANGED
|
@@ -1,17 +1,41 @@
|
|
|
1
|
-
export { ConfiguredWriter, DataParts, StandaloneArtifact, addIssueFeatures, appendPath, appliedSignature, assertBakeableJsonSchema, assertDescribed, assertReportsIssues, bakedRootsOf, bakingOf, basesOf, bindingsOf, boundApplierOf, calledMembersOf, canPipe, cellPrefix, cellSetterOf, cellSpecifierOf, collectDefaults, combines, compiledForSize, contentKeyOf, contentNodesOf, creatorSourceOf, declares, defaultBakedLimit, defaultMembers, defaultedNodeKeys, discriminantContextOf, encodeKey, failureSites, failureSources, fallbackCodes, forwardedOf, frozen, fusedApplierOf, heldSpecifier, holdsDefaults, holdsLocal, holdsObjectMeta, holdsOnlyMeta, holeNameIn, holeNamePattern, internsByHolder, introspectionMembers, invalidErrorsOf, isChecker, isCheckerIn, isCreatedByRuntime, isDescribed, isHole, isInlineSite, isKeyword, isLiteralSite, isPlainLiteral, isReadByName, isSharedUnit, isTypedFn, isVariadicArray, isWriting, issueContextOf, issueSite, issueSiteOf, jsonVariantOf, keyOf, keywordMetas, kindNameOf, listedIssueOf, listsBranches, madeApplierOf, mergeUnits, missingDescriptionOf, namesReadBy, noInlineOf, noIssueFeatures, originalOf, partsOf, preciseFormOf, precompileStandalone, precompileStandaloneModules, printablePrimitive, printedHoleNamePattern, raisedWritersByCode, raisesNothing, raisingKeys, readWritten, receiverPrefix, refNameOf, registeredNameAt, returnedOf, rootUnitsOf, runtimeImport, runtimeKeyOf, runtimePathsByValue, shapedForSize, totalBaked, traceFallbacks, traversalKeyOf, uncountedJsonOf, unifies, unionKeySiteOf, unitOf, wholeReads, withoutStrings, writeBakedLimitMessage, writeCombinator, writeDependencies, writeFixConfig, writeFunction, writeId, writeImports, writeLazyRead, writeModule, writeReplay, writeScope, writeSections, writeSiteOf, writeUnprecompilableMessage, writeValue, writtenAttributesOf, writtenByUnits, writtenSelectedOf } from "./chunk-
|
|
2
|
-
import "./chunk-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
10
|
-
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
14
|
-
export {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
export { ConfiguredWriter, DataParts, StandaloneArtifact, addIssueFeatures, appendPath, appliedSignature, assertBakeableJsonSchema, assertDescribed, assertReportsIssues, bakedRootsOf, bakingOf, basesOf, bindingsOf, boundApplierOf, calledMembersOf, canPipe, cellPrefix, cellSetterOf, cellSpecifierOf, collectDefaults, combines, compiledForSize, contentKeyOf, contentNodesOf, creatorSourceOf, declares, defaultBakedLimit, defaultMembers, defaultedNodeKeys, discriminantContextOf, encodeKey, failureSites, failureSources, fallbackCodes, forwardedOf, frozen, fusedApplierOf, heldSpecifier, holdsDefaults, holdsLocal, holdsObjectMeta, holdsOnlyMeta, holeNameIn, holeNamePattern, internsByHolder, introspectionMembers, invalidErrorsOf, isChecker, isCheckerIn, isCreatedByRuntime, isDescribed, isHole, isInlineSite, isKeyword, isLiteralSite, isPlainLiteral, isReadByName, isSharedUnit, isTypedFn, isVariadicArray, isWriting, issueContextOf, issueSite, issueSiteOf, jsonVariantOf, keyOf, keywordMetas, kindNameOf, listedIssueOf, listsBranches, madeApplierOf, mergeUnits, missingDescriptionOf, namesReadBy, noInlineOf, noIssueFeatures, originalOf, partsOf, preciseFormOf, precompileStandalone, precompileStandaloneModules, printablePrimitive, printedHoleNamePattern, raisedWritersByCode, raisesNothing, raisingKeys, readWritten, receiverPrefix, refNameOf, registeredNameAt, returnedOf, rootUnitsOf, runtimeImport, runtimeKeyOf, runtimePathsByValue, shapedForSize, totalBaked, traceFallbacks, traversalKeyOf, uncountedJsonOf, unifies, unionKeySiteOf, unitOf, wholeReads, withoutStrings, writeBakedLimitMessage, writeCombinator, writeDependencies, writeFixConfig, writeFunction, writeId, writeImports, writeLazyRead, writeModule, writeReplay, writeScope, writeSections, writeSiteOf, writeUnprecompilableMessage, writeValue, writtenAttributesOf, writtenByUnits, writtenSelectedOf } from "./chunk-QUS4IAXJ.js";
|
|
2
|
+
import "./chunk-LHNEY6QW.js";
|
|
3
|
+
import "./chunk-XNUAQSJ4.js";
|
|
4
|
+
import "./chunk-VMMMOO4R.js";
|
|
5
|
+
import "./chunk-46PLKNON.js";
|
|
6
|
+
export { BoundModule, Module, fromJsonSchema } from "./chunk-WC5L5YRP.js";
|
|
7
|
+
export { regex } from "./chunk-F5BACUJS.js";
|
|
8
|
+
export { inferred } from "./chunk-4NZCLVBD.js";
|
|
9
|
+
export { codec } from "./chunk-FWRSDUJ2.js";
|
|
10
|
+
import "./chunk-GID3FSQA.js";
|
|
11
|
+
export { NFC, NFD, NFKC, NFKD, TypedArray, ark, arkArray, arkBuiltins, arkFormData, arkPrototypes, builtinDefinitions, capitalize, creditCard, declare, define, epoch, fn, generic, integer, ip, json, keywords, match, normalize, normalizedForms, number, prototypeDefinitions, regexStringNode, schema, string, stringDate, stringInteger, stringNumeric, tryParseDatePattern, type, url, uuid } from "./chunk-C2V6QPE3.js";
|
|
12
|
+
export { $arkTypeRegistry, Generic, InternalChainedMatchParser, InternalMatchParser, InternalScope, InternalTypeParser, RecordHkt, RuntimeState, Scope, Type, arkTsGenerics, arkTsKeywords, arrayIsNotGenericHint, assertTupleArity, chainedAtMessage, checkWrittenIntersection, comparatorStartChars, comparators, defaultablePostOptionalMessage, deferDefinition, deferUnion, deferUnits, deferredRecord, doubleAtMessage, emptyGenericParameterMessage, enclosingChar, enclosingLiteralTokens, enclosingQuote, enclosingRegexTokens, enclosingTokens, extractDateLiteralSource, finalizingLookaheads, foreignAliases, fullStringParse, getBoundKinds, incompleteArrayTokenMessage, invalidDefaultableKeyKindMessage, invalidOptionalKeyKindMessage, invertedComparators, isDateLiteral, keywordDomains, keywordModule, limitOf, lookaheadIsFinalizing, maxComparators, maybeParseTupleExpression, minComparators, multipleVariadicMesage, nonLeadingSpreadError, object, optionalOrDefaultableAfterVariadicMessage, parseBound, parseBrand, parseDefault, parseDivisor, parseEnclosed, parseGenericArgs, parseGenericInstantiation, parseGenericParamName, parseInnerDefinition, parseKeyOfTuple, parseMorphTuple, parseNarrowTuple, parseObject, parseObjectLiteral, parseOperand, parseOperator, parseProperty, parseRightBound, parseString, parseTuple, parseTupleLiteral, parseUnenclosed, parseUntilFinalizer, preparseKey, requiredPostOptionalMessage, scope, shallowDefaultableMessage, shallowOptionalMessage, shiftComparator, shiftUntilTerminator, spreadDefaultableMessage, spreadOptionalMessage, terminatingChars, tsGenericDefinitions, tsKeywordDefinitions, unknown, untilLookaheadIsClosing, writeAsyncStandardSchemaMessage, writeBadDefinitionTypeMessage, writeDoubleRightBoundMessage, writeExpressionExpectedMessage, writeIncompatibleRangeMessage, writeInvalidConstructorMessage, writeInvalidDivisorMessage, writeInvalidGenericArgCountMessage, writeInvalidLimitMessage, writeInvalidSpreadTypeMessage, writeInvalidUndeclaredBehaviorMessage, writeMalformedFunctionalExpressionMessage, writeMissingOperandMessage, writeMissingRightOperandMessage, writeMultipleLeftBoundsMessage, writeNonArraySpreadMessage, writeNonLiteralDefaultMessage, writeOpenRangeMessage, writeOptionalIndexKeyMessage, writeParameterizedGenericKeyMessage, writePrefixedPrivateReferenceMessage, writeUnexpectedCharacterMessage, writeUnexpectedTupleElementsMessage, writeUnpairableComparatorMessage, writeUnresolvableHint, writeUnresolvedFilterMessage, writeUnterminatedEnclosedMessage } from "./chunk-C3B4IFQL.js";
|
|
13
|
+
export { InternalFnParser, InternalTypedFn, badFnReturnTypeMessage } from "./chunk-4FTHWK63.js";
|
|
14
|
+
export { Hkt } from "./chunk-BDJVONP7.js";
|
|
15
|
+
export { configure } from "./chunk-WKOSL2G6.js";
|
|
16
|
+
import "./chunk-KQPSKGUI.js";
|
|
17
|
+
export { UndetailedErrors } from "./chunk-R7WXIH5P.js";
|
|
18
|
+
export { de } from "./chunk-P5W67FQH.js";
|
|
19
|
+
export { en } from "./chunk-7TALAWYX.js";
|
|
20
|
+
export { keywordMeta, keywordPhrases } from "./chunk-C2JOL5M2.js";
|
|
21
|
+
import "./chunk-22RQSVV3.js";
|
|
22
|
+
import "./chunk-XLG66ZDF.js";
|
|
23
|
+
import "./chunk-NU73GNCX.js";
|
|
24
|
+
import "./chunk-BCYKO54Z.js";
|
|
25
|
+
import "./chunk-MTWKGAGO.js";
|
|
26
|
+
export { capitalizeString, emptyCollectionDefaults, epochDescriptions, isEpochString, isJsonString, isLuhnValid, isParsableDate, isParsableUrl, isRegexPattern, keepFormatted, lowercaseString, maxEpoch, normalizationsByForm, parseDate, parseEpoch, parseFormData, parseInteger, parseIsoDate, parseJson, parseNumeric, parseUrl, parsesFinite, raisedErrorPhrases, stringifyJson, trimString, uppercaseString, writeEpoch, writeIsoDate, writeUrl } from "./chunk-4HREHNIV.js";
|
|
27
|
+
export { registerPrecompiledUnits } from "./chunk-KXOC3JEX.js";
|
|
28
|
+
import "./chunk-CWSF57VM.js";
|
|
29
|
+
import "./chunk-UJJGG4VQ.js";
|
|
30
|
+
export { iso8601Matcher } from "./chunk-US6BWOGJ.js";
|
|
31
|
+
export { annotatingFallback } from "./chunk-KXOSUYRA.js";
|
|
32
|
+
import "./chunk-W2XOI5DY.js";
|
|
33
|
+
import "./chunk-TACLEIDM.js";
|
|
34
|
+
import "./chunk-K7SLP5D2.js";
|
|
35
|
+
import "./chunk-VYMXHSFR.js";
|
|
36
|
+
export { ArkErrors, ThrownErrors as TraversalError, byAncestorPath, byPath, describeCause, describeMissing, firstIssue, flatByPath, flatMessagesByPath, groupByPath, labelOf, messageIn, writeKeywordExpected } from "./chunk-PDLTEX6Z.js";
|
|
37
|
+
export { Traversal, printedActualOf } from "./chunk-3KBOPH3J.js";
|
|
38
|
+
import "./chunk-ZRYEHGSG.js";
|
|
39
|
+
export { isolate, listPattern } from "./chunk-3SH2BQ4T.js";
|
|
40
|
+
export { ParseError } from "./chunk-3HZC67MT.js";
|
|
41
|
+
import "./chunk-I2KLQ2HA.js";
|
package/out/island.js
CHANGED
|
@@ -1,6 +1,22 @@
|
|
|
1
|
-
import "./chunk-
|
|
2
|
-
import "./chunk-
|
|
3
|
-
import "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-6FMBO47M.js";
|
|
2
|
+
import "./chunk-WKOSL2G6.js";
|
|
3
|
+
import "./chunk-KQPSKGUI.js";
|
|
4
|
+
import "./chunk-R7WXIH5P.js";
|
|
5
|
+
import "./chunk-BCYKO54Z.js";
|
|
6
|
+
import "./chunk-MTWKGAGO.js";
|
|
7
|
+
import "./chunk-4HREHNIV.js";
|
|
8
|
+
import "./chunk-KXOC3JEX.js";
|
|
9
|
+
import "./chunk-CWSF57VM.js";
|
|
10
|
+
import "./chunk-UJJGG4VQ.js";
|
|
11
|
+
import "./chunk-US6BWOGJ.js";
|
|
12
|
+
import "./chunk-KXOSUYRA.js";
|
|
13
|
+
import "./chunk-W2XOI5DY.js";
|
|
14
|
+
import "./chunk-TACLEIDM.js";
|
|
15
|
+
import "./chunk-K7SLP5D2.js";
|
|
16
|
+
import "./chunk-VYMXHSFR.js";
|
|
17
|
+
import "./chunk-PDLTEX6Z.js";
|
|
18
|
+
import "./chunk-3KBOPH3J.js";
|
|
19
|
+
import "./chunk-ZRYEHGSG.js";
|
|
20
|
+
import "./chunk-3SH2BQ4T.js";
|
|
21
|
+
import "./chunk-3HZC67MT.js";
|
|
22
|
+
import "./chunk-I2KLQ2HA.js";
|
package/out/islandDependency.js
CHANGED
|
@@ -1,18 +1,42 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
14
|
-
export {
|
|
15
|
-
export {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
import "./chunk-6FMBO47M.js";
|
|
2
|
+
export { ConfiguredWriter, DataParts, StandaloneArtifact, addIssueFeatures, appendPath, appliedSignature, assertBakeableJsonSchema, assertDescribed, assertReportsIssues, bakedRootsOf, bakingOf, basesOf, bindingsOf, boundApplierOf, calledMembersOf, canPipe, cellPrefix, cellSetterOf, cellSpecifierOf, collectDefaults, combines, compiledForSize, contentKeyOf, contentNodesOf, creatorSourceOf, declares, defaultBakedLimit, defaultMembers, defaultedNodeKeys, discriminantContextOf, encodeKey, failureSites, failureSources, fallbackCodes, forwardedOf, frozen, fusedApplierOf, heldSpecifier, holdsDefaults, holdsLocal, holdsObjectMeta, holdsOnlyMeta, holeNameIn, holeNamePattern, internsByHolder, introspectionMembers, invalidErrorsOf, isChecker, isCheckerIn, isCreatedByRuntime, isDescribed, isHole, isInlineSite, isKeyword, isLiteralSite, isPlainLiteral, isReadByName, isSharedUnit, isTypedFn, isVariadicArray, isWriting, issueContextOf, issueSite, issueSiteOf, jsonVariantOf, keyOf, keywordMetas, kindNameOf, listedIssueOf, listsBranches, madeApplierOf, mergeUnits, missingDescriptionOf, namesReadBy, noInlineOf, noIssueFeatures, originalOf, partsOf, preciseFormOf, precompileStandalone, precompileStandaloneModules, printablePrimitive, printedHoleNamePattern, raisedWritersByCode, raisesNothing, raisingKeys, readWritten, receiverPrefix, refNameOf, registeredNameAt, returnedOf, rootUnitsOf, runtimeImport, runtimeKeyOf, runtimePathsByValue, shapedForSize, totalBaked, traceFallbacks, traversalKeyOf, uncountedJsonOf, unifies, unionKeySiteOf, unitOf, wholeReads, withoutStrings, writeBakedLimitMessage, writeCombinator, writeDependencies, writeFixConfig, writeFunction, writeId, writeImports, writeLazyRead, writeModule, writeReplay, writeScope, writeSections, writeSiteOf, writeUnprecompilableMessage, writeValue, writtenAttributesOf, writtenByUnits, writtenSelectedOf } from "./chunk-QUS4IAXJ.js";
|
|
3
|
+
import "./chunk-LHNEY6QW.js";
|
|
4
|
+
import "./chunk-XNUAQSJ4.js";
|
|
5
|
+
import "./chunk-VMMMOO4R.js";
|
|
6
|
+
import "./chunk-46PLKNON.js";
|
|
7
|
+
export { BoundModule, Module, fromJsonSchema } from "./chunk-WC5L5YRP.js";
|
|
8
|
+
export { regex } from "./chunk-F5BACUJS.js";
|
|
9
|
+
export { inferred } from "./chunk-4NZCLVBD.js";
|
|
10
|
+
export { codec } from "./chunk-FWRSDUJ2.js";
|
|
11
|
+
import "./chunk-GID3FSQA.js";
|
|
12
|
+
export { NFC, NFD, NFKC, NFKD, TypedArray, ark, arkArray, arkBuiltins, arkFormData, arkPrototypes, builtinDefinitions, capitalize, creditCard, declare, define, epoch, fn, generic, integer, ip, json, keywords, match, normalize, normalizedForms, number, prototypeDefinitions, regexStringNode, schema, string, stringDate, stringInteger, stringNumeric, tryParseDatePattern, type, url, uuid } from "./chunk-C2V6QPE3.js";
|
|
13
|
+
export { $arkTypeRegistry, Generic, InternalChainedMatchParser, InternalMatchParser, InternalScope, InternalTypeParser, RecordHkt, RuntimeState, Scope, Type, arkTsGenerics, arkTsKeywords, arrayIsNotGenericHint, assertTupleArity, chainedAtMessage, checkWrittenIntersection, comparatorStartChars, comparators, defaultablePostOptionalMessage, deferDefinition, deferUnion, deferUnits, deferredRecord, doubleAtMessage, emptyGenericParameterMessage, enclosingChar, enclosingLiteralTokens, enclosingQuote, enclosingRegexTokens, enclosingTokens, extractDateLiteralSource, finalizingLookaheads, foreignAliases, fullStringParse, getBoundKinds, incompleteArrayTokenMessage, invalidDefaultableKeyKindMessage, invalidOptionalKeyKindMessage, invertedComparators, isDateLiteral, keywordDomains, keywordModule, limitOf, lookaheadIsFinalizing, maxComparators, maybeParseTupleExpression, minComparators, multipleVariadicMesage, nonLeadingSpreadError, object, optionalOrDefaultableAfterVariadicMessage, parseBound, parseBrand, parseDefault, parseDivisor, parseEnclosed, parseGenericArgs, parseGenericInstantiation, parseGenericParamName, parseInnerDefinition, parseKeyOfTuple, parseMorphTuple, parseNarrowTuple, parseObject, parseObjectLiteral, parseOperand, parseOperator, parseProperty, parseRightBound, parseString, parseTuple, parseTupleLiteral, parseUnenclosed, parseUntilFinalizer, preparseKey, requiredPostOptionalMessage, scope, shallowDefaultableMessage, shallowOptionalMessage, shiftComparator, shiftUntilTerminator, spreadDefaultableMessage, spreadOptionalMessage, terminatingChars, tsGenericDefinitions, tsKeywordDefinitions, unknown, untilLookaheadIsClosing, writeAsyncStandardSchemaMessage, writeBadDefinitionTypeMessage, writeDoubleRightBoundMessage, writeExpressionExpectedMessage, writeIncompatibleRangeMessage, writeInvalidConstructorMessage, writeInvalidDivisorMessage, writeInvalidGenericArgCountMessage, writeInvalidLimitMessage, writeInvalidSpreadTypeMessage, writeInvalidUndeclaredBehaviorMessage, writeMalformedFunctionalExpressionMessage, writeMissingOperandMessage, writeMissingRightOperandMessage, writeMultipleLeftBoundsMessage, writeNonArraySpreadMessage, writeNonLiteralDefaultMessage, writeOpenRangeMessage, writeOptionalIndexKeyMessage, writeParameterizedGenericKeyMessage, writePrefixedPrivateReferenceMessage, writeUnexpectedCharacterMessage, writeUnexpectedTupleElementsMessage, writeUnpairableComparatorMessage, writeUnresolvableHint, writeUnresolvedFilterMessage, writeUnterminatedEnclosedMessage } from "./chunk-C3B4IFQL.js";
|
|
14
|
+
export { InternalFnParser, InternalTypedFn, badFnReturnTypeMessage } from "./chunk-4FTHWK63.js";
|
|
15
|
+
export { Hkt } from "./chunk-BDJVONP7.js";
|
|
16
|
+
export { configure } from "./chunk-WKOSL2G6.js";
|
|
17
|
+
import "./chunk-KQPSKGUI.js";
|
|
18
|
+
export { UndetailedErrors } from "./chunk-R7WXIH5P.js";
|
|
19
|
+
export { de } from "./chunk-P5W67FQH.js";
|
|
20
|
+
export { en } from "./chunk-7TALAWYX.js";
|
|
21
|
+
export { keywordMeta, keywordPhrases } from "./chunk-C2JOL5M2.js";
|
|
22
|
+
import "./chunk-22RQSVV3.js";
|
|
23
|
+
import "./chunk-XLG66ZDF.js";
|
|
24
|
+
import "./chunk-NU73GNCX.js";
|
|
25
|
+
import "./chunk-BCYKO54Z.js";
|
|
26
|
+
import "./chunk-MTWKGAGO.js";
|
|
27
|
+
export { capitalizeString, emptyCollectionDefaults, epochDescriptions, isEpochString, isJsonString, isLuhnValid, isParsableDate, isParsableUrl, isRegexPattern, keepFormatted, lowercaseString, maxEpoch, normalizationsByForm, parseDate, parseEpoch, parseFormData, parseInteger, parseIsoDate, parseJson, parseNumeric, parseUrl, parsesFinite, raisedErrorPhrases, stringifyJson, trimString, uppercaseString, writeEpoch, writeIsoDate, writeUrl } from "./chunk-4HREHNIV.js";
|
|
28
|
+
export { registerPrecompiledUnits } from "./chunk-KXOC3JEX.js";
|
|
29
|
+
import "./chunk-CWSF57VM.js";
|
|
30
|
+
import "./chunk-UJJGG4VQ.js";
|
|
31
|
+
export { iso8601Matcher } from "./chunk-US6BWOGJ.js";
|
|
32
|
+
export { annotatingFallback } from "./chunk-KXOSUYRA.js";
|
|
33
|
+
import "./chunk-W2XOI5DY.js";
|
|
34
|
+
import "./chunk-TACLEIDM.js";
|
|
35
|
+
import "./chunk-K7SLP5D2.js";
|
|
36
|
+
import "./chunk-VYMXHSFR.js";
|
|
37
|
+
export { ArkErrors, ThrownErrors as TraversalError, byAncestorPath, byPath, describeCause, describeMissing, firstIssue, flatByPath, flatMessagesByPath, groupByPath, labelOf, messageIn, writeKeywordExpected } from "./chunk-PDLTEX6Z.js";
|
|
38
|
+
export { Traversal, printedActualOf } from "./chunk-3KBOPH3J.js";
|
|
39
|
+
import "./chunk-ZRYEHGSG.js";
|
|
40
|
+
export { isolate, listPattern } from "./chunk-3SH2BQ4T.js";
|
|
41
|
+
export { ParseError } from "./chunk-3HZC67MT.js";
|
|
42
|
+
import "./chunk-I2KLQ2HA.js";
|