arktype 3.0.0-beta.0 → 3.0.0-beta.1
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 +162 -10
- package/out/attributes.d.ts +4 -2
- package/out/checkers.d.ts +37 -2
- package/out/{chunk-Z4F45ZTE.js → chunk-2U2AWCI3.js} +3 -3
- package/out/{chunk-5NJWD7CO.js → chunk-5U2ZMDNI.js} +215 -140
- package/out/{chunk-KJ3C5GTL.js → chunk-DLWCO4RV.js} +1 -1
- package/out/{chunk-H4VRNKMB.js → chunk-E3DZXEZK.js} +1 -1
- package/out/{chunk-EJZJUYPI.js → chunk-EVCML554.js} +2 -2
- package/out/{chunk-KI2MOYNT.js → chunk-GPNK5353.js} +184 -32
- package/out/{chunk-LUXERINN.js → chunk-RAZ3TXOE.js} +40 -38
- package/out/chunk-SWOOCAHN.js +4 -0
- package/out/{chunk-ARTS74PX.js → chunk-UETB6YE2.js} +1 -1
- package/out/{chunk-JHDPSG5Y.js → chunk-UK5UGFOX.js} +6 -6
- package/out/{chunk-WEPQK3AY.js → chunk-VV6YDN2D.js} +441 -145
- package/out/codecs.js +5 -5
- package/out/config.d.ts +6 -3
- package/out/i18n.d.ts +1 -1
- package/out/i18n.js +1 -1
- package/out/index.d.ts +1 -1
- package/out/index.js +5 -5
- package/out/internal.d.ts +1 -0
- package/out/internal.js +11 -11
- package/out/island.js +2 -2
- package/out/islandDependency.js +11 -11
- package/out/keywords/functions.d.ts +24 -24
- package/out/keywords/keywords.d.ts +2 -2
- package/out/keywords/phrases.d.ts +23 -23
- package/out/keywords/ts.js +2 -2
- package/out/locale.d.ts +1 -1
- package/out/locales/de.js +1 -1
- package/out/locales/en.js +3 -3
- package/out/match.d.ts +5 -3
- package/out/mutatesInput.js +2 -2
- package/out/parser/definition.d.ts +54 -3
- package/out/parser/shift/operand/unenclosed.d.ts +3 -1
- package/out/parser/shift/operand/unresolvable.d.ts +68 -0
- package/out/parser/shift/operator/bounds.d.ts +4 -1
- package/out/runtime.d.ts +34 -25
- package/out/runtime.js +2 -2
- package/out/runtimeDevelopment.js +63 -4
- package/out/scope.d.ts +4 -4
- package/out/standalone/artifact.d.ts +4 -0
- package/out/standalone/baking.d.ts +8 -1
- package/out/standalone/sites.d.ts +6 -3
- package/out/standalone/values.d.ts +2 -0
- package/out/type.d.ts +42 -5
- package/package.json +49 -6
- package/skills/arktype/SKILL.md +211 -92
- package/skills/arktype/references/migrating.md +990 -255
- package/skills/arktype/references/precompile.md +8 -5
- package/out/chunk-EDEN5UWG.js +0 -4
package/out/codecs.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { codec } from "./chunk-
|
|
2
|
-
import "./chunk-
|
|
3
|
-
import "./chunk-
|
|
1
|
+
export { codec } from "./chunk-EVCML554.js";
|
|
2
|
+
import "./chunk-2U2AWCI3.js";
|
|
3
|
+
import "./chunk-GPNK5353.js";
|
|
4
4
|
import "./chunk-G45P2CLE.js";
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
import "./chunk-E3DZXEZK.js";
|
|
6
|
+
import "./chunk-UK5UGFOX.js";
|
|
7
7
|
import "./chunk-MLKGABMK.js";
|
package/out/config.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { arkKind, TypeMeta } from "@ark/schema";
|
|
2
2
|
import type { Ark } from "./keywords/keywords.ts";
|
|
3
3
|
import type { Locale } from "./locale.ts";
|
|
4
|
-
import { type ArkSchemaConfig } from "@ark/schema/config";
|
|
5
|
-
import type { anyOrNever } from "@ark/util";
|
|
4
|
+
import { type ArkSchemaConfig, type writeUnknownConfigOptionMessage } from "@ark/schema/config";
|
|
5
|
+
import type { anyOrNever, ErrorMessage } from "@ark/util";
|
|
6
6
|
export type KeywordConfig = {
|
|
7
7
|
[k in keyof Ark.flat as parseConfigurableFlatAlias<k, Ark.flat[k]>]?: TypeMeta.Collapsible;
|
|
8
8
|
};
|
|
@@ -15,7 +15,10 @@ export interface ArkConfig extends ArkSchemaConfig {
|
|
|
15
15
|
keywords?: KeywordConfig;
|
|
16
16
|
locale?: Locale | (() => Locale | undefined);
|
|
17
17
|
}
|
|
18
|
-
export declare const configure: <config extends ArkConfig>(config: config) => config;
|
|
18
|
+
export declare const configure: <config extends ArkConfig>(config: validateConfig<config>) => config;
|
|
19
|
+
type validateConfig<config> = {
|
|
20
|
+
[k in keyof config]: k extends keyof ArkConfig ? config[k] : ErrorMessage<writeUnknownConfigOptionMessage<k & string>>;
|
|
21
|
+
};
|
|
19
22
|
declare global {
|
|
20
23
|
export interface ArkEnv {
|
|
21
24
|
$(): Ark;
|
package/out/i18n.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { describeCause, describeMissing, groupByPath, labelOf, writeKeywordExpected, type PathGroup } from "@ark/schema/i18n";
|
|
1
|
+
export { describeCause, describeMissing, groupByPath, labelOf, printedActualOf, writeKeywordExpected, type PathGroup } from "@ark/schema/i18n";
|
|
2
2
|
export { isolate, listPattern, type ListPattern, type ListType } from "@ark/util";
|
package/out/i18n.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { describeCause, describeMissing, groupByPath, isolate, labelOf, listPattern, writeKeywordExpected } from "./chunk-
|
|
1
|
+
export { describeCause, describeMissing, groupByPath, isolate, labelOf, listPattern, printedActualOf, writeKeywordExpected } from "./chunk-SWOOCAHN.js";
|
|
2
2
|
import "./chunk-MLKGABMK.js";
|
package/out/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { annotatingFallback, ArkErrors, byAncestorPath, byPath, flatByPath, firstIssue,
|
|
1
|
+
export { annotatingFallback, ArkErrors, byAncestorPath, byPath, flatByPath, firstIssue, flatMessagesByPath, messageIn, Traversal, TraversalError, type ArkError, type ArkErrorCode, type ArkSchemaConfig, type ArkSchemaScopeConfig, type GenericAst, type JsonSchema, type ToJsonSchema } from "@ark/schema";
|
|
2
2
|
export { Hkt, inferred, ParseError, type Brand, type Json } from "@ark/util";
|
|
3
3
|
export { regex, type Regex } from "arkregex";
|
|
4
4
|
export type { Default, distill, Out, TerminallyInferredObject, To } from "./attributes.ts";
|
package/out/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { ArkErrors, Hkt, Module, ParseError, Traversal, TraversalError, annotatingFallback, byAncestorPath, byPath, firstIssue, flatByPath,
|
|
2
|
-
export { ark, declare, define, fn, generic, keywords, match, type } from "./chunk-
|
|
3
|
-
export { Generic, Type, scope } from "./chunk-
|
|
1
|
+
export { ArkErrors, Hkt, Module, ParseError, Traversal, TraversalError, annotatingFallback, byAncestorPath, byPath, firstIssue, flatByPath, flatMessagesByPath, inferred, messageIn, regex } from "./chunk-UETB6YE2.js";
|
|
2
|
+
export { ark, declare, define, fn, generic, keywords, match, type } from "./chunk-2U2AWCI3.js";
|
|
3
|
+
export { Generic, Type, scope } from "./chunk-GPNK5353.js";
|
|
4
4
|
import "./chunk-G45P2CLE.js";
|
|
5
5
|
export { configure } from "./chunk-NRIGTMPM.js";
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-E3DZXEZK.js";
|
|
7
|
+
import "./chunk-UK5UGFOX.js";
|
|
8
8
|
import "./chunk-MLKGABMK.js";
|
package/out/internal.d.ts
CHANGED
|
@@ -43,6 +43,7 @@ export * from "./parser/shift/operand/enclosed.ts";
|
|
|
43
43
|
export * from "./parser/shift/operand/genericArgs.ts";
|
|
44
44
|
export * from "./parser/shift/operand/operand.ts";
|
|
45
45
|
export * from "./parser/shift/operand/unenclosed.ts";
|
|
46
|
+
export * from "./parser/shift/operand/unresolvable.ts";
|
|
46
47
|
export * from "./parser/shift/operator/bounds.ts";
|
|
47
48
|
export * from "./parser/shift/operator/brand.ts";
|
|
48
49
|
export * from "./parser/shift/operator/default.ts";
|
package/out/internal.js
CHANGED
|
@@ -1,17 +1,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, 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-
|
|
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-VV6YDN2D.js";
|
|
2
|
+
import "./chunk-5U2ZMDNI.js";
|
|
3
3
|
export { registerPrecompiledUnits } from "./chunk-PRTMQCHS.js";
|
|
4
|
-
export { ArkErrors, BoundModule, Hkt, Module, ParseError, Traversal, TraversalError, annotatingFallback, byAncestorPath, byPath, firstIssue, flatByPath,
|
|
5
|
-
export { codec } from "./chunk-
|
|
6
|
-
export { NFC, NFD, NFKC, NFKD, TypedArray, ark, arkArray, arkBuiltins, arkFormData, arkPrototypes, builtinDefinitions, capitalize, creditCard, declare, define, epoch, fn, generic, integer, ip, iso8601Matcher, json, keywords, match, normalize, normalizedForms, number, prototypeDefinitions, regexStringNode, schema, string, stringDate, stringInteger, stringNumeric, tryParseDatePattern, type, url, uuid } from "./chunk-
|
|
7
|
-
export { $arkTypeRegistry, Generic, InternalChainedMatchParser, InternalMatchParser, InternalScope, InternalTypeParser, RecordHkt, RuntimeState, Scope, Type, arkTsGenerics, arkTsKeywords, chainedAtMessage, checkWrittenIntersection, comparatorStartChars, comparators, defaultablePostOptionalMessage, deferDefinition, deferUnion, deferUnits, deferredRecord, doubleAtMessage, emptyGenericParameterMessage, enclosingChar, enclosingLiteralTokens, enclosingQuote, enclosingRegexTokens, enclosingTokens, extractDateLiteralSource, finalizingLookaheads, 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, writeUnpairableComparatorMessage, writeUnresolvedFilterMessage, writeUnterminatedEnclosedMessage } from "./chunk-
|
|
4
|
+
export { ArkErrors, BoundModule, Hkt, Module, ParseError, Traversal, TraversalError, annotatingFallback, byAncestorPath, byPath, firstIssue, flatByPath, flatMessagesByPath, inferred, messageIn, regex } from "./chunk-UETB6YE2.js";
|
|
5
|
+
export { codec } from "./chunk-EVCML554.js";
|
|
6
|
+
export { NFC, NFD, NFKC, NFKD, TypedArray, ark, arkArray, arkBuiltins, arkFormData, arkPrototypes, builtinDefinitions, capitalize, creditCard, declare, define, epoch, fn, generic, integer, ip, iso8601Matcher, json, keywords, match, normalize, normalizedForms, number, prototypeDefinitions, regexStringNode, schema, string, stringDate, stringInteger, stringNumeric, tryParseDatePattern, type, url, uuid } from "./chunk-2U2AWCI3.js";
|
|
7
|
+
export { $arkTypeRegistry, Generic, InternalChainedMatchParser, InternalMatchParser, InternalScope, InternalTypeParser, RecordHkt, RuntimeState, Scope, Type, arkTsGenerics, arkTsKeywords, arrayIsNotGenericHint, 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, writeUnpairableComparatorMessage, writeUnresolvableHint, writeUnresolvedFilterMessage, writeUnterminatedEnclosedMessage } from "./chunk-GPNK5353.js";
|
|
8
8
|
export { InternalFnParser, InternalTypedFn, badFnReturnTypeMessage } from "./chunk-G45P2CLE.js";
|
|
9
9
|
export { configure } from "./chunk-NRIGTMPM.js";
|
|
10
10
|
export { UndetailedErrors } from "./chunk-TAHPKDNM.js";
|
|
11
|
-
export { de } from "./chunk-
|
|
11
|
+
export { de } from "./chunk-RAZ3TXOE.js";
|
|
12
12
|
export { en } from "./chunk-4CUA5XIP.js";
|
|
13
|
-
export { keywordMeta, keywordPhrases } from "./chunk-
|
|
14
|
-
export { describeCause, describeMissing, groupByPath, isolate, labelOf, listPattern, writeKeywordExpected } from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
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,
|
|
13
|
+
export { keywordMeta, keywordPhrases } from "./chunk-E3DZXEZK.js";
|
|
14
|
+
export { describeCause, describeMissing, groupByPath, isolate, labelOf, listPattern, printedActualOf, writeKeywordExpected } from "./chunk-SWOOCAHN.js";
|
|
15
|
+
import "./chunk-DLWCO4RV.js";
|
|
16
|
+
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, writeJsonSyntaxErrorMessage, writeUrl } from "./chunk-UK5UGFOX.js";
|
|
17
17
|
import "./chunk-MLKGABMK.js";
|
package/out/island.js
CHANGED
package/out/islandDependency.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
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, 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-
|
|
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-VV6YDN2D.js";
|
|
2
|
+
import "./chunk-5U2ZMDNI.js";
|
|
3
3
|
export { registerPrecompiledUnits } from "./chunk-PRTMQCHS.js";
|
|
4
4
|
import "./chunk-R5G57XC7.js";
|
|
5
|
-
export { ArkErrors, BoundModule, Hkt, Module, ParseError, Traversal, TraversalError, annotatingFallback, byAncestorPath, byPath, firstIssue, flatByPath,
|
|
6
|
-
export { codec } from "./chunk-
|
|
7
|
-
export { NFC, NFD, NFKC, NFKD, TypedArray, ark, arkArray, arkBuiltins, arkFormData, arkPrototypes, builtinDefinitions, capitalize, creditCard, declare, define, epoch, fn, generic, integer, ip, iso8601Matcher, json, keywords, match, normalize, normalizedForms, number, prototypeDefinitions, regexStringNode, schema, string, stringDate, stringInteger, stringNumeric, tryParseDatePattern, type, url, uuid } from "./chunk-
|
|
8
|
-
export { $arkTypeRegistry, Generic, InternalChainedMatchParser, InternalMatchParser, InternalScope, InternalTypeParser, RecordHkt, RuntimeState, Scope, Type, arkTsGenerics, arkTsKeywords, chainedAtMessage, checkWrittenIntersection, comparatorStartChars, comparators, defaultablePostOptionalMessage, deferDefinition, deferUnion, deferUnits, deferredRecord, doubleAtMessage, emptyGenericParameterMessage, enclosingChar, enclosingLiteralTokens, enclosingQuote, enclosingRegexTokens, enclosingTokens, extractDateLiteralSource, finalizingLookaheads, 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, writeUnpairableComparatorMessage, writeUnresolvedFilterMessage, writeUnterminatedEnclosedMessage } from "./chunk-
|
|
5
|
+
export { ArkErrors, BoundModule, Hkt, Module, ParseError, Traversal, TraversalError, annotatingFallback, byAncestorPath, byPath, firstIssue, flatByPath, flatMessagesByPath, inferred, messageIn, regex } from "./chunk-UETB6YE2.js";
|
|
6
|
+
export { codec } from "./chunk-EVCML554.js";
|
|
7
|
+
export { NFC, NFD, NFKC, NFKD, TypedArray, ark, arkArray, arkBuiltins, arkFormData, arkPrototypes, builtinDefinitions, capitalize, creditCard, declare, define, epoch, fn, generic, integer, ip, iso8601Matcher, json, keywords, match, normalize, normalizedForms, number, prototypeDefinitions, regexStringNode, schema, string, stringDate, stringInteger, stringNumeric, tryParseDatePattern, type, url, uuid } from "./chunk-2U2AWCI3.js";
|
|
8
|
+
export { $arkTypeRegistry, Generic, InternalChainedMatchParser, InternalMatchParser, InternalScope, InternalTypeParser, RecordHkt, RuntimeState, Scope, Type, arkTsGenerics, arkTsKeywords, arrayIsNotGenericHint, 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, writeUnpairableComparatorMessage, writeUnresolvableHint, writeUnresolvedFilterMessage, writeUnterminatedEnclosedMessage } from "./chunk-GPNK5353.js";
|
|
9
9
|
export { InternalFnParser, InternalTypedFn, badFnReturnTypeMessage } from "./chunk-G45P2CLE.js";
|
|
10
10
|
export { configure } from "./chunk-NRIGTMPM.js";
|
|
11
11
|
export { UndetailedErrors } from "./chunk-TAHPKDNM.js";
|
|
12
|
-
export { de } from "./chunk-
|
|
12
|
+
export { de } from "./chunk-RAZ3TXOE.js";
|
|
13
13
|
export { en } from "./chunk-4CUA5XIP.js";
|
|
14
|
-
export { keywordMeta, keywordPhrases } from "./chunk-
|
|
15
|
-
export { describeCause, describeMissing, groupByPath, isolate, labelOf, listPattern, writeKeywordExpected } from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
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,
|
|
14
|
+
export { keywordMeta, keywordPhrases } from "./chunk-E3DZXEZK.js";
|
|
15
|
+
export { describeCause, describeMissing, groupByPath, isolate, labelOf, listPattern, printedActualOf, writeKeywordExpected } from "./chunk-SWOOCAHN.js";
|
|
16
|
+
import "./chunk-DLWCO4RV.js";
|
|
17
|
+
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, writeJsonSyntaxErrorMessage, writeUrl } from "./chunk-UK5UGFOX.js";
|
|
18
18
|
import "./chunk-MLKGABMK.js";
|
|
@@ -26,7 +26,7 @@ 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
|
|
29
|
+
export declare const writeJsonSyntaxErrorMessage: (error: unknown) => string;
|
|
30
30
|
export declare const isJsonString: (s: string, ctx: Traversal) => boolean;
|
|
31
31
|
export declare const parseJson: (s: string, ctx: Traversal) => Json | ArkError;
|
|
32
32
|
export declare const stringifyJson: (data: Json) => string;
|
|
@@ -61,15 +61,15 @@ export declare const isRegexPattern: (s: string, ctx: Traversal) => boolean;
|
|
|
61
61
|
export declare const raisedErrorPhrases: {
|
|
62
62
|
readonly "string.json": {
|
|
63
63
|
readonly noun: "a JSON string";
|
|
64
|
-
readonly
|
|
64
|
+
readonly message: Locale.MessageWriter<import("@ark/schema").ArkErrorCode>;
|
|
65
65
|
};
|
|
66
66
|
readonly "string.json.parse": {
|
|
67
67
|
readonly noun: "a JSON string";
|
|
68
|
-
readonly
|
|
68
|
+
readonly message: Locale.MessageWriter<import("@ark/schema").ArkErrorCode>;
|
|
69
69
|
};
|
|
70
70
|
readonly "string.regex": {
|
|
71
71
|
readonly noun: "a regex pattern";
|
|
72
|
-
readonly
|
|
72
|
+
readonly message: (e: (import("@ark/util").omit<({
|
|
73
73
|
discriminantKind: "domain";
|
|
74
74
|
cases: readonly import("@ark/schema").DomainCase[];
|
|
75
75
|
onKey: boolean;
|
|
@@ -85,7 +85,7 @@ export declare const raisedErrorPhrases: {
|
|
|
85
85
|
data: unknown;
|
|
86
86
|
code: "discriminant";
|
|
87
87
|
description?: string;
|
|
88
|
-
}) & import("@ark/schema").WrittenErrorContext<"discriminant">, "message"
|
|
88
|
+
}) & import("@ark/schema").WrittenErrorContext<"discriminant">, "message"> & {
|
|
89
89
|
toString(never: never): string;
|
|
90
90
|
toLocaleString(never: never): string;
|
|
91
91
|
}) | (import("@ark/util").omit<{
|
|
@@ -94,21 +94,21 @@ export declare const raisedErrorPhrases: {
|
|
|
94
94
|
numberAllowsInfinity?: boolean;
|
|
95
95
|
code: "domain";
|
|
96
96
|
description?: string;
|
|
97
|
-
} & import("@ark/schema").WrittenErrorContext<"domain">, "message"
|
|
97
|
+
} & import("@ark/schema").WrittenErrorContext<"domain">, "message"> & {
|
|
98
98
|
toString(never: never): string;
|
|
99
99
|
toLocaleString(never: never): string;
|
|
100
100
|
}) | (import("@ark/util").omit<{
|
|
101
101
|
unit: unknown;
|
|
102
102
|
code: "unit";
|
|
103
103
|
description?: string;
|
|
104
|
-
} & import("@ark/schema").WrittenErrorContext<"unit">, "message"
|
|
104
|
+
} & import("@ark/schema").WrittenErrorContext<"unit">, "message"> & {
|
|
105
105
|
toString(never: never): string;
|
|
106
106
|
toLocaleString(never: never): string;
|
|
107
107
|
}) | (import("@ark/util").omit<{
|
|
108
108
|
errors: readonly ArkError[];
|
|
109
109
|
code: "union";
|
|
110
110
|
description?: string;
|
|
111
|
-
} & import("@ark/schema").WrittenErrorContext<"union">, "message"
|
|
111
|
+
} & import("@ark/schema").WrittenErrorContext<"union">, "message"> & {
|
|
112
112
|
toString(never: never): string;
|
|
113
113
|
toLocaleString(never: never): string;
|
|
114
114
|
}) | (import("@ark/util").omit<{
|
|
@@ -117,42 +117,42 @@ export declare const raisedErrorPhrases: {
|
|
|
117
117
|
valueMeta: ArkEnv.meta;
|
|
118
118
|
code: "required";
|
|
119
119
|
description?: string;
|
|
120
|
-
} & import("@ark/schema").WrittenErrorContext<"required">, "message"
|
|
120
|
+
} & import("@ark/schema").WrittenErrorContext<"required">, "message"> & {
|
|
121
121
|
toString(never: never): string;
|
|
122
122
|
toLocaleString(never: never): string;
|
|
123
123
|
}) | (import("@ark/util").omit<{
|
|
124
124
|
rule: number;
|
|
125
125
|
code: "exactLength";
|
|
126
126
|
description?: string;
|
|
127
|
-
} & import("@ark/schema").WrittenErrorContext<"exactLength">, "message"
|
|
127
|
+
} & import("@ark/schema").WrittenErrorContext<"exactLength">, "message"> & {
|
|
128
128
|
toString(never: never): string;
|
|
129
129
|
toLocaleString(never: never): string;
|
|
130
130
|
}) | (import("@ark/util").omit<{
|
|
131
131
|
rule: number;
|
|
132
132
|
code: "maxLength";
|
|
133
133
|
description?: string;
|
|
134
|
-
} & import("@ark/schema").WrittenErrorContext<"maxLength">, "message"
|
|
134
|
+
} & import("@ark/schema").WrittenErrorContext<"maxLength">, "message"> & {
|
|
135
135
|
toString(never: never): string;
|
|
136
136
|
toLocaleString(never: never): string;
|
|
137
137
|
}) | (import("@ark/util").omit<{
|
|
138
138
|
rule: number;
|
|
139
139
|
code: "minLength";
|
|
140
140
|
description?: string;
|
|
141
|
-
} & import("@ark/schema").WrittenErrorContext<"minLength">, "message"
|
|
141
|
+
} & import("@ark/schema").WrittenErrorContext<"minLength">, "message"> & {
|
|
142
142
|
toString(never: never): string;
|
|
143
143
|
toLocaleString(never: never): string;
|
|
144
144
|
}) | (import("@ark/util").omit<{
|
|
145
145
|
rule: Date;
|
|
146
146
|
code: "after";
|
|
147
147
|
description?: string;
|
|
148
|
-
} & import("@ark/schema").WrittenErrorContext<"after">, "message"
|
|
148
|
+
} & import("@ark/schema").WrittenErrorContext<"after">, "message"> & {
|
|
149
149
|
toString(never: never): string;
|
|
150
150
|
toLocaleString(never: never): string;
|
|
151
151
|
}) | (import("@ark/util").omit<{
|
|
152
152
|
rule: Date;
|
|
153
153
|
code: "before";
|
|
154
154
|
description?: string;
|
|
155
|
-
} & import("@ark/schema").WrittenErrorContext<"before">, "message"
|
|
155
|
+
} & import("@ark/schema").WrittenErrorContext<"before">, "message"> & {
|
|
156
156
|
toString(never: never): string;
|
|
157
157
|
toLocaleString(never: never): string;
|
|
158
158
|
}) | (import("@ark/util").omit<{
|
|
@@ -160,7 +160,7 @@ export declare const raisedErrorPhrases: {
|
|
|
160
160
|
exclusive?: true;
|
|
161
161
|
code: "max";
|
|
162
162
|
description?: string;
|
|
163
|
-
} & import("@ark/schema").WrittenErrorContext<"max">, "message"
|
|
163
|
+
} & import("@ark/schema").WrittenErrorContext<"max">, "message"> & {
|
|
164
164
|
toString(never: never): string;
|
|
165
165
|
toLocaleString(never: never): string;
|
|
166
166
|
}) | (import("@ark/util").omit<{
|
|
@@ -168,21 +168,21 @@ export declare const raisedErrorPhrases: {
|
|
|
168
168
|
exclusive?: true;
|
|
169
169
|
code: "min";
|
|
170
170
|
description?: string;
|
|
171
|
-
} & import("@ark/schema").WrittenErrorContext<"min">, "message"
|
|
171
|
+
} & import("@ark/schema").WrittenErrorContext<"min">, "message"> & {
|
|
172
172
|
toString(never: never): string;
|
|
173
173
|
toLocaleString(never: never): string;
|
|
174
174
|
}) | (import("@ark/util").omit<{
|
|
175
175
|
rule: import("@ark/schema").LimitValue;
|
|
176
176
|
code: "notEqual";
|
|
177
177
|
description?: string;
|
|
178
|
-
} & import("@ark/schema").WrittenErrorContext<"notEqual">, "message"
|
|
178
|
+
} & import("@ark/schema").WrittenErrorContext<"notEqual">, "message"> & {
|
|
179
179
|
toString(never: never): string;
|
|
180
180
|
toLocaleString(never: never): string;
|
|
181
181
|
}) | (import("@ark/util").omit<{
|
|
182
182
|
rule: number;
|
|
183
183
|
code: "notEqualLength";
|
|
184
184
|
description?: string;
|
|
185
|
-
} & import("@ark/schema").WrittenErrorContext<"notEqualLength">, "message"
|
|
185
|
+
} & import("@ark/schema").WrittenErrorContext<"notEqualLength">, "message"> & {
|
|
186
186
|
toString(never: never): string;
|
|
187
187
|
toLocaleString(never: never): string;
|
|
188
188
|
}) | (import("@ark/util").omit<{
|
|
@@ -190,7 +190,7 @@ export declare const raisedErrorPhrases: {
|
|
|
190
190
|
description?: string;
|
|
191
191
|
proto: import("@ark/util").Constructor;
|
|
192
192
|
dateAllowsInvalid?: boolean;
|
|
193
|
-
} & import("@ark/schema").WrittenErrorContext<"proto">, "message"
|
|
193
|
+
} & import("@ark/schema").WrittenErrorContext<"proto">, "message"> & {
|
|
194
194
|
toString(never: never): string;
|
|
195
195
|
toLocaleString(never: never): string;
|
|
196
196
|
}) | (import("@ark/util").omit<{
|
|
@@ -212,7 +212,7 @@ export declare const raisedErrorPhrases: {
|
|
|
212
212
|
notEqual?: readonly import("@ark/schema").NotEqualNode[];
|
|
213
213
|
notEqualLength?: readonly import("@ark/schema").NotEqualLengthNode[];
|
|
214
214
|
pattern?: readonly import("@ark/schema").PatternNode[];
|
|
215
|
-
} & import("@ark/schema").WrittenErrorContext<"intersection">, "message"
|
|
215
|
+
} & import("@ark/schema").WrittenErrorContext<"intersection">, "message"> & {
|
|
216
216
|
toString(never: never): string;
|
|
217
217
|
toLocaleString(never: never): string;
|
|
218
218
|
}) | (import("@ark/util").omit<{
|
|
@@ -221,14 +221,14 @@ export declare const raisedErrorPhrases: {
|
|
|
221
221
|
predicate?: import("@ark/schema").Predicate;
|
|
222
222
|
morph?: import("@ark/schema").Morph;
|
|
223
223
|
cause?: unknown;
|
|
224
|
-
} & import("@ark/schema").WrittenErrorContext<"predicate">, "message"
|
|
224
|
+
} & import("@ark/schema").WrittenErrorContext<"predicate">, "message"> & {
|
|
225
225
|
toString(never: never): string;
|
|
226
226
|
toLocaleString(never: never): string;
|
|
227
227
|
}) | (import("@ark/util").omit<{
|
|
228
228
|
code: "divisor";
|
|
229
229
|
description?: string;
|
|
230
230
|
rule: number;
|
|
231
|
-
} & import("@ark/schema").WrittenErrorContext<"divisor">, "message"
|
|
231
|
+
} & import("@ark/schema").WrittenErrorContext<"divisor">, "message"> & {
|
|
232
232
|
toString(never: never): string;
|
|
233
233
|
toLocaleString(never: never): string;
|
|
234
234
|
}) | (import("@ark/util").omit<{
|
|
@@ -236,14 +236,14 @@ export declare const raisedErrorPhrases: {
|
|
|
236
236
|
description?: string;
|
|
237
237
|
rule: string;
|
|
238
238
|
flags?: string;
|
|
239
|
-
} & import("@ark/schema").WrittenErrorContext<"pattern">, "message"
|
|
239
|
+
} & import("@ark/schema").WrittenErrorContext<"pattern">, "message"> & {
|
|
240
240
|
toString(never: never): string;
|
|
241
241
|
toLocaleString(never: never): string;
|
|
242
242
|
}) | (import("@ark/util").omit<{
|
|
243
243
|
data: unknown;
|
|
244
244
|
code: "undeclared";
|
|
245
245
|
description?: string;
|
|
246
|
-
} & import("@ark/schema").WrittenErrorContext<"undeclared">, "message"
|
|
246
|
+
} & import("@ark/schema").WrittenErrorContext<"undeclared">, "message"> & {
|
|
247
247
|
toString(never: never): string;
|
|
248
248
|
toLocaleString(never: never): string;
|
|
249
249
|
}), locale: Locale<string>) => string;
|
|
@@ -6,7 +6,7 @@ import type { FnParser } from "../fn.ts";
|
|
|
6
6
|
import type { GenericParser } from "../generic.ts";
|
|
7
7
|
import type { MatchParser } from "../match.ts";
|
|
8
8
|
import type { BoundModule, Module } from "../module.ts";
|
|
9
|
-
import type { inferDefinition, instantiateDefinition,
|
|
9
|
+
import type { inferDefinition, instantiateDefinition, validateDefinitionArgument } from "../parser/definition.ts";
|
|
10
10
|
import { type bindThis, type Scope } from "../scope.ts";
|
|
11
11
|
import type { DefinitionParser, SchemaParser, Type, TypeParser } from "../type.ts";
|
|
12
12
|
import type { BaseType } from "../variants/base.ts";
|
|
@@ -45,7 +45,7 @@ export declare namespace type {
|
|
|
45
45
|
[inferred]?: to;
|
|
46
46
|
}
|
|
47
47
|
type errors = ArkErrors;
|
|
48
|
-
type validate<def, $ = {}, args = bindThis<def>> =
|
|
48
|
+
type validate<def, $ = {}, args = bindThis<def>> = validateDefinitionArgument<def, $, args>;
|
|
49
49
|
type instantiate<def, $ = {}, args = bindThis<def>> = instantiateDefinition<def, $, args>;
|
|
50
50
|
type infer<def, $ = {}, args = bindThis<def>> = inferDefinition<def, $, args>;
|
|
51
51
|
namespace infer {
|
|
@@ -28,11 +28,11 @@ export declare const keywordPhrases: {
|
|
|
28
28
|
readonly "string.ip.v6": "an IPv6 address";
|
|
29
29
|
readonly "string.json": {
|
|
30
30
|
readonly noun: "a JSON string";
|
|
31
|
-
readonly
|
|
31
|
+
readonly message: Locale.MessageWriter<import("@ark/schema").ArkErrorCode>;
|
|
32
32
|
};
|
|
33
33
|
readonly "string.json.parse": {
|
|
34
34
|
readonly noun: "a JSON string";
|
|
35
|
-
readonly
|
|
35
|
+
readonly message: Locale.MessageWriter<import("@ark/schema").ArkErrorCode>;
|
|
36
36
|
};
|
|
37
37
|
readonly "string.lower.preformatted": "lowercase";
|
|
38
38
|
readonly "string.normalize.NFC.preformatted": "NFC-normalized unicode";
|
|
@@ -43,7 +43,7 @@ export declare const keywordPhrases: {
|
|
|
43
43
|
readonly "string.numeric.parse": "finite";
|
|
44
44
|
readonly "string.regex": {
|
|
45
45
|
readonly noun: "a regex pattern";
|
|
46
|
-
readonly
|
|
46
|
+
readonly message: (e: (import("@ark/util").omit<({
|
|
47
47
|
discriminantKind: "domain";
|
|
48
48
|
cases: readonly import("@ark/schema").DomainCase[];
|
|
49
49
|
onKey: boolean;
|
|
@@ -59,7 +59,7 @@ export declare const keywordPhrases: {
|
|
|
59
59
|
data: unknown;
|
|
60
60
|
code: "discriminant";
|
|
61
61
|
description?: string;
|
|
62
|
-
}) & import("@ark/schema").WrittenErrorContext<"discriminant">, "message"
|
|
62
|
+
}) & import("@ark/schema").WrittenErrorContext<"discriminant">, "message"> & {
|
|
63
63
|
toString(never: never): string;
|
|
64
64
|
toLocaleString(never: never): string;
|
|
65
65
|
}) | (import("@ark/util").omit<{
|
|
@@ -68,21 +68,21 @@ export declare const keywordPhrases: {
|
|
|
68
68
|
numberAllowsInfinity?: boolean;
|
|
69
69
|
code: "domain";
|
|
70
70
|
description?: string;
|
|
71
|
-
} & import("@ark/schema").WrittenErrorContext<"domain">, "message"
|
|
71
|
+
} & import("@ark/schema").WrittenErrorContext<"domain">, "message"> & {
|
|
72
72
|
toString(never: never): string;
|
|
73
73
|
toLocaleString(never: never): string;
|
|
74
74
|
}) | (import("@ark/util").omit<{
|
|
75
75
|
unit: unknown;
|
|
76
76
|
code: "unit";
|
|
77
77
|
description?: string;
|
|
78
|
-
} & import("@ark/schema").WrittenErrorContext<"unit">, "message"
|
|
78
|
+
} & import("@ark/schema").WrittenErrorContext<"unit">, "message"> & {
|
|
79
79
|
toString(never: never): string;
|
|
80
80
|
toLocaleString(never: never): string;
|
|
81
81
|
}) | (import("@ark/util").omit<{
|
|
82
82
|
errors: readonly import("@ark/schema").ArkError[];
|
|
83
83
|
code: "union";
|
|
84
84
|
description?: string;
|
|
85
|
-
} & import("@ark/schema").WrittenErrorContext<"union">, "message"
|
|
85
|
+
} & import("@ark/schema").WrittenErrorContext<"union">, "message"> & {
|
|
86
86
|
toString(never: never): string;
|
|
87
87
|
toLocaleString(never: never): string;
|
|
88
88
|
}) | (import("@ark/util").omit<{
|
|
@@ -91,42 +91,42 @@ export declare const keywordPhrases: {
|
|
|
91
91
|
valueMeta: ArkEnv.meta;
|
|
92
92
|
code: "required";
|
|
93
93
|
description?: string;
|
|
94
|
-
} & import("@ark/schema").WrittenErrorContext<"required">, "message"
|
|
94
|
+
} & import("@ark/schema").WrittenErrorContext<"required">, "message"> & {
|
|
95
95
|
toString(never: never): string;
|
|
96
96
|
toLocaleString(never: never): string;
|
|
97
97
|
}) | (import("@ark/util").omit<{
|
|
98
98
|
rule: number;
|
|
99
99
|
code: "exactLength";
|
|
100
100
|
description?: string;
|
|
101
|
-
} & import("@ark/schema").WrittenErrorContext<"exactLength">, "message"
|
|
101
|
+
} & import("@ark/schema").WrittenErrorContext<"exactLength">, "message"> & {
|
|
102
102
|
toString(never: never): string;
|
|
103
103
|
toLocaleString(never: never): string;
|
|
104
104
|
}) | (import("@ark/util").omit<{
|
|
105
105
|
rule: number;
|
|
106
106
|
code: "maxLength";
|
|
107
107
|
description?: string;
|
|
108
|
-
} & import("@ark/schema").WrittenErrorContext<"maxLength">, "message"
|
|
108
|
+
} & import("@ark/schema").WrittenErrorContext<"maxLength">, "message"> & {
|
|
109
109
|
toString(never: never): string;
|
|
110
110
|
toLocaleString(never: never): string;
|
|
111
111
|
}) | (import("@ark/util").omit<{
|
|
112
112
|
rule: number;
|
|
113
113
|
code: "minLength";
|
|
114
114
|
description?: string;
|
|
115
|
-
} & import("@ark/schema").WrittenErrorContext<"minLength">, "message"
|
|
115
|
+
} & import("@ark/schema").WrittenErrorContext<"minLength">, "message"> & {
|
|
116
116
|
toString(never: never): string;
|
|
117
117
|
toLocaleString(never: never): string;
|
|
118
118
|
}) | (import("@ark/util").omit<{
|
|
119
119
|
rule: Date;
|
|
120
120
|
code: "after";
|
|
121
121
|
description?: string;
|
|
122
|
-
} & import("@ark/schema").WrittenErrorContext<"after">, "message"
|
|
122
|
+
} & import("@ark/schema").WrittenErrorContext<"after">, "message"> & {
|
|
123
123
|
toString(never: never): string;
|
|
124
124
|
toLocaleString(never: never): string;
|
|
125
125
|
}) | (import("@ark/util").omit<{
|
|
126
126
|
rule: Date;
|
|
127
127
|
code: "before";
|
|
128
128
|
description?: string;
|
|
129
|
-
} & import("@ark/schema").WrittenErrorContext<"before">, "message"
|
|
129
|
+
} & import("@ark/schema").WrittenErrorContext<"before">, "message"> & {
|
|
130
130
|
toString(never: never): string;
|
|
131
131
|
toLocaleString(never: never): string;
|
|
132
132
|
}) | (import("@ark/util").omit<{
|
|
@@ -134,7 +134,7 @@ export declare const keywordPhrases: {
|
|
|
134
134
|
exclusive?: true;
|
|
135
135
|
code: "max";
|
|
136
136
|
description?: string;
|
|
137
|
-
} & import("@ark/schema").WrittenErrorContext<"max">, "message"
|
|
137
|
+
} & import("@ark/schema").WrittenErrorContext<"max">, "message"> & {
|
|
138
138
|
toString(never: never): string;
|
|
139
139
|
toLocaleString(never: never): string;
|
|
140
140
|
}) | (import("@ark/util").omit<{
|
|
@@ -142,21 +142,21 @@ export declare const keywordPhrases: {
|
|
|
142
142
|
exclusive?: true;
|
|
143
143
|
code: "min";
|
|
144
144
|
description?: string;
|
|
145
|
-
} & import("@ark/schema").WrittenErrorContext<"min">, "message"
|
|
145
|
+
} & import("@ark/schema").WrittenErrorContext<"min">, "message"> & {
|
|
146
146
|
toString(never: never): string;
|
|
147
147
|
toLocaleString(never: never): string;
|
|
148
148
|
}) | (import("@ark/util").omit<{
|
|
149
149
|
rule: import("@ark/schema").LimitValue;
|
|
150
150
|
code: "notEqual";
|
|
151
151
|
description?: string;
|
|
152
|
-
} & import("@ark/schema").WrittenErrorContext<"notEqual">, "message"
|
|
152
|
+
} & import("@ark/schema").WrittenErrorContext<"notEqual">, "message"> & {
|
|
153
153
|
toString(never: never): string;
|
|
154
154
|
toLocaleString(never: never): string;
|
|
155
155
|
}) | (import("@ark/util").omit<{
|
|
156
156
|
rule: number;
|
|
157
157
|
code: "notEqualLength";
|
|
158
158
|
description?: string;
|
|
159
|
-
} & import("@ark/schema").WrittenErrorContext<"notEqualLength">, "message"
|
|
159
|
+
} & import("@ark/schema").WrittenErrorContext<"notEqualLength">, "message"> & {
|
|
160
160
|
toString(never: never): string;
|
|
161
161
|
toLocaleString(never: never): string;
|
|
162
162
|
}) | (import("@ark/util").omit<{
|
|
@@ -164,7 +164,7 @@ export declare const keywordPhrases: {
|
|
|
164
164
|
description?: string;
|
|
165
165
|
proto: import("@ark/util").Constructor;
|
|
166
166
|
dateAllowsInvalid?: boolean;
|
|
167
|
-
} & import("@ark/schema").WrittenErrorContext<"proto">, "message"
|
|
167
|
+
} & import("@ark/schema").WrittenErrorContext<"proto">, "message"> & {
|
|
168
168
|
toString(never: never): string;
|
|
169
169
|
toLocaleString(never: never): string;
|
|
170
170
|
}) | (import("@ark/util").omit<{
|
|
@@ -186,7 +186,7 @@ export declare const keywordPhrases: {
|
|
|
186
186
|
notEqual?: readonly import("@ark/schema").NotEqualNode[];
|
|
187
187
|
notEqualLength?: readonly import("@ark/schema").NotEqualLengthNode[];
|
|
188
188
|
pattern?: readonly import("@ark/schema").PatternNode[];
|
|
189
|
-
} & import("@ark/schema").WrittenErrorContext<"intersection">, "message"
|
|
189
|
+
} & import("@ark/schema").WrittenErrorContext<"intersection">, "message"> & {
|
|
190
190
|
toString(never: never): string;
|
|
191
191
|
toLocaleString(never: never): string;
|
|
192
192
|
}) | (import("@ark/util").omit<{
|
|
@@ -195,14 +195,14 @@ export declare const keywordPhrases: {
|
|
|
195
195
|
predicate?: import("@ark/schema").Predicate;
|
|
196
196
|
morph?: import("@ark/schema").Morph;
|
|
197
197
|
cause?: unknown;
|
|
198
|
-
} & import("@ark/schema").WrittenErrorContext<"predicate">, "message"
|
|
198
|
+
} & import("@ark/schema").WrittenErrorContext<"predicate">, "message"> & {
|
|
199
199
|
toString(never: never): string;
|
|
200
200
|
toLocaleString(never: never): string;
|
|
201
201
|
}) | (import("@ark/util").omit<{
|
|
202
202
|
code: "divisor";
|
|
203
203
|
description?: string;
|
|
204
204
|
rule: number;
|
|
205
|
-
} & import("@ark/schema").WrittenErrorContext<"divisor">, "message"
|
|
205
|
+
} & import("@ark/schema").WrittenErrorContext<"divisor">, "message"> & {
|
|
206
206
|
toString(never: never): string;
|
|
207
207
|
toLocaleString(never: never): string;
|
|
208
208
|
}) | (import("@ark/util").omit<{
|
|
@@ -210,14 +210,14 @@ export declare const keywordPhrases: {
|
|
|
210
210
|
description?: string;
|
|
211
211
|
rule: string;
|
|
212
212
|
flags?: string;
|
|
213
|
-
} & import("@ark/schema").WrittenErrorContext<"pattern">, "message"
|
|
213
|
+
} & import("@ark/schema").WrittenErrorContext<"pattern">, "message"> & {
|
|
214
214
|
toString(never: never): string;
|
|
215
215
|
toLocaleString(never: never): string;
|
|
216
216
|
}) | (import("@ark/util").omit<{
|
|
217
217
|
data: unknown;
|
|
218
218
|
code: "undeclared";
|
|
219
219
|
description?: string;
|
|
220
|
-
} & import("@ark/schema").WrittenErrorContext<"undeclared">, "message"
|
|
220
|
+
} & import("@ark/schema").WrittenErrorContext<"undeclared">, "message"> & {
|
|
221
221
|
toString(never: never): string;
|
|
222
222
|
toLocaleString(never: never): string;
|
|
223
223
|
}), locale: Locale<string>) => string;
|
package/out/keywords/ts.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { RecordHkt, arkTsGenerics, arkTsKeywords, json, object, tsGenericDefinitions, tsKeywordDefinitions, unknown, writeUnresolvedFilterMessage } from "../chunk-
|
|
1
|
+
export { RecordHkt, arkTsGenerics, arkTsKeywords, json, object, tsGenericDefinitions, tsKeywordDefinitions, unknown, writeUnresolvedFilterMessage } from "../chunk-GPNK5353.js";
|
|
2
2
|
import "../chunk-G45P2CLE.js";
|
|
3
|
-
import "../chunk-
|
|
3
|
+
import "../chunk-UK5UGFOX.js";
|
|
4
4
|
import "../chunk-MLKGABMK.js";
|
package/out/locale.d.ts
CHANGED
|
@@ -10,8 +10,8 @@ export declare namespace Locale {
|
|
|
10
10
|
type ExpectedContext<code extends ArkErrorCode = ArkErrorCode> = BaseLocale.ExpectedContext<code>;
|
|
11
11
|
type ExpectedWriter<code extends ArkErrorCode = ArkErrorCode> = BaseLocale.ExpectedWriter<code>;
|
|
12
12
|
type ActualWriter<code extends ArkErrorCode = ArkErrorCode> = BaseLocale.ActualWriter<code>;
|
|
13
|
-
type ProblemWriter<code extends ArkErrorCode = ArkErrorCode> = BaseLocale.ProblemWriter<code>;
|
|
14
13
|
type MessageWriter<code extends ArkErrorCode = ArkErrorCode> = BaseLocale.MessageWriter<code>;
|
|
14
|
+
type LineWriter = BaseLocale.LineWriter;
|
|
15
15
|
type KeywordPhrase = BaseLocale.KeywordPhrase;
|
|
16
16
|
type KeywordWriters = BaseLocale.KeywordWriters;
|
|
17
17
|
type KeywordExpectedWriter = BaseLocale.KeywordExpectedWriter;
|