arktype 2.2.10 → 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 +181 -15
- package/out/attributes.d.ts +50 -14
- package/out/checkers.d.ts +172 -0
- package/out/chunk-2U2AWCI3.js +626 -0
- package/out/chunk-4CUA5XIP.js +7 -0
- package/out/chunk-5U2ZMDNI.js +1566 -0
- package/out/chunk-DLWCO4RV.js +18 -0
- package/out/chunk-E3DZXEZK.js +72 -0
- package/out/chunk-EVCML554.js +47 -0
- package/out/chunk-G45P2CLE.js +63 -0
- package/out/chunk-GPNK5353.js +2529 -0
- package/out/chunk-MLKGABMK.js +9 -0
- package/out/chunk-NRIGTMPM.js +7 -0
- package/out/chunk-PRTMQCHS.js +3 -0
- package/out/chunk-R5G57XC7.js +7 -0
- package/out/chunk-RAZ3TXOE.js +313 -0
- package/out/chunk-SWOOCAHN.js +4 -0
- package/out/chunk-TAHPKDNM.js +3 -0
- package/out/chunk-UETB6YE2.js +14 -0
- package/out/chunk-UK5UGFOX.js +254 -0
- package/out/chunk-VV6YDN2D.js +6118 -0
- package/out/codecs.d.ts +21 -0
- package/out/codecs.js +7 -0
- package/out/config.d.ts +8 -3
- package/out/config.js +2 -3
- package/out/declare.d.ts +17 -3
- package/out/deferred.d.ts +10 -0
- package/out/errors.d.ts +1 -0
- package/out/errors.js +2 -0
- package/out/fn.d.ts +1 -1
- package/out/generic.d.ts +3 -3
- package/out/i18n.d.ts +2 -0
- package/out/i18n.js +2 -0
- package/out/index.d.ts +5 -4
- package/out/index.js +8 -9
- package/out/internal.d.ts +70 -0
- package/out/internal.js +17 -0
- package/out/island.d.ts +2 -0
- package/out/island.js +6 -0
- package/out/islandDependency.d.ts +2 -0
- package/out/islandDependency.js +18 -0
- package/out/keywords/Array.d.ts +2 -2
- package/out/keywords/builtins.d.ts +5 -3
- package/out/keywords/constructors.d.ts +9 -1
- package/out/keywords/functions.d.ts +254 -0
- package/out/keywords/keywords.d.ts +8 -9
- package/out/keywords/number.d.ts +2 -8
- package/out/keywords/phrases.d.ts +245 -0
- package/out/keywords/string.d.ts +14 -113
- package/out/keywords/ts.d.ts +35 -33
- package/out/keywords/ts.js +4 -82
- package/out/locale.d.ts +19 -0
- package/out/locales/de.d.ts +2 -0
- package/out/locales/de.js +2 -0
- package/out/locales/en.d.ts +4 -0
- package/out/locales/en.js +5 -0
- package/out/match.d.ts +6 -6
- package/out/module.d.ts +1 -1
- package/out/mutatesInput.js +3 -0
- package/out/parser/ast/generic.d.ts +6 -3
- package/out/parser/ast/infer.d.ts +1 -1
- package/out/parser/ast/validate.d.ts +11 -6
- package/out/parser/definition.d.ts +68 -7
- package/out/parser/objectLiteral.d.ts +40 -12
- package/out/parser/property.d.ts +3 -5
- package/out/parser/reduce/dynamic.d.ts +16 -7
- package/out/parser/reduce/shared.d.ts +4 -0
- package/out/parser/reduce/static.d.ts +13 -13
- package/out/parser/shift/operand/date.d.ts +0 -5
- package/out/parser/shift/operand/operand.d.ts +2 -1
- package/out/parser/shift/operand/unenclosed.d.ts +9 -6
- package/out/parser/shift/operand/unresolvable.d.ts +68 -0
- package/out/parser/shift/operator/bounds.d.ts +9 -4
- package/out/parser/shift/operator/brand.d.ts +2 -2
- package/out/parser/shift/operator/default.d.ts +2 -2
- package/out/parser/shift/operator/divisor.d.ts +2 -2
- package/out/parser/shift/operator/operator.d.ts +1 -1
- package/out/parser/shift/tokens.d.ts +9 -2
- package/out/parser/string.d.ts +61 -7
- package/out/parser/tupleExpressions.d.ts +7 -3
- package/out/precompiled.d.ts +1 -0
- package/out/precompiled.js +2 -0
- package/out/runtime.d.ts +181 -0
- package/out/runtime.js +4 -0
- package/out/runtimeDevelopment.d.ts +1 -0
- package/out/runtimeDevelopment.js +133 -0
- package/out/runtimeExports.d.ts +1 -0
- package/out/scope.d.ts +40 -11
- package/out/standalone/artifact.d.ts +265 -0
- package/out/standalone/baking.d.ts +201 -0
- package/out/standalone/combinators.d.ts +13 -0
- package/out/standalone/compilers.d.ts +23 -0
- package/out/standalone/creators.d.ts +41 -0
- package/out/standalone/fallbacks.d.ts +48 -0
- package/out/standalone/keys.d.ts +31 -0
- package/out/standalone/modules.d.ts +26 -0
- package/out/standalone/sites.d.ts +52 -0
- package/out/standalone/units.d.ts +31 -0
- package/out/standalone/values.d.ts +60 -0
- package/out/standalone.d.ts +16 -0
- package/out/type.d.ts +45 -6
- package/out/variants/array.d.ts +1 -1
- package/out/variants/base.d.ts +47 -27
- package/out/variants/date.d.ts +1 -1
- package/out/variants/instantiate.d.ts +4 -2
- package/out/variants/number.d.ts +1 -1
- package/out/variants/object.d.ts +17 -12
- package/out/variants/string.d.ts +1 -1
- package/package.json +169 -8
- package/skills/arktype/SKILL.md +278 -43
- package/skills/arktype/references/migrating.md +1296 -0
- package/skills/arktype/references/precompile.md +191 -0
- package/out/attributes.js +0 -3
- package/out/fn.js +0 -58
- package/out/generic.js +0 -37
- package/out/keywords/Array.js +0 -21
- package/out/keywords/FormData.js +0 -40
- package/out/keywords/TypedArray.js +0 -16
- package/out/keywords/builtins.js +0 -11
- package/out/keywords/constructors.js +0 -16
- package/out/keywords/keywords.js +0 -48
- package/out/keywords/number.js +0 -49
- package/out/keywords/string.js +0 -467
- package/out/match.js +0 -95
- package/out/module.js +0 -3
- package/out/nary.js +0 -1
- package/out/parser/ast/bounds.js +0 -1
- package/out/parser/ast/default.js +0 -1
- package/out/parser/ast/divisor.js +0 -1
- package/out/parser/ast/generic.js +0 -1
- package/out/parser/ast/infer.js +0 -1
- package/out/parser/ast/keyof.js +0 -1
- package/out/parser/ast/utils.js +0 -1
- package/out/parser/ast/validate.js +0 -3
- package/out/parser/definition.js +0 -78
- package/out/parser/objectLiteral.js +0 -113
- package/out/parser/property.js +0 -16
- package/out/parser/reduce/dynamic.js +0 -153
- package/out/parser/reduce/shared.js +0 -25
- package/out/parser/reduce/static.js +0 -1
- package/out/parser/shift/operand/date.js +0 -23
- package/out/parser/shift/operand/enclosed.js +0 -82
- package/out/parser/shift/operand/genericArgs.js +0 -16
- package/out/parser/shift/operand/operand.js +0 -16
- package/out/parser/shift/operand/unenclosed.js +0 -59
- package/out/parser/shift/operator/bounds.js +0 -91
- package/out/parser/shift/operator/brand.js +0 -6
- package/out/parser/shift/operator/default.js +0 -29
- package/out/parser/shift/operator/divisor.js +0 -13
- package/out/parser/shift/operator/operator.js +0 -28
- package/out/parser/shift/tokens.js +0 -37
- package/out/parser/string.js +0 -42
- package/out/parser/tupleExpressions.js +0 -75
- package/out/parser/tupleLiteral.js +0 -128
- package/out/scope.js +0 -106
- package/out/type.js +0 -55
- package/out/variants/array.js +0 -1
- package/out/variants/base.js +0 -1
- package/out/variants/date.js +0 -1
- package/out/variants/instantiate.js +0 -1
- package/out/variants/number.js +0 -1
- package/out/variants/object.js +0 -1
- package/out/variants/string.js +0 -1
- /package/out/{declare.js → mutatesInput.d.ts} +0 -0
package/out/codecs.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ArkError, ArkErrors, Morph } from "@ark/schema";
|
|
2
|
+
import type { noInfer } from "@ark/util";
|
|
3
|
+
import type { distill, inferPipe, Out } from "./attributes.ts";
|
|
4
|
+
import { type } from "./keywords/keywords.ts";
|
|
5
|
+
import type { instantiateType } from "./variants/instantiate.ts";
|
|
6
|
+
/**
|
|
7
|
+
* Create a {@link Type} from a morph and its inverse
|
|
8
|
+
* @example
|
|
9
|
+
* const EpochMs = codec("number.integer", "Date", {
|
|
10
|
+
* decode: n => new Date(n),
|
|
11
|
+
* encode: d => d.getTime()
|
|
12
|
+
* })
|
|
13
|
+
* // Date
|
|
14
|
+
* const date = EpochMs(0)
|
|
15
|
+
* // 0
|
|
16
|
+
* const ms = EpochMs.encode(date)
|
|
17
|
+
*/
|
|
18
|
+
export declare const codec: <const i, const o, r = instantiateType<inferPipe<(In: distill.In<type.infer<i>>) => Out<distill.In<type.infer<o>>>, type.infer<o>>, {}>>(i: type.validate<i>, o: type.validate<o>, { decode, encode }: noInfer<{
|
|
19
|
+
decode: Morph<distill.Out<type.infer<i>>, distill.In<type.infer<o>> | ArkError | ArkErrors>;
|
|
20
|
+
encode: Morph<distill.In<type.infer<o>>, distill.Out<type.infer<i>> | ArkError | ArkErrors>;
|
|
21
|
+
}, i | o>) => r extends infer _ ? _ : never;
|
package/out/codecs.js
ADDED
package/out/config.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { arkKind, TypeMeta } from "@ark/schema";
|
|
2
2
|
import type { Ark } from "./keywords/keywords.ts";
|
|
3
|
-
import {
|
|
4
|
-
import type
|
|
3
|
+
import type { Locale } from "./locale.ts";
|
|
4
|
+
import { type ArkSchemaConfig, type writeUnknownConfigOptionMessage } from "@ark/schema/config";
|
|
5
|
+
import type { anyOrNever, ErrorMessage } from "@ark/util";
|
|
5
6
|
export type KeywordConfig = {
|
|
6
7
|
[k in keyof Ark.flat as parseConfigurableFlatAlias<k, Ark.flat[k]>]?: TypeMeta.Collapsible;
|
|
7
8
|
};
|
|
@@ -12,8 +13,12 @@ type parseConfigurableFlatAlias<k extends string, v> = [
|
|
|
12
13
|
} ? never : k extends `${infer prefix}.root` ? prefix : k;
|
|
13
14
|
export interface ArkConfig extends ArkSchemaConfig {
|
|
14
15
|
keywords?: KeywordConfig;
|
|
16
|
+
locale?: Locale | (() => Locale | undefined);
|
|
15
17
|
}
|
|
16
|
-
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
|
+
};
|
|
17
22
|
declare global {
|
|
18
23
|
export interface ArkEnv {
|
|
19
24
|
$(): Ark;
|
package/out/config.js
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
export const configure = configureSchema;
|
|
1
|
+
export { configure } from "./chunk-NRIGTMPM.js";
|
|
2
|
+
import "./chunk-MLKGABMK.js";
|
package/out/declare.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { TypeMeta, UndeclaredKeyBehavior } from "@ark/schema";
|
|
2
|
+
import type { anyOrNever, array, Backslash, equals, ErrorMessage, ErrorType, optionalKeyOf, requiredKeyOf, show, unset } from "@ark/util";
|
|
2
3
|
import type { distill, Out } from "./attributes.ts";
|
|
3
4
|
import type { type } from "./keywords/keywords.ts";
|
|
4
5
|
import type { inferDefinition, TerminalObjectDefinition, ThunkCast } from "./parser/definition.ts";
|
|
6
|
+
import type { MetaKey } from "./parser/objectLiteral.ts";
|
|
5
7
|
import type { OptionalPropertyDefinition } from "./parser/property.ts";
|
|
6
8
|
import type { TupleExpression } from "./parser/tupleExpressions.ts";
|
|
7
9
|
import type { bindThis } from "./scope.ts";
|
|
@@ -20,12 +22,24 @@ type validateInference<def, declared, $, args, ctx extends DeclareContext> = def
|
|
|
20
22
|
type validateArrayInference<def extends array, declared, $, args, ctx extends DeclareContext> = declared extends array ? {
|
|
21
23
|
[i in keyof declared]: i extends keyof def ? validateInference<def[i], declared[i], $, args, ctx> : declared[i];
|
|
22
24
|
} : show<declarationMismatch<inferDefinition<def, $, args>, declared>>;
|
|
23
|
-
type validateObjectInference<def extends object, declared, $, args, ctx extends DeclareContext> = show<
|
|
25
|
+
type validateObjectInference<def extends object, declared, $, args, ctx extends DeclareContext> = show<([keyof declared & MetaKey] extends [never] ? validateDeclaredKeys<def, declared, $, args, ctx> : validateEscapedDeclaredKeys<def, declared, $, args, ctx>) & DeclaredObjectSettings>;
|
|
26
|
+
type validateDeclaredKeys<def extends object, declared, $, args, ctx extends DeclareContext> = {
|
|
24
27
|
[k in requiredKeyOf<declared>]: k extends keyof def ? validateInference<def[k], declared[k], $, args, ctx> : declared[k];
|
|
25
28
|
} & {
|
|
26
29
|
[k in optionalKeyOf<declared> & string as declaredOptionalKeySuggestion<k, def>]: declaredOptionalValueSuggestion<def, k, declared, $, args, ctx>;
|
|
27
|
-
}
|
|
30
|
+
};
|
|
31
|
+
type validateEscapedDeclaredKeys<def extends object, declared, $, args, ctx extends DeclareContext> = {
|
|
32
|
+
[k in requiredKeyOf<declared> as declaredKey<k>]: declaredKey<k> extends (keyof def) ? validateInference<def[declaredKey<k>], declared[k], $, args, ctx> : declared[k];
|
|
33
|
+
} & {
|
|
34
|
+
[k in optionalKeyOf<declared> & string as k extends MetaKey ? declaredKey<k> : declaredOptionalKeySuggestion<k, def>]: k extends MetaKey ? declaredEscapedOptionalValueSuggestion<def, k, declared, $, args, ctx> : declaredOptionalValueSuggestion<def, k, declared, $, args, ctx>;
|
|
35
|
+
};
|
|
36
|
+
type DeclaredObjectSettings = {
|
|
37
|
+
"@"?: TypeMeta.Collapsible;
|
|
38
|
+
"+"?: UndeclaredKeyBehavior;
|
|
39
|
+
};
|
|
40
|
+
type declaredKey<k> = k extends MetaKey ? `${Backslash}${k}` : k;
|
|
28
41
|
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], Required<declared>[k], $, args, ctx> : OptionalPropertyDefinition;
|
|
29
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], Required<declared>[k], $, args, ctx> : declared[k] : `${k}?` extends keyof def ? validateInference<def[`${k}?`], Required<declared>[k], $, args, ctx> : declared[k];
|
|
30
44
|
type validateShallowInference<t, declared, ctx extends DeclareContext, inferred = ctx["side"] extends distill.Side ? distill<t, ctx["side"]> : t> = equals<inferred, declared> extends true ? unknown : show<declarationMismatch<inferred, declared>>;
|
|
31
45
|
type declarationMismatch<inferred, declared> = ErrorType<{
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseRoot, type GenericRoot } from "@ark/schema";
|
|
2
|
+
import { type Dict, type Domain } from "@ark/util";
|
|
3
|
+
import type { InternalScope } from "./scope.ts";
|
|
4
|
+
export declare const keywordDomains: Dict<string, Domain>;
|
|
5
|
+
export declare const deferUnion: (branches: unknown[], $: InternalScope) => BaseRoot | undefined;
|
|
6
|
+
/** `type.unit` and `type.enumerated`, as the literals that are the same Type */
|
|
7
|
+
export declare const deferUnits: (values: unknown[], $: InternalScope) => BaseRoot | undefined;
|
|
8
|
+
/** `type.Record`, which is its generic once it's anything but called on what can defer */
|
|
9
|
+
export declare const deferredRecord: ($: InternalScope, generic: () => GenericRoot) => unknown;
|
|
10
|
+
export declare const deferDefinition: (def: unknown, $: InternalScope) => BaseRoot | undefined;
|
package/out/errors.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { UndetailedErrors } from "@ark/schema/errors";
|
package/out/errors.js
ADDED
package/out/fn.d.ts
CHANGED
|
@@ -39,8 +39,8 @@ export declare class InternalTypedFn extends Callable<(...args: unknown[]) => un
|
|
|
39
39
|
raw: Fn;
|
|
40
40
|
params: IntersectionNode;
|
|
41
41
|
returns: BaseRoot;
|
|
42
|
-
expression: string;
|
|
43
42
|
constructor(raw: Fn, params: IntersectionNode, returns: BaseRoot);
|
|
43
|
+
get expression(): string;
|
|
44
44
|
}
|
|
45
45
|
export declare namespace Return {
|
|
46
46
|
interface introspectable {
|
package/out/generic.d.ts
CHANGED
|
@@ -89,12 +89,12 @@ export type emptyGenericParameterMessage = typeof emptyGenericParameterMessage;
|
|
|
89
89
|
export type parseGenericParams<def extends string, $> = parseNextNameChar<Scanner.skipWhitespace<def>, "", [
|
|
90
90
|
], $>;
|
|
91
91
|
type ParamsTerminator = WhitespaceChar | ",";
|
|
92
|
-
export declare const parseGenericParamName: (
|
|
92
|
+
export declare const parseGenericParamName: (sc: Scanner, result: GenericParamDef[], ctx: BaseParseContext) => GenericParamDef[];
|
|
93
93
|
type parseName<unscanned extends string, result extends array<GenericParamAst>, $> = parseNextNameChar<Scanner.skipWhitespace<unscanned>, "", result, $>;
|
|
94
|
-
type parseNextNameChar<unscanned extends string, name extends string, result extends array<GenericParamAst>, $> = unscanned extends `${infer
|
|
94
|
+
type parseNextNameChar<unscanned extends string, name extends string, result extends array<GenericParamAst>, $> = unscanned extends `${infer peek}${infer nextUnscanned}` ? peek extends ParamsTerminator ? name extends "" ? ErrorMessage<emptyGenericParameterMessage> : peek extends "," ? parseName<nextUnscanned, [...result, [name, unknown]], $> : peek extends WhitespaceChar ? _parseOptionalConstraint<nextUnscanned, name, result, $> : never : parseNextNameChar<nextUnscanned, `${name}${peek}`, result, $> : name extends "" ? result : [...result, [name, unknown]];
|
|
95
95
|
declare const extendsToken = "extends ";
|
|
96
96
|
type extendsToken = typeof extendsToken;
|
|
97
|
-
declare const _parseOptionalConstraint: (
|
|
97
|
+
declare const _parseOptionalConstraint: (sc: Scanner, name: string, result: GenericParamDef[], ctx: BaseParseContext) => GenericParamDef[];
|
|
98
98
|
type _parseOptionalConstraint<unscanned extends string, name extends string, result extends array<GenericParamAst>, $> = Scanner.skipWhitespace<unscanned> extends (`${extendsToken}${infer nextUnscanned}`) ? parseUntilFinalizer<s.initialize<nextUnscanned>, $, {}> extends (infer finalArgState extends StaticState) ? validateAst<finalArgState["root"], $, {}> extends (infer e extends ErrorMessage) ? e : parseName<finalArgState["unscanned"], [
|
|
99
99
|
...result,
|
|
100
100
|
[name, inferAstRoot<finalArgState["root"], $, {}>]
|
package/out/i18n.d.ts
ADDED
package/out/i18n.js
ADDED
package/out/index.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { Hkt, inferred, ParseError } from "@ark/util";
|
|
3
|
-
export { regex } from "arkregex";
|
|
4
|
-
export type { distill, Out } from "./attributes.ts";
|
|
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
|
+
export { Hkt, inferred, ParseError, type Brand, type Json } from "@ark/util";
|
|
3
|
+
export { regex, type Regex } from "arkregex";
|
|
4
|
+
export type { Default, distill, Out, TerminallyInferredObject, To } from "./attributes.ts";
|
|
5
5
|
export * from "./config.ts";
|
|
6
6
|
export { Generic } from "./generic.ts";
|
|
7
|
+
export type { Locale } from "./locale.ts";
|
|
7
8
|
export { ark, declare, define, fn, generic, keywords, match, type, type Ark } from "./keywords/keywords.ts";
|
|
8
9
|
export { Module, type BoundModule, type Submodule } from "./module.ts";
|
|
9
10
|
export type { inferDefinition, validateDefinition } from "./parser/definition.ts";
|
package/out/index.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
|
|
5
|
-
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export { Type } from "./type.js";
|
|
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
|
+
import "./chunk-G45P2CLE.js";
|
|
5
|
+
export { configure } from "./chunk-NRIGTMPM.js";
|
|
6
|
+
import "./chunk-E3DZXEZK.js";
|
|
7
|
+
import "./chunk-UK5UGFOX.js";
|
|
8
|
+
import "./chunk-MLKGABMK.js";
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
export * from "./index.ts";
|
|
2
|
+
export * from "./attributes.ts";
|
|
3
|
+
export * from "./codecs.ts";
|
|
4
|
+
export * from "./declare.ts";
|
|
5
|
+
export * from "./deferred.ts";
|
|
6
|
+
export * from "./errors.ts";
|
|
7
|
+
export * from "./fn.ts";
|
|
8
|
+
export * from "./generic.ts";
|
|
9
|
+
export * from "./i18n.ts";
|
|
10
|
+
export * from "./keywords/Array.ts";
|
|
11
|
+
export * from "./keywords/builtins.ts";
|
|
12
|
+
export * from "./keywords/constructors.ts";
|
|
13
|
+
export * from "./keywords/FormData.ts";
|
|
14
|
+
export * from "./keywords/functions.ts";
|
|
15
|
+
export * from "./keywords/keywords.ts";
|
|
16
|
+
export * from "./keywords/number.ts";
|
|
17
|
+
export * from "./keywords/phrases.ts";
|
|
18
|
+
export * from "./keywords/string.ts";
|
|
19
|
+
export * from "./keywords/ts.ts";
|
|
20
|
+
export * from "./keywords/TypedArray.ts";
|
|
21
|
+
export * from "./locale.ts";
|
|
22
|
+
export * from "./locales/de.ts";
|
|
23
|
+
export * from "./locales/en.ts";
|
|
24
|
+
export * from "./match.ts";
|
|
25
|
+
export * from "./module.ts";
|
|
26
|
+
export * from "./nary.ts";
|
|
27
|
+
export * from "./parser/ast/bounds.ts";
|
|
28
|
+
export * from "./parser/ast/default.ts";
|
|
29
|
+
export * from "./parser/ast/divisor.ts";
|
|
30
|
+
export * from "./parser/ast/generic.ts";
|
|
31
|
+
export * from "./parser/ast/infer.ts";
|
|
32
|
+
export * from "./parser/ast/keyof.ts";
|
|
33
|
+
export * from "./parser/ast/utils.ts";
|
|
34
|
+
export * from "./parser/ast/validate.ts";
|
|
35
|
+
export * from "./parser/definition.ts";
|
|
36
|
+
export * from "./parser/objectLiteral.ts";
|
|
37
|
+
export * from "./parser/property.ts";
|
|
38
|
+
export * from "./parser/reduce/dynamic.ts";
|
|
39
|
+
export * from "./parser/reduce/shared.ts";
|
|
40
|
+
export * from "./parser/reduce/static.ts";
|
|
41
|
+
export * from "./parser/shift/operand/date.ts";
|
|
42
|
+
export * from "./parser/shift/operand/enclosed.ts";
|
|
43
|
+
export * from "./parser/shift/operand/genericArgs.ts";
|
|
44
|
+
export * from "./parser/shift/operand/operand.ts";
|
|
45
|
+
export * from "./parser/shift/operand/unenclosed.ts";
|
|
46
|
+
export * from "./parser/shift/operand/unresolvable.ts";
|
|
47
|
+
export * from "./parser/shift/operator/bounds.ts";
|
|
48
|
+
export * from "./parser/shift/operator/brand.ts";
|
|
49
|
+
export * from "./parser/shift/operator/default.ts";
|
|
50
|
+
export * from "./parser/shift/operator/divisor.ts";
|
|
51
|
+
export * from "./parser/shift/operator/operator.ts";
|
|
52
|
+
export * from "./parser/shift/tokens.ts";
|
|
53
|
+
export * from "./parser/string.ts";
|
|
54
|
+
export * from "./parser/tupleExpressions.ts";
|
|
55
|
+
export * from "./parser/tupleLiteral.ts";
|
|
56
|
+
export * from "./precompiled.ts";
|
|
57
|
+
export * from "./scope.ts";
|
|
58
|
+
export * from "./standalone.ts";
|
|
59
|
+
export * from "./type.ts";
|
|
60
|
+
export * from "./variants/array.ts";
|
|
61
|
+
export * from "./variants/base.ts";
|
|
62
|
+
export * from "./variants/date.ts";
|
|
63
|
+
export * from "./variants/instantiate.ts";
|
|
64
|
+
export * from "./variants/number.ts";
|
|
65
|
+
export * from "./variants/object.ts";
|
|
66
|
+
export * from "./variants/string.ts";
|
|
67
|
+
export type { Comparator } from "./attributes.ts";
|
|
68
|
+
export { json } from "./keywords/string.ts";
|
|
69
|
+
export { object } from "./keywords/ts.ts";
|
|
70
|
+
export type { InfixExpression } from "./parser/ast/infer.ts";
|
package/out/internal.js
ADDED
|
@@ -0,0 +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, 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
|
+
export { registerPrecompiledUnits } from "./chunk-PRTMQCHS.js";
|
|
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
|
+
export { InternalFnParser, InternalTypedFn, badFnReturnTypeMessage } from "./chunk-G45P2CLE.js";
|
|
9
|
+
export { configure } from "./chunk-NRIGTMPM.js";
|
|
10
|
+
export { UndetailedErrors } from "./chunk-TAHPKDNM.js";
|
|
11
|
+
export { de } from "./chunk-RAZ3TXOE.js";
|
|
12
|
+
export { en } from "./chunk-4CUA5XIP.js";
|
|
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
|
+
import "./chunk-MLKGABMK.js";
|
package/out/island.d.ts
ADDED
package/out/island.js
ADDED
|
@@ -0,0 +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, 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
|
+
export { registerPrecompiledUnits } from "./chunk-PRTMQCHS.js";
|
|
4
|
+
import "./chunk-R5G57XC7.js";
|
|
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
|
+
export { InternalFnParser, InternalTypedFn, badFnReturnTypeMessage } from "./chunk-G45P2CLE.js";
|
|
10
|
+
export { configure } from "./chunk-NRIGTMPM.js";
|
|
11
|
+
export { UndetailedErrors } from "./chunk-TAHPKDNM.js";
|
|
12
|
+
export { de } from "./chunk-RAZ3TXOE.js";
|
|
13
|
+
export { en } from "./chunk-4CUA5XIP.js";
|
|
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
|
+
import "./chunk-MLKGABMK.js";
|
package/out/keywords/Array.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import type { Module, Submodule } from "../module.ts";
|
|
|
4
4
|
declare class liftFromHkt extends Hkt<[element: unknown]> {
|
|
5
5
|
body: liftArray<this[0]> extends infer lifted ? (In: this[0] | lifted) => To<lifted> : never;
|
|
6
6
|
}
|
|
7
|
-
declare const liftFrom: import("@ark/schema").GenericRoot<readonly [["element", unknown]], liftFromHkt>;
|
|
7
|
+
declare const liftFrom: () => import("@ark/schema").GenericRoot<readonly [["element", unknown]], liftFromHkt>;
|
|
8
8
|
export declare const arkArray: arkArray.module;
|
|
9
9
|
export declare namespace arkArray {
|
|
10
10
|
type module = Module<submodule>;
|
|
@@ -13,7 +13,7 @@ export declare namespace arkArray {
|
|
|
13
13
|
root: unknown[];
|
|
14
14
|
readonly: readonly unknown[];
|
|
15
15
|
index: NonNegativeIntegerString;
|
|
16
|
-
liftFrom: typeof liftFrom
|
|
16
|
+
liftFrom: ReturnType<typeof liftFrom>["t"];
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
19
|
export type NonNegativeIntegerString = `${Digit}` | (`${Exclude<Digit, 0>}${string}` & `${bigint}`);
|
|
@@ -1,18 +1,20 @@
|
|
|
1
|
+
import { type BaseRoot, type GenericRoot } from "@ark/schema";
|
|
1
2
|
import type * as util from "@ark/util";
|
|
2
|
-
import { Hkt, type Key } from "@ark/util";
|
|
3
|
+
import { Hkt, type Key, type Thunk } from "@ark/util";
|
|
3
4
|
import type { Module, Submodule } from "../module.ts";
|
|
4
5
|
declare class MergeHkt extends Hkt<[base: object, props: object]> {
|
|
5
6
|
body: util.merge<this[0], this[1]>;
|
|
6
7
|
description: string;
|
|
7
8
|
}
|
|
8
|
-
declare const Merge:
|
|
9
|
+
declare const Merge: () => GenericRoot<readonly [["base", object], ["props", object]], MergeHkt>;
|
|
10
|
+
export declare const builtinDefinitions: Record<keyof arkBuiltins.$, Thunk<BaseRoot | GenericRoot>>;
|
|
9
11
|
export declare const arkBuiltins: arkBuiltins;
|
|
10
12
|
export type arkBuiltins = Module<arkBuiltins.$>;
|
|
11
13
|
export declare namespace arkBuiltins {
|
|
12
14
|
type submodule = Submodule<$>;
|
|
13
15
|
type $ = {
|
|
14
16
|
Key: Key;
|
|
15
|
-
Merge: typeof Merge
|
|
17
|
+
Merge: ReturnType<typeof Merge>["t"];
|
|
16
18
|
};
|
|
17
19
|
}
|
|
18
20
|
export {};
|
|
@@ -8,11 +8,16 @@ declare const omittedPrototypes: {
|
|
|
8
8
|
Number: 1;
|
|
9
9
|
String: 1;
|
|
10
10
|
};
|
|
11
|
+
export declare const prototypeDefinitions: {
|
|
12
|
+
Array: arkArray.module;
|
|
13
|
+
TypedArray: TypedArray.module;
|
|
14
|
+
FormData: arkFormData.module;
|
|
15
|
+
};
|
|
11
16
|
export declare const arkPrototypes: arkPrototypes.module;
|
|
12
17
|
export declare namespace arkPrototypes {
|
|
13
18
|
type module = Module<submodule>;
|
|
14
19
|
type submodule = Submodule<$>;
|
|
15
|
-
interface keywords extends ecmascript, platform {
|
|
20
|
+
interface keywords extends ecmascript, platform, typedArrays {
|
|
16
21
|
}
|
|
17
22
|
interface $ extends Omit<keywords, keyof wrapped>, wrapped {
|
|
18
23
|
}
|
|
@@ -23,6 +28,9 @@ export declare namespace arkPrototypes {
|
|
|
23
28
|
}
|
|
24
29
|
type ecmascript = Omit<EcmascriptObjects, keyof typeof omittedPrototypes>;
|
|
25
30
|
type platform = PlatformObjects;
|
|
31
|
+
type typedArrays = {
|
|
32
|
+
[k in keyof TypedArray.$ as `${k}Array`]: TypedArray.$[k];
|
|
33
|
+
};
|
|
26
34
|
interface instances extends ecmascript, platform {
|
|
27
35
|
}
|
|
28
36
|
type NonDegenerateName = keyof instances extends infer k ? k extends keyof instances ? {} extends instances[k] ? never : k : never : never;
|