@agntn/tools 0.1.0 → 0.1.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/dist/_chunks/libs/typebox.d.mts +47 -51
- package/dist/_chunks/libs/typebox.d.mts.map +1 -1
- package/dist/mcp.d.mts +5 -1
- package/dist/mcp.d.mts.map +1 -1
- package/dist/mcp.mjs +6 -3
- package/dist/mcp.mjs.map +1 -1
- package/package.json +6 -5
|
@@ -276,7 +276,7 @@ type TReadonly$1<Type extends TSchema = TSchema> = (Type & {
|
|
|
276
276
|
/** Applies an Readonly property modifier to the given type. */
|
|
277
277
|
declare function Readonly$2<Type extends TSchema>(type: Type): TAddReadonly<Type>;
|
|
278
278
|
/** Returns true if the given value is a TReadonly */
|
|
279
|
-
declare function IsReadonly
|
|
279
|
+
export declare function IsReadonly(value: unknown): value is TReadonly$1<TSchema>;
|
|
280
280
|
type TAddReadonlyOperation<Type extends TSchema, Result extends TSchema = `~readonly` extends keyof Type ? Type : TReadonly$1<Type>> = Result;
|
|
281
281
|
type TAddReadonlyAction<Type extends TSchema, Result extends TSchema = TAddReadonlyOperation<Type>> = Result;
|
|
282
282
|
type TAddReadonlyInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiateType extends TSchema = TInstantiateType<Context, State, Type>> = TAddReadonlyAction<InstantiateType>;
|
|
@@ -328,7 +328,7 @@ export interface TRef<Ref extends string = string> extends TSchema {
|
|
|
328
328
|
$ref: Ref;
|
|
329
329
|
}
|
|
330
330
|
/** Creates a Ref type. */
|
|
331
|
-
declare function Ref
|
|
331
|
+
export declare function Ref<Ref extends string>(ref: Ref, options?: TSchemaOptions): TRef<Ref>;
|
|
332
332
|
/** Returns true if the given value is TRef. */
|
|
333
333
|
export declare function IsRef(value: unknown): value is TRef;
|
|
334
334
|
/** Represents a callable Generic type. */
|
|
@@ -458,7 +458,7 @@ interface TInteger$1 extends TSchema {
|
|
|
458
458
|
type: 'integer';
|
|
459
459
|
}
|
|
460
460
|
/** Creates a Integer type. */
|
|
461
|
-
declare function Integer$
|
|
461
|
+
declare function Integer$1(options?: TNumberOptions): TInteger$1;
|
|
462
462
|
/** Returns true if the given value is TInteger. */
|
|
463
463
|
export declare function IsInteger(value: unknown): value is TInteger$1;
|
|
464
464
|
export type StaticIntersect<Stack extends string[], Direction extends StaticDirection, Context extends TProperties, This extends TProperties, Types extends TSchema[], Result extends unknown = unknown> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? StaticIntersect<Stack, Direction, Context, This, Right, Result & StaticType<Stack, Direction, Context, This, Left>> : Result);
|
|
@@ -849,31 +849,29 @@ declare function ScriptMapping(input: unknown): unknown;
|
|
|
849
849
|
type TTakeVariant<Variant extends string, Input extends string> = (Input extends `${Variant}${infer Rest extends string}` ? [Variant, Rest] : []);
|
|
850
850
|
/** Takes one of the given variants or fail */
|
|
851
851
|
type TTake<Variants extends string[], Input extends string> = (Variants extends [infer ValueLeft extends string, ...infer ValueRight extends string[]] ? TTakeVariant<ValueLeft, Input> extends [infer Take extends string, infer Rest extends string] ? [Take, Rest] : TTake<ValueRight, Input> : []);
|
|
852
|
-
/** Takes one of the given variants or fail */
|
|
853
|
-
declare function Take<Variants extends string[], Input extends string>(variants: [...Variants], input: Input): TTake<Variants, Input>;
|
|
854
852
|
declare namespace char_d_exports {
|
|
855
|
-
export { Alpha, Digit, DollarSign, Dot
|
|
853
|
+
export { Alpha, Digit, DollarSign, Dot, Hyphen, NewLine, NonZero, TAlpha, TDigit, TDollarSign, TDot, THyphen, TNewLine, TNonZero, TTabSpace, TUnderScore, TWhiteSpace, TZero, TabSpace, UnderScore, WhiteSpace, Zero };
|
|
856
854
|
}
|
|
857
855
|
type TAlpha = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'];
|
|
858
856
|
declare const Alpha: TAlpha;
|
|
859
|
-
type TZero = typeof Zero
|
|
857
|
+
type TZero = typeof Zero;
|
|
860
858
|
type TNonZero = ['1', '2', '3', '4', '5', '6', '7', '8', '9'];
|
|
861
859
|
type TDigit = [TZero, ...TNonZero];
|
|
862
|
-
declare const Zero
|
|
863
|
-
declare const NonZero
|
|
860
|
+
declare const Zero = "0";
|
|
861
|
+
declare const NonZero: TNonZero;
|
|
864
862
|
declare const Digit: TDigit;
|
|
865
863
|
declare const WhiteSpace = " ";
|
|
866
864
|
declare const NewLine = "\n";
|
|
867
865
|
declare const TabSpace = "\t";
|
|
868
866
|
declare const UnderScore = "_";
|
|
869
|
-
declare const Dot
|
|
867
|
+
declare const Dot = ".";
|
|
870
868
|
declare const DollarSign = "$";
|
|
871
869
|
declare const Hyphen = "-";
|
|
872
870
|
type TWhiteSpace = typeof WhiteSpace;
|
|
873
871
|
type TNewLine = typeof NewLine;
|
|
874
872
|
type TTabSpace = typeof TabSpace;
|
|
875
873
|
type TUnderScore = typeof UnderScore;
|
|
876
|
-
type TDot = typeof Dot
|
|
874
|
+
type TDot = typeof Dot;
|
|
877
875
|
type TDollarSign = typeof DollarSign;
|
|
878
876
|
type THyphen = typeof Hyphen;
|
|
879
877
|
type LineComment = typeof LineComment;
|
|
@@ -892,9 +890,7 @@ type W0 = ` `;
|
|
|
892
890
|
type TTrimWhitespace<Input extends string> = (Input extends `${OpenComment}${infer Rest extends string}` ? TTrimWhitespace<TDiscardMultiLineComment<Rest>> : Input extends `${LineComment}${infer Rest extends string}` ? TTrimWhitespace<TDiscardLineComment<Rest>> : Input extends `${W4}${infer Rest extends string}` ? TTrimWhitespace<Rest> : Input extends `${W3}${infer Rest extends string}` ? TTrimWhitespace<Rest> : Input extends `${W1}${infer Rest extends string}` ? TTrimWhitespace<Rest> : Input extends `${W0}${infer Rest extends string}` ? TTrimWhitespace<Rest> : Input);
|
|
893
891
|
type TTrim<Input extends string> = (Input extends `${OpenComment}${infer Rest extends string}` ? TTrim<TDiscardMultiLineComment<Rest>> : Input extends `${LineComment}${infer Rest extends string}` ? TTrim<TDiscardLineComment<Rest>> : Input extends `${TNewLine}${infer Rest extends string}` ? TTrim<Rest> : Input extends `${TTabSpace}${infer Rest extends string}` ? TTrim<Rest> : Input extends `${W4}${infer Rest extends string}` ? TTrim<Rest> : Input extends `${W3}${infer Rest extends string}` ? TTrim<Rest> : Input extends `${W1}${infer Rest extends string}` ? TTrim<Rest> : Input extends `${W0}${infer Rest extends string}` ? TTrim<Rest> : Input);
|
|
894
892
|
/** Matches the given Value or empty string if no match. This function never fails */
|
|
895
|
-
type TOptional$2<Value extends string, Input extends string> = (TTake<[Value], Input> extends [infer Optional extends string, infer Rest extends string] ? [Optional
|
|
896
|
-
/** Matches the given Value or empty string if no match. This function never fails */
|
|
897
|
-
declare function Optional$3<Value extends string, Input extends string>(value: Value, input: Input): TOptional$2<Value, Value>;
|
|
893
|
+
type TOptional$2<Value extends string, Input extends string> = (TTake<[Value], Input> extends [infer Optional extends string, infer Rest extends string] ? [Optional, Rest] : ['', Input]);
|
|
898
894
|
type TIsDiscard<Discard extends string[], Input extends string> = (Discard extends [infer Left extends string, ...infer Right extends string[]] ? Input extends Left ? true : TIsDiscard<Right, Input> : false);
|
|
899
895
|
/** Takes characters from the Input until no-match. The Discard set is used to omit characters from the match */
|
|
900
896
|
type TMany<Allowed extends string[], Discard extends string[], Input extends string, Result extends string = ''> = (TTake<Allowed, Input> extends [infer Char extends string, infer Rest extends string] ? TIsDiscard<Discard, Char> extends true ? TMany<Allowed, Discard, Rest, Result> : TMany<Allowed, Discard, Rest, `${Result}${Char}`> : [Result, Input]);
|
|
@@ -905,13 +901,13 @@ type TTakeUnsignedInteger<Input extends string> = (TTake<[TZero], Input> extends
|
|
|
905
901
|
/** Matches if next is a UnsignedInteger */
|
|
906
902
|
type TUnsignedInteger<Input extends string> = (TTakeUnsignedInteger<TTrim<Input>>);
|
|
907
903
|
/** Matches if next is a UnsignedInteger */
|
|
908
|
-
declare function UnsignedInteger
|
|
904
|
+
declare function UnsignedInteger<Input extends string>(input: Input): TUnsignedInteger<Input>;
|
|
909
905
|
type TTakeSign$1<Input extends string> = (TOptional$2<THyphen, Input>);
|
|
910
906
|
type TTakeSignedInteger<Input extends string> = (TTakeSign$1<Input> extends [infer Sign extends string, infer SignRest extends string] ? TUnsignedInteger<SignRest> extends [infer UnsignedInteger extends string, infer UnsignedIntegerRest extends string] ? [`${Sign}${UnsignedInteger}`, UnsignedIntegerRest] : [] : []);
|
|
911
907
|
/** Matches if next is a signed or unsigned Integer */
|
|
912
908
|
type TInteger<Input extends string> = (TTakeSignedInteger<TTrim<Input>>);
|
|
913
909
|
/** Matches if next is a signed or unsigned Integer */
|
|
914
|
-
declare function Integer
|
|
910
|
+
declare function Integer<Input extends string>(input: Input): TInteger<Input>;
|
|
915
911
|
type TTakeBigInt<Input extends string> = (TInteger<Input> extends [infer Integer extends string, infer IntegerRest extends string] ? TTake<['n'], IntegerRest> extends [infer _N extends string, infer NRest extends string] ? [`${Integer}`, NRest] : [] : []);
|
|
916
912
|
/** Matches if next is a Integer literal with trailing 'n'. Trailing 'n' is omitted in result. */
|
|
917
913
|
type TBigInt<Input extends string> = (TTakeBigInt<Input>);
|
|
@@ -950,13 +946,13 @@ declare function Number<Input extends string>(input: Input): TNumber<Input>;
|
|
|
950
946
|
/** Match remaining characters in the buffer until end. If no characters are in buffer, no match */
|
|
951
947
|
type TRest$1<Input extends string> = (Input extends '' ? [] : [Input, '']);
|
|
952
948
|
/** Match remaining characters in the buffer until end. If no characters are in buffer, no match */
|
|
953
|
-
declare function Rest$
|
|
949
|
+
declare function Rest$1<Input extends string>(input: Input): TRest$1<Input>;
|
|
954
950
|
type TTakeOne<Input extends string> = (Input extends `${infer Left extends string}${infer Right extends string}` ? [Left, Right] : []);
|
|
955
951
|
type TIsInputMatchSentinal<End extends string[], Input extends string> = (End extends [infer Left extends string, ...infer Right extends string[]] ? Input extends `${Left}${string}` ? true : TIsInputMatchSentinal<Right, Input> : false);
|
|
956
952
|
/** Match Input until but not including End. No match if End not found. */
|
|
957
953
|
type TUntil<End extends string[], Input extends string, Result extends string = ''> = (TTakeOne<Input> extends [infer One extends string, infer Rest extends string] ? TIsInputMatchSentinal<End, Input> extends true ? [Result, Input] : TUntil<End, Rest, `${Result}${One}`> : []);
|
|
958
954
|
/** Match Input until but not including End. No match if End not found. */
|
|
959
|
-
declare function Until
|
|
955
|
+
declare function Until<End extends string[], Input extends string>(end: [...End], input: Input, result?: string): TUntil<End, Input>;
|
|
960
956
|
type TMultiLine<Start extends string, End extends string, Input extends string> = (TTake<[Start], Input> extends [infer _, infer Rest extends string] ? TUntil<[End], Rest> extends [infer Until extends string, infer UntilRest extends string] ? TTake<[End], UntilRest> extends [infer _ extends string, infer Rest extends string] ? [`${Until}`, Rest] : [] : [] : []);
|
|
961
957
|
type TSingleLine<Start extends string, End extends string, Input extends string> = (TTake<[Start], Input> extends [infer _ extends string, infer Rest extends string] ? TUntil<[TNewLine, End], Rest> extends [infer Until extends string, infer UntilRest extends string] ? TTake<[End], UntilRest> extends [infer _ extends string, infer EndRest extends string] ? [`${Until}`, EndRest] : [] : [] : []);
|
|
962
958
|
/** Matches from Start and End capturing everything in-between. Start and End are consumed. */
|
|
@@ -975,10 +971,10 @@ type TUntil_1<End extends string[], Input extends string> = (TUntil<End, Input>
|
|
|
975
971
|
/** Match Input until but not including End. No match if End not found or match is zero-length. */
|
|
976
972
|
declare function Until_1<End extends string[], Input extends string>(end: [...End], input: Input): TUntil_1<End, Input>;
|
|
977
973
|
declare namespace index_d_exports$3 {
|
|
978
|
-
export { BigInt, Const, Ident, Integer
|
|
974
|
+
export { BigInt, Const, Ident, Integer, Number, Rest$1 as Rest, Span, String, TBigInt, TConst, TIdent, TInteger, TNumber, TRest$1 as TRest, TSpan, TString, TUnsignedInteger, TUnsignedNumber, TUntil, TUntil_1, UnsignedInteger, UnsignedNumber, Until, Until_1 };
|
|
979
975
|
}
|
|
980
976
|
declare namespace parser_d_exports {
|
|
981
|
-
export { Base, Dependent, Element, ElementBase, ElementList, ElementList_0, ElementNamed, ExportKeyword, Expr, ExprPipe, ExprReadonly, ExprTail, ExprTerm, ExprTermTail, Extends$
|
|
977
|
+
export { Base, Dependent, Element, ElementBase, ElementList, ElementList_0, ElementNamed, ExportKeyword, Expr, ExprPipe, ExprReadonly, ExprTail, ExprTerm, ExprTermTail, Extends$1 as Extends, Factor, GenericCall, GenericCallArgumentList, GenericCallArgumentList_0, GenericCallArguments, GenericParameter, GenericParameterEquals, GenericParameterExtends, GenericParameterExtendsEquals, GenericParameterIdentifier, GenericParameterList, GenericParameterList_0, GenericParameters, GenericType, IndexArray, IndexArray_0, InferType, InterfaceDeclaration, InterfaceDeclarationGeneric, InterfaceDeclarationHeritage, InterfaceDeclarationHeritageList, InterfaceDeclarationHeritageList_0, KeyOf$1 as KeyOf, KeywordAny, KeywordBigInt, KeywordBoolean, KeywordInteger, KeywordNever, KeywordNull, KeywordNumber, KeywordObject, KeywordString, KeywordSymbol, KeywordThis, KeywordUndefined, KeywordUnknown, KeywordVoid, LiteralBigInt, LiteralBoolean, LiteralNumber, LiteralString, MappedAs, MappedOptional, MappedReadonly, Module$1 as Module, ModuleDeclaration, ModuleDeclarationDelimiter, ModuleDeclarationList, ModuleDeclarationList_0, Optional$1 as Optional, OptionalSemiColon, Parameter, ParameterBase, ParameterList, ParameterList_0, ParameterOptional, ParameterReadonly, ParameterReadonlyOptional, ParameterType, Pattern, PatternBase, PatternBigInt, PatternBody, PatternGroup, PatternInteger, PatternNever, PatternNumber, PatternString, PatternTerm, PatternText, PatternUnion, Properties, Property, PropertyDelimiter, PropertyKey$1 as PropertyKey, PropertyKeyIdent, PropertyKeyIndex, PropertyKeyNumber, PropertyKeyQuoted, PropertyList, PropertyList_0, Readonly$1 as Readonly, Reference, Script$1 as Script, TBase, TDependent, TElement, TElementBase, TElementList, TElementList_0, TElementNamed, TExportKeyword, TExpr, TExprPipe, TExprReadonly, TExprTail, TExprTerm, TExprTermTail, TExtends$1 as TExtends, TFactor, TGenericCall, TGenericCallArgumentList, TGenericCallArgumentList_0, TGenericCallArguments, TGenericParameter, TGenericParameterEquals, TGenericParameterExtends, TGenericParameterExtendsEquals, TGenericParameterIdentifier, TGenericParameterList, TGenericParameterList_0, TGenericParameters, TGenericType, TIndexArray, TIndexArray_0, TInferType, TInterfaceDeclaration, TInterfaceDeclarationGeneric, TInterfaceDeclarationHeritage, TInterfaceDeclarationHeritageList, TInterfaceDeclarationHeritageList_0, TKeyOf$1 as TKeyOf, TKeywordAny, TKeywordBigInt, TKeywordBoolean, TKeywordInteger, TKeywordNever, TKeywordNull, TKeywordNumber, TKeywordObject, TKeywordString, TKeywordSymbol, TKeywordThis, TKeywordUndefined, TKeywordUnknown, TKeywordVoid, TLiteralBigInt, TLiteralBoolean, TLiteralNumber, TLiteralString, TMappedAs, TMappedOptional, TMappedReadonly, TModule$1 as TModule, TModuleDeclaration, TModuleDeclarationDelimiter, TModuleDeclarationList, TModuleDeclarationList_0, TOptional$1 as TOptional, TOptionalSemiColon, TParameter, TParameterBase, TParameterList, TParameterList_0, TParameterOptional, TParameterReadonly, TParameterReadonlyOptional, TParameterType, TPattern, TPatternBase, TPatternBigInt, TPatternBody, TPatternGroup, TPatternInteger, TPatternNever, TPatternNumber, TPatternString, TPatternTerm, TPatternText, TPatternUnion, TProperties$1 as TProperties, TProperty, TPropertyDelimiter, TPropertyKey, TPropertyKeyIdent, TPropertyKeyIndex, TPropertyKeyNumber, TPropertyKeyQuoted, TPropertyList, TPropertyList_0, TReadonly, TReference, TScript$1 as TScript, TTemplateBody, TTemplateInterpolate, TTemplateLiteral$1 as TTemplateLiteral, TTemplateLiteralTypes, TTemplateSpan, TType, TTypeAliasDeclaration, TTypeAliasDeclarationGeneric, TWith$1 as TWith, TWithArray, TWithBigInt, TWithBoolean, TWithElementList, TWithElementList_0, TWithNull, TWithNumber, TWithObject, TWithProperty, TWithPropertyList, TWithPropertyList_0, TWithString, TWithUndefined, TWithValue, T_Constructor_, T_Function_, T_Mapped_, T_Object_, T_Tuple_, TemplateBody, TemplateInterpolate, TemplateLiteral$1 as TemplateLiteral, TemplateLiteralTypes, TemplateSpan, Type, TypeAliasDeclaration, TypeAliasDeclarationGeneric, With$1 as With, WithArray, WithBigInt, WithBoolean, WithElementList, WithElementList_0, WithNull, WithNumber, WithObject, WithProperty, WithPropertyList, WithPropertyList_0, WithString, WithUndefined, WithValue, _Constructor_, _Function_$1 as _Function_, _Mapped_, _Object_, _Tuple_ };
|
|
982
978
|
}
|
|
983
979
|
type TGenericParameterExtendsEquals<Input extends string> = (TIdent<Input> extends [infer _0, infer Input extends string] ? (TConst<'extends', Input> extends [infer _1, infer Input extends string] ? (TType<Input> extends [infer _2, infer Input extends string] ? (TConst<'=', Input> extends [infer _3, infer Input extends string] ? (TType<Input> extends [infer _4, infer Input extends string] ? [[_0, _1, _2, _3, _4], Input] : []) : []) : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown, unknown, unknown], infer Input extends string] ? [TGenericParameterExtendsEqualsMapping<_0>, Input] : [];
|
|
984
980
|
type TGenericParameterExtends<Input extends string> = (TIdent<Input> extends [infer _0, infer Input extends string] ? (TConst<'extends', Input> extends [infer _1, infer Input extends string] ? (TType<Input> extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown], infer Input extends string] ? [TGenericParameterExtendsMapping<_0>, Input] : [];
|
|
@@ -1146,8 +1142,8 @@ declare const LiteralNumber: (input: string) => [unknown, string] | [];
|
|
|
1146
1142
|
declare const LiteralString: (input: string) => [unknown, string] | [];
|
|
1147
1143
|
declare const KeyOf$1: (input: string) => [unknown, string] | [];
|
|
1148
1144
|
declare const IndexArray_0: (input: string, result?: unknown[]) => [unknown[], string];
|
|
1149
|
-
declare const IndexArray
|
|
1150
|
-
declare const Extends$
|
|
1145
|
+
declare const IndexArray: (input: string) => [unknown, string] | [];
|
|
1146
|
+
declare const Extends$1: (input: string) => [unknown, string] | [];
|
|
1151
1147
|
declare const Base: (input: string) => [unknown, string] | [];
|
|
1152
1148
|
declare const With$1: (input: string) => [unknown, string] | [];
|
|
1153
1149
|
declare const Factor: (input: string) => [unknown, string] | [];
|
|
@@ -1159,19 +1155,19 @@ declare const ExprReadonly: (input: string) => [unknown, string] | [];
|
|
|
1159
1155
|
declare const ExprPipe: (input: string) => [unknown, string] | [];
|
|
1160
1156
|
declare const GenericType: (input: string) => [unknown, string] | [];
|
|
1161
1157
|
declare const InferType: (input: string) => [unknown, string] | [];
|
|
1162
|
-
declare const Type
|
|
1158
|
+
declare const Type: (input: string) => [unknown, string] | [];
|
|
1163
1159
|
declare const PropertyKeyNumber: (input: string) => [unknown, string] | [];
|
|
1164
1160
|
declare const PropertyKeyIdent: (input: string) => [unknown, string] | [];
|
|
1165
1161
|
declare const PropertyKeyQuoted: (input: string) => [unknown, string] | [];
|
|
1166
1162
|
declare const PropertyKeyIndex: (input: string) => [unknown, string] | [];
|
|
1167
1163
|
declare const PropertyKey$1: (input: string) => [unknown, string] | [];
|
|
1168
1164
|
declare const Readonly$1: (input: string) => [unknown, string] | [];
|
|
1169
|
-
declare const Optional$
|
|
1170
|
-
declare const Property
|
|
1165
|
+
declare const Optional$1: (input: string) => [unknown, string] | [];
|
|
1166
|
+
declare const Property: (input: string) => [unknown, string] | [];
|
|
1171
1167
|
declare const PropertyDelimiter: (input: string) => [unknown, string] | [];
|
|
1172
1168
|
declare const PropertyList_0: (input: string, result?: unknown[]) => [unknown[], string];
|
|
1173
|
-
declare const PropertyList
|
|
1174
|
-
declare const Properties
|
|
1169
|
+
declare const PropertyList: (input: string) => [unknown, string] | [];
|
|
1170
|
+
declare const Properties: (input: string) => [unknown, string] | [];
|
|
1175
1171
|
declare const _Object_: (input: string) => [unknown, string] | [];
|
|
1176
1172
|
declare const ElementNamed: (input: string) => [unknown, string] | [];
|
|
1177
1173
|
declare const ElementBase: (input: string) => [unknown, string] | [];
|
|
@@ -1186,7 +1182,7 @@ declare const ParameterType: (input: string) => [unknown, string] | [];
|
|
|
1186
1182
|
declare const ParameterBase: (input: string) => [unknown, string] | [];
|
|
1187
1183
|
declare const Parameter: (input: string) => [unknown, string] | [];
|
|
1188
1184
|
declare const ParameterList_0: (input: string, result?: unknown[]) => [unknown[], string];
|
|
1189
|
-
declare const ParameterList
|
|
1185
|
+
declare const ParameterList: (input: string) => [unknown, string] | [];
|
|
1190
1186
|
declare const _Function_$1: (input: string) => [unknown, string] | [];
|
|
1191
1187
|
declare const _Constructor_: (input: string) => [unknown, string] | [];
|
|
1192
1188
|
declare const MappedReadonly: (input: string) => [unknown, string] | [];
|
|
@@ -1219,7 +1215,7 @@ declare const PatternGroup: (input: string) => [unknown, string] | [];
|
|
|
1219
1215
|
declare const PatternUnion: (input: string) => [unknown, string] | [];
|
|
1220
1216
|
declare const PatternTerm: (input: string) => [unknown, string] | [];
|
|
1221
1217
|
declare const PatternBody: (input: string) => [unknown, string] | [];
|
|
1222
|
-
declare const Pattern
|
|
1218
|
+
declare const Pattern: (input: string) => [unknown, string] | [];
|
|
1223
1219
|
declare const InterfaceDeclarationHeritageList_0: (input: string, result?: unknown[]) => [unknown[], string];
|
|
1224
1220
|
declare const InterfaceDeclarationHeritageList: (input: string) => [unknown, string] | [];
|
|
1225
1221
|
declare const InterfaceDeclarationHeritage: (input: string) => [unknown, string] | [];
|
|
@@ -1230,8 +1226,8 @@ declare const TypeAliasDeclaration: (input: string) => [unknown, string] | [];
|
|
|
1230
1226
|
declare const ExportKeyword: (input: string) => [unknown, string] | [];
|
|
1231
1227
|
declare const ModuleDeclarationDelimiter: (input: string) => [unknown, string] | [];
|
|
1232
1228
|
declare const ModuleDeclarationList_0: (input: string, result?: unknown[]) => [unknown[], string];
|
|
1233
|
-
declare const ModuleDeclarationList
|
|
1234
|
-
declare const ModuleDeclaration
|
|
1229
|
+
declare const ModuleDeclarationList: (input: string) => [unknown, string] | [];
|
|
1230
|
+
declare const ModuleDeclaration: (input: string) => [unknown, string] | [];
|
|
1235
1231
|
declare const Module$1: (input: string) => [unknown, string] | [];
|
|
1236
1232
|
declare const Script$1: (input: string) => [unknown, string] | [];
|
|
1237
1233
|
/** Parses a Template into TemplateLiteral types */
|
|
@@ -1245,7 +1241,7 @@ export interface TUnion<Types extends TSchema[] = TSchema[]> extends TSchema {
|
|
|
1245
1241
|
anyOf: Types;
|
|
1246
1242
|
}
|
|
1247
1243
|
/** Creates a Union type. */
|
|
1248
|
-
declare function Union
|
|
1244
|
+
export declare function Union<Types extends TSchema[]>(anyOf: [...Types], options?: TSchemaOptions): TUnion<Types>;
|
|
1249
1245
|
/** Returns true if the given value is TUnion. */
|
|
1250
1246
|
export declare function IsUnion(value: unknown): value is TUnion;
|
|
1251
1247
|
/** Extracts options from a TUnion. */
|
|
@@ -1344,9 +1340,9 @@ declare function IsExtendsTrueLike(value: unknown): value is TExtendsTrueLike;
|
|
|
1344
1340
|
type MatchTrueLike = (inferred: TProperties) => unknown;
|
|
1345
1341
|
type MatchFalse = () => unknown;
|
|
1346
1342
|
declare function Match(result: TResult, true_: MatchTrueLike, false_: MatchFalse): unknown;
|
|
1347
|
-
type TExtendsRightInfer<Inferred extends TProperties, Name extends string, Left extends TSchema, Right extends TSchema, Result extends
|
|
1348
|
-
type TExtendsRightAny<Inferred extends TProperties, _Left extends TSchema, Result extends
|
|
1349
|
-
type TExtendsRightDependent<Inferred extends TProperties, Left extends TSchema, If extends TSchema, Then extends TSchema, Else extends TSchema, Result extends
|
|
1343
|
+
type TExtendsRightInfer<Inferred extends TProperties, Name extends string, Left extends TSchema, Right extends TSchema, Result extends TResult = (TExtendsLeft<Inferred, Left, Right> extends TExtendsTrueLike<infer CheckInferred extends TProperties> ? TExtendsTrue<TAssign<TAssign<Inferred, CheckInferred>, { [_ in Name]: Left; }>> : TExtendsFalse)> = Result;
|
|
1344
|
+
type TExtendsRightAny<Inferred extends TProperties, _Left extends TSchema, Result extends TResult = TExtendsTrue<Inferred>> = Result;
|
|
1345
|
+
type TExtendsRightDependent<Inferred extends TProperties, Left extends TSchema, If extends TSchema, Then extends TSchema, Else extends TSchema, Result extends TResult = TExtendsLeft<Inferred, Left, If> extends TExtendsTrueLike<infer Inferred extends TProperties> ? (TExtendsLeft<Inferred, Left, Then> extends TExtendsTrueLike<infer Inferred extends TProperties> ? TExtendsTrue<Inferred> : TExtendsFalse) : (TExtendsLeft<Inferred, Left, Else> extends TExtendsTrueLike<infer Inferred extends TProperties> ? TExtendsTrue<Inferred> : TExtendsFalse)> = Result;
|
|
1350
1346
|
type TExtendsRightEnum<Inferred extends TProperties, Left extends TSchema, Right extends TEnumValue[], Evaluated extends TSchema = TEvaluateEnum<Right>> = TExtendsLeft<Inferred, Left, Evaluated>;
|
|
1351
1347
|
type TExtendsRightIntersect<Inferred extends TProperties, Left extends TSchema, Right extends TSchema[]> = (Right extends [infer Head extends TSchema, ...infer Tail extends TSchema[]] ? TExtendsLeft<Inferred, Left, Head> extends TExtendsTrueLike<infer Inferred extends TProperties> ? TExtendsRightIntersect<Inferred, Left, Tail> : TExtendsFalse : TExtendsTrue<Inferred>);
|
|
1352
1348
|
type TExtendsRightTemplateLiteral<Inferred extends TProperties, Left extends TSchema, Right extends string, Evaluated extends TSchema = TEvaluateTemplateLiteral<Right>> = TExtendsLeft<Inferred, Left, Evaluated>;
|
|
@@ -1389,13 +1385,13 @@ type TExtendsNull<Inferred extends TProperties, Left extends TNull, Right extend
|
|
|
1389
1385
|
type TExtendsNumber<Inferred extends TProperties, Left extends TNumber$1, Right extends TSchema> = (Right extends TNumber$1 ? TExtendsTrue<Inferred> : TExtendsRight<Inferred, Left, Right>);
|
|
1390
1386
|
type TExtendsPropertyOptional<Inferred extends TProperties, Left extends TSchema, Right extends TSchema> = (Left extends TOptional<Left> ? Right extends TOptional<Right> ? TExtendsTrue<Inferred> : TExtendsFalse : TExtendsTrue<Inferred>);
|
|
1391
1387
|
type TExtendsProperty<Inferred extends TProperties, Left extends TSchema, Right extends TSchema> = (Right extends TInfer<string, TNever> ? TExtendsFalse : TExtendsLeft<Inferred, Left, Right> extends TExtendsTrueLike<infer Inferred extends TProperties> ? TExtendsPropertyOptional<Inferred, Left, Right> : TExtendsFalse);
|
|
1392
|
-
type TExtractInferredProperties<Keys extends PropertyKey[], Properties extends Record<PropertyKey,
|
|
1388
|
+
type TExtractInferredProperties<Keys extends PropertyKey[], Properties extends Record<PropertyKey, TResult>, Result extends TProperties = {}> = (Keys extends [infer Left extends PropertyKey, ...infer Right extends PropertyKey[]] ? Left extends keyof Properties ? Properties[Left] extends TExtendsTrueLike<infer Inferred extends TProperties> ? TExtractInferredProperties<Right, Properties, Result & Inferred> : TExtractInferredProperties<Right, Properties, Result> : TUnreachable : Result);
|
|
1393
1389
|
type TExtendsPropertiesComparer<Inferred extends TProperties, Left extends TProperties, Right extends TProperties, Properties extends Record<PropertyKey, TExtendsTrue | TExtendsFalse> = { [RightKey in keyof Right]: (RightKey extends keyof Left ? TExtendsProperty<{}, Left[RightKey], Right[RightKey]> : Right[RightKey] extends TOptional<Right[RightKey]> ? Right[RightKey] extends TInfer ? TExtendsTrue<TAssign<Inferred, { [_ in Right[RightKey]['name']]: Right[RightKey]['extends']; }>> : TExtendsTrue<Inferred> : TExtendsFalse); }, Checked extends boolean = Properties[keyof Right] extends TExtendsTrueLike ? true : false, Extracted extends TProperties = Checked extends true ? TExtractInferredProperties<TUnionToTuple<keyof Properties>, Properties> : {}> = (Checked extends true ? TExtendsTrue<Extracted> : TExtendsFalse);
|
|
1394
1390
|
type TExtendsProperties<Inferred extends TProperties, Left extends TProperties, Right extends TProperties, Compared extends TResult = TExtendsPropertiesComparer<Inferred, Left, Right>> = (Compared extends TExtendsTrueLike<infer ComparedInferred extends TProperties> ? TExtendsTrue<TAssign<Inferred, ComparedInferred>> : TExtendsFalse);
|
|
1395
1391
|
type TExtendsObjectToObject<Inferred extends TProperties, Left extends TProperties, Right extends TProperties> = (TExtendsProperties<Inferred, Left, Right>);
|
|
1396
1392
|
type TRecordMergeInferred<Left extends TProperties, Right extends TProperties, Result extends TProperties = { [Key in keyof Right]: Key extends keyof Left ? Left[Key] extends TUnion<infer Types extends TSchema[]> ? TUnion<[...Types, Right[Key]]> : TUnion<[Left[Key], Right[Key]]> : Right[Key]; }> = Result;
|
|
1397
|
-
type TExtendsRecordComparer<Properties extends TProperties, Keys extends (keyof Properties)[], Type extends TSchema, Result extends TProperties> = (Keys extends [infer Left extends (keyof Properties), ...infer Right extends (keyof Properties)[]] ? TExtendsLeft<{}, Properties[Left], Type> extends
|
|
1398
|
-
type TExtendsObjectToRecord<Inferred extends TProperties, Properties extends TProperties, _Pattern extends string, Value extends TSchema, Keys extends (keyof Properties)[] = TUnionToTuple<keyof Properties>, Result extends
|
|
1393
|
+
type TExtendsRecordComparer<Properties extends TProperties, Keys extends (keyof Properties)[], Type extends TSchema, Result extends TProperties> = (Keys extends [infer Left extends (keyof Properties), ...infer Right extends (keyof Properties)[]] ? TExtendsLeft<{}, Properties[Left], Type> extends TExtendsTrueLike<infer Inferred extends TProperties> ? TExtendsRecordComparer<Properties, Right, Type, TRecordMergeInferred<Result, Inferred>> : TExtendsFalse : TExtendsTrue<Result>);
|
|
1394
|
+
type TExtendsObjectToRecord<Inferred extends TProperties, Properties extends TProperties, _Pattern extends string, Value extends TSchema, Keys extends (keyof Properties)[] = TUnionToTuple<keyof Properties>, Result extends TResult = TExtendsRecordComparer<Properties, Keys, Value, Inferred>> = Result;
|
|
1399
1395
|
type TExtendsObject<Inferred extends TProperties, Left extends TProperties, Right extends TSchema> = (Right extends TRecord<infer Pattern extends string, infer Value extends TSchema> ? TExtendsObjectToRecord<Inferred, Left, Pattern, Value> : Right extends TObject<infer Properties extends TProperties> ? TExtendsObjectToObject<Inferred, Left, Properties> : TExtendsRight<Inferred, TObject<Left>, Right>);
|
|
1400
1396
|
type TFromObject$6<Inferred extends TProperties, Properties extends TProperties> = keyof Properties extends never ? TExtendsTrue<Inferred> : TExtendsFalse;
|
|
1401
1397
|
type TFromRecord$1<Inferred extends TProperties, _LeftKey extends TSchema, LeftValue extends TSchema, _RightKey extends TSchema, RightValue extends TSchema> = (TExtendsLeft<Inferred, LeftValue, RightValue>);
|
|
@@ -1410,7 +1406,7 @@ export interface TRest<Type extends TSchema = TSchema> extends TSchema {
|
|
|
1410
1406
|
items: Type;
|
|
1411
1407
|
}
|
|
1412
1408
|
/** Creates a Rest instruction type. */
|
|
1413
|
-
declare function Rest
|
|
1409
|
+
export declare function Rest<Type extends TSchema>(type: Type): TRest<Type>;
|
|
1414
1410
|
/** Returns true if the given value is TRest. */
|
|
1415
1411
|
export declare function IsRest(value: unknown): value is TRest;
|
|
1416
1412
|
interface TInferable<Name extends string = string, Type extends TSchema = TSchema> {
|
|
@@ -1420,7 +1416,7 @@ interface TInferable<Name extends string = string, Type extends TSchema = TSchem
|
|
|
1420
1416
|
}
|
|
1421
1417
|
type TTryRestInferable<Type extends TSchema, Result extends TInferable | undefined = (Type extends TRest<infer RestType extends TSchema> ? RestType extends TInfer<infer Name extends string, infer Type extends TSchema> ? Type extends TArray<infer Type extends TSchema> ? TInferable<Name, Type> : Type extends TUnknown ? TInferable<Name, Type> : undefined : TUnreachable : undefined)> = Result;
|
|
1422
1418
|
type TTryInferable<Type extends TSchema, Result extends TInferable | undefined = (Type extends TInfer<infer Name extends string, infer Type extends TSchema> ? TInferable<Name, Type> : undefined)> = Result;
|
|
1423
|
-
type TryInferResults<Rest extends TSchema[], Right extends TSchema, Result extends TSchema[] = []> = (Rest extends [infer Head extends TSchema, ...infer Tail extends TSchema[]] ? TExtendsLeft<{}, Head, Right> extends
|
|
1419
|
+
type TryInferResults<Rest extends TSchema[], Right extends TSchema, Result extends TSchema[] = []> = (Rest extends [infer Head extends TSchema, ...infer Tail extends TSchema[]] ? TExtendsLeft<{}, Head, Right> extends TExtendsTrueLike ? TryInferResults<Tail, Right, [...Result, Head]> : undefined : Result);
|
|
1424
1420
|
declare function TryInferResults<Rest extends TSchema[], Right extends TSchema>(rest: [...Rest], right: Right): TryInferResults<Rest, Right>;
|
|
1425
1421
|
type TInferTupleResult<Inferred extends TProperties, Name extends string, Left extends TSchema[], Right extends TSchema, Results extends TSchema[] | undefined = TryInferResults<Left, Right>> = (Results extends [...infer Results extends TSchema[]] ? TExtendsTrue<TAssign<Inferred, { [_ in Name]: TTuple<Results>; }>> : TExtendsFalse);
|
|
1426
1422
|
type TInferUnionResult<Inferred extends TProperties, Name extends string, Left extends TSchema[], Right extends TSchema, Results extends TSchema[] | undefined = TryInferResults<Left, Right>> = (Results extends [...infer Results extends TSchema[]] ? TExtendsTrue<TAssign<Inferred, { [_ in Name]: TUnion<Results>; }>> : TExtendsFalse);
|
|
@@ -1510,7 +1506,7 @@ type TCanonical<Type extends TSchema> = (Type extends TCyclic ? TCyclicExtends<T
|
|
|
1510
1506
|
/** Performs a structural extends check on left and right types and yields inferred types on right if specified. */
|
|
1511
1507
|
export type TExtends<Inferred extends TProperties, Left extends TSchema, Right extends TSchema, CanonicalLeft extends TSchema = TCanonical<Left>, CanonicalRight extends TSchema = TCanonical<Right>> = TExtendsLeft<Inferred, CanonicalLeft, CanonicalRight>;
|
|
1512
1508
|
/** Performs a structural extends check on left and right types and yields inferred types on right if specified. */
|
|
1513
|
-
declare function Extends
|
|
1509
|
+
export declare function Extends<Inferred extends TProperties, Left extends TSchema, Right extends TSchema>(inferred: Inferred, left: Left, right: Right): TExtends<Inferred, Left, Right>;
|
|
1514
1510
|
type TExcludeType<Left extends TSchema, Right extends TSchema, Check extends TResult = TExtends<{}, Left, Right>, Result extends TSchema[] = Check extends TExtendsTrueLike ? [] : [Left]> = Result;
|
|
1515
1511
|
type TExcludeUnion<Left extends TSchema[], Right extends TSchema, Result extends TSchema[] = []> = (Left extends [infer Head extends TSchema, ...infer Tail extends TSchema[]] ? TExcludeUnion<Tail, Right, [...Result, ...TExcludeType<Head, Right>]> : Result);
|
|
1516
1512
|
type TExcludeOperation<Left extends TSchema, Right extends TSchema, Evaluated extends TSchema = TEvaluateType<Left>, Canonical extends TSchema[] = Evaluated extends TUnion<infer Types extends TSchema[]> ? Types : [Evaluated], Remaining extends TSchema[] = TExcludeUnion<Canonical, Right>, Result extends TSchema = TEvaluateUnion<Remaining>> = Result;
|
|
@@ -1635,7 +1631,7 @@ export declare function RecordAction<Key extends TSchema, Value extends TSchema>
|
|
|
1635
1631
|
export type TRecordInstantiate<Context extends TProperties, State extends TState, Key extends TSchema, Value extends TSchema, InstantiatedKey extends TSchema = TInstantiateType<Context, State, Key>, InstantiatedValue extends TSchema = TInstantiateType<Context, State, Value>> = TRecordAction<InstantiatedKey, InstantiatedValue>;
|
|
1636
1632
|
export declare function RecordInstantiate<Context extends TProperties, State extends TState, Key extends TSchema, Value extends TSchema>(context: Context, state: State, key: Key, value: Value, options: TSchemaOptions): TRecordInstantiate<Context, State, Key, Value>;
|
|
1637
1633
|
type StaticPropertyKey<Key extends string, Result extends PropertyKey = (Key extends TStringKey ? string : Key extends TIntegerKey ? number : Key extends TNumberKey ? number : Key extends `^${string}$` ? TTemplateLiteralStatic<Key> : string)> = Result;
|
|
1638
|
-
export type StaticRecord<Stack extends string[], Direction extends StaticDirection, Context extends TProperties, This extends TProperties, Key extends string, Value extends TSchema, StaticKey extends PropertyKey = StaticPropertyKey<Key>, StaticValue extends unknown = StaticType<Stack, Direction, Context, This, Value>, Result extends Record
|
|
1634
|
+
export type StaticRecord<Stack extends string[], Direction extends StaticDirection, Context extends TProperties, This extends TProperties, Key extends string, Value extends TSchema, StaticKey extends PropertyKey = StaticPropertyKey<Key>, StaticValue extends unknown = StaticType<Stack, Direction, Context, This, Value>, Result extends Record<PropertyKey, unknown> = Record<StaticKey, StaticValue>> = Result;
|
|
1639
1635
|
export type TStringKey = typeof StringKey;
|
|
1640
1636
|
export type TIntegerKey = typeof IntegerKey;
|
|
1641
1637
|
export type TNumberKey = typeof NumberKey;
|
|
@@ -1684,7 +1680,7 @@ export declare function This(options?: TSchemaOptions): TThis;
|
|
|
1684
1680
|
/** Returns true if the given value is TThis. */
|
|
1685
1681
|
export declare function IsThis(value: unknown): value is TThis;
|
|
1686
1682
|
declare namespace index_d_exports$2 {
|
|
1687
|
-
export { Any, _Array_ as Array, ArrayOptions, BigInt$1 as BigInt, BigIntPattern, Boolean, Call, CallConstruct, Codec, Constructor, ConstructorOptions, Cyclic, CyclicOptions, Decode, DecodeBuilder, Deferred, Dependent$1 as Dependent, DependentOptions, Encode, EncodeBuilder, Enum, _Function_ as Function, FunctionOptions, Generic, Identifier, Immutable, Infer, Integer$
|
|
1683
|
+
export { Any, _Array_ as Array, ArrayOptions, BigInt$1 as BigInt, BigIntPattern, Boolean, Call, CallConstruct, Codec, Constructor, ConstructorOptions, Cyclic, CyclicOptions, Decode, DecodeBuilder, Deferred, Dependent$1 as Dependent, DependentOptions, Encode, EncodeBuilder, Enum, _Function_ as Function, FunctionOptions, Generic, Identifier, Immutable, Infer, Integer$1 as Integer, IntegerKey, IntegerPattern, Intersect, IntersectOptions, InvalidLiteralValue, IsAny, IsArray, IsBigInt, IsBoolean, IsCall, IsCodec, IsConstructor, IsCyclic, IsDeferred, IsDependent, IsEnum, IsEnumValue, IsFunction, IsGeneric, IsIdentifier, IsImmutable, IsInfer, IsInteger, IsIntersect, IsKind, IsLiteral, IsLiteralBigInt, IsLiteralBoolean, IsLiteralNumber, IsLiteralString, IsLiteralValue, IsNever, IsNull, IsNumber, IsObject, IsOptional, IsParameter, IsReadonly, IsRecord, IsRef, IsRefine, IsRefinement, IsRest, IsSchema, IsString, IsSymbol, IsTemplateLiteral, IsTemplateLiteralDeferred, IsThis, IsTuple, IsUndefined, IsUnion, IsUnknown, IsUnsafe, IsVoid, Literal, LiteralTypeName, Never, NeverPattern, Null, Number$1 as Number, NumberKey, NumberPattern, _Object_$1 as Object, ObjectOptions, Optional, Parameter$1 as Parameter, PropertyKeys, PropertyValues, Readonly$2 as Readonly, Record$1 as Record, RecordDeferred, RecordFromPattern, RecordKey, RecordOptions, RecordPattern, RecordPatternToType, RecordValue, Ref, Refine, RefineAdd, RequiredArray, Rest, Static, StaticAny, StaticArray, StaticBigInt, StaticBoolean, StaticCodec, StaticConstructor, StaticCyclic, StaticDecode, StaticDependent, StaticDirection, StaticEncode, StaticEnum, StaticEvaluate, StaticFunction, StaticInstantiatedParameters, StaticInteger, StaticIntersect, StaticLiteral, StaticNever, StaticNull, StaticNumber, StaticObject, StaticParse, StaticProperties, StaticRecord, StaticRef, StaticString, StaticSymbol, StaticTemplateLiteral, StaticThis, StaticTuple, StaticType, StaticUndefined, StaticUnion, StaticUnknown, StaticUnsafe, StaticVoid, String$1 as String, StringKey, StringPattern, Symbol, TAny, TArray, TArrayOptions, TBigInt$1 as TBigInt, TBoolean, TCall, TCallConstruct, TCodec, TConstructor, TCyclic, TDecodeCallback, TDeferred, TDependent$1 as TDependent, TEncodeCallback, TEnum, TEnumValue, TFormat, TFunction, TGeneric, TIdentifier, TImmutable, TInfer, TInteger$1 as TInteger, TIntegerKey, TIntersect, TIntersectOptions, TLiteral, TLiteralTypeName, TLiteralValue, TNever, TNull, TNumber$1 as TNumber, TNumberKey, TNumberOptions, TObject, TObjectOptions, TOptional, TParameter$1 as TParameter, TProperties, TPropertyKeys, TPropertyValues, TReadonly$1 as TReadonly, TRecord, TRecordDeferred, TRecordKey, TRecordPattern, TRecordPatternToType, TRecordValue, TRef, TRefine, TRefineAdd, TRefineCheckCallback, TRefineErrorCallback, TRefinement, TRequiredArray, TRest, TSchema, TSchemaOptions, TStaticElements, TString$1 as TString, TStringKey, TStringOptions, TSymbol, TTemplateLiteral, TTemplateLiteralDeferred, TTemplateLiteralFromString, TTemplateLiteralFromTypes, TThis, TTuple, TTupleOptions, TUndefined, TUnion, TUnknown, TUnsafe, TVoid, TemplateLiteral, TemplateLiteralDeferred, TemplateLiteralFromString, TemplateLiteralFromTypes, This, Tuple, TupleOptions, Undefined, Union, UnionOptions, Unknown, Unsafe, Void, _Array_, _Function_, _Object_$1 as _Object_ };
|
|
1688
1684
|
}
|
|
1689
1685
|
export declare const CompareResultEqual = 0;
|
|
1690
1686
|
export declare const CompareResultDisjoint = 1;
|
|
@@ -1826,7 +1822,7 @@ export declare function ConditionalDeferred<Left extends TSchema, Right extends
|
|
|
1826
1822
|
export type TConditional<Left extends TSchema, Right extends TSchema, True extends TSchema, False extends TSchema> = (TConditionalAction<{}, TState<[], []>, Left, Right, True, False>);
|
|
1827
1823
|
/** Applies a Conditional action to the given types. */
|
|
1828
1824
|
export declare function Conditional<Left extends TSchema, Right extends TSchema, True extends TSchema, False extends TSchema>(left: Left, right: Right, true_: True, false_: False, options?: TSchemaOptions): TConditional<Left, Right, True, False>;
|
|
1829
|
-
type TConditionalOperation<Context extends TProperties, State extends TState, Left extends TSchema, Right extends TSchema, True extends TSchema, False extends TSchema, ExtendsResult extends
|
|
1825
|
+
type TConditionalOperation<Context extends TProperties, State extends TState, Left extends TSchema, Right extends TSchema, True extends TSchema, False extends TSchema, ExtendsResult extends TResult = TExtends<Context, Left, Right>> = (ExtendsResult extends TExtendsUnion$1<infer InferredContext extends TProperties> ? TUnion<[TInstantiateType<InferredContext, State, True>, TInstantiateType<Context, State, False>]> : ExtendsResult extends TExtendsTrue<infer InferredContext extends TProperties> ? TInstantiateType<InferredContext, State, True> : TInstantiateType<Context, State, False>);
|
|
1830
1826
|
export type TConditionalAction<Context extends TProperties, State extends TState, Left extends TSchema, Right extends TSchema, True extends TSchema, False extends TSchema, Result extends TSchema = TCanInstantiate<[Left, Right]> extends true ? TConditionalOperation<Context, State, Left, Right, True, False> : TConditionalDeferred<Left, Right, True, False>> = Result;
|
|
1831
1827
|
export declare function ConditionalAction<Context extends TProperties, State extends TState, Left extends TSchema, Right extends TSchema, True extends TSchema, False extends TSchema>(context: Context, state: State, left: Left, right: Right, true_: True, false_: False, options: TSchemaOptions): TConditionalAction<Context, State, Left, Right, True, False>;
|
|
1832
1828
|
export type TConditionalInstantiate<Context extends TProperties, State extends TState, Left extends TSchema, Right extends TSchema, True extends TSchema, False extends TSchema, InstaniatedLeft extends TSchema = TInstantiateType<Context, State, Left>, InstaniatedRight extends TSchema = TInstantiateType<Context, State, Right>> = TConditionalAction<Context, State, InstaniatedLeft, InstaniatedRight, True, False>;
|
|
@@ -1947,7 +1943,7 @@ export declare function InstanceTypeDeferred<Type extends TSchema>(type: Type, o
|
|
|
1947
1943
|
/** Applies a InstanceType action to the given type. */
|
|
1948
1944
|
export type TInstanceType<Type extends TSchema> = (TInstanceTypeAction<Type>);
|
|
1949
1945
|
/** Applies a InstanceType action to the given type. */
|
|
1950
|
-
declare function InstanceType
|
|
1946
|
+
export declare function InstanceType<Type extends TSchema>(type: Type, options?: TSchemaOptions): TInstanceType<Type>;
|
|
1951
1947
|
type TInstanceTypeOperation<Type extends TSchema> = (Type extends TConstructor ? Type['instanceType'] : TNever);
|
|
1952
1948
|
export type TInstanceTypeAction<Type extends TSchema, Result extends TSchema = TCanInstantiate<[Type]> extends true ? TInstanceTypeOperation<Type> : TInstanceTypeDeferred<Type>> = Result;
|
|
1953
1949
|
export declare function InstanceTypeAction<Type extends TSchema>(type: Type, options: TSchemaOptions): TInstanceTypeAction<Type>;
|
|
@@ -2040,7 +2036,7 @@ export declare function ParametersDeferred<Type extends TSchema>(type: Type, opt
|
|
|
2040
2036
|
/** Applies a Parameters action to the given type. */
|
|
2041
2037
|
export type TParameters<Type extends TSchema> = (TParametersAction<Type>);
|
|
2042
2038
|
/** Applies a Parameters action to the given type. */
|
|
2043
|
-
declare function Parameters
|
|
2039
|
+
export declare function Parameters<Type extends TSchema>(type: Type, options?: TSchemaOptions): TParameters<Type>;
|
|
2044
2040
|
type TParametersOperation<Type extends TSchema, Parameters extends TSchema[] = Type extends TFunction ? Type['parameters'] : [], InstantiatedParameters extends TSchema[] = TInstantiateElements<{}, TState<[], []>, Parameters>, Result extends TSchema = TTuple<InstantiatedParameters>> = Result;
|
|
2045
2041
|
export type TParametersAction<Type extends TSchema, Result extends TSchema = TCanInstantiate<[Type]> extends true ? TParametersOperation<Type> : TParametersDeferred<Type>> = Result;
|
|
2046
2042
|
export declare function ParametersAction<Type extends TSchema>(type: Type, options: TSchemaOptions): TParametersAction<Type>;
|
|
@@ -2184,9 +2180,9 @@ export type TOptional<Type extends TSchema = TSchema> = (Type & {
|
|
|
2184
2180
|
'~optional': true;
|
|
2185
2181
|
});
|
|
2186
2182
|
/** Applies an Optional modifier to the given type. */
|
|
2187
|
-
declare function Optional
|
|
2183
|
+
export declare function Optional<Type extends TSchema>(type: Type): TAddOptional<Type>;
|
|
2188
2184
|
/** Returns true if the given value is TOptional */
|
|
2189
|
-
declare function IsOptional
|
|
2185
|
+
export declare function IsOptional(value: unknown): value is TOptional<TSchema>;
|
|
2190
2186
|
type StaticLast<Stack extends string[], Direction extends StaticDirection, Context extends TProperties, This extends TProperties, Type extends TSchema, Result extends unknown[]> = (Type extends TRest<infer RestType extends TSchema> ? RestType extends TArray<infer ArrayType extends TSchema> ? [...Result, ...TStaticElement<Stack, Direction, Context, This, ArrayType>[0][]] : [...Result, never] : [...Result, ...TStaticElement<Stack, Direction, Context, This, Type>]);
|
|
2191
2187
|
type TStaticElement<Stack extends string[], Direction extends StaticDirection, Context extends TProperties, This extends TProperties, Type extends TSchema, IsReadonly extends boolean = Type extends TReadonly$1 ? true : false, IsOptional extends boolean = Type extends TOptional ? true : false, Inferred extends unknown = StaticType<Stack, Direction, Context, This, Type>, Result extends [unknown?] = ([IsReadonly, IsOptional] extends [true, true] ? [Readonly<Inferred>?] : [IsReadonly, IsOptional] extends [false, true] ? [Inferred?] : [IsReadonly, IsOptional] extends [true, false] ? [Readonly<Inferred>] : [Inferred])> = Result;
|
|
2192
2188
|
export type TStaticElements<Stack extends string[], Direction extends StaticDirection, Context extends TProperties, This extends TProperties, Types extends TSchema[], Result extends unknown[] = []> = (Types extends [infer Last extends TSchema] ? StaticLast<Stack, Direction, Context, This, Last, Result> : Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TStaticElements<Stack, Direction, Context, This, Right, [...Result, ...TStaticElement<Stack, Direction, Context, This, Left>]> : Result);
|
|
@@ -2449,7 +2445,7 @@ export type TModule<Declarations extends TProperties> = (TModuleInstantiate<{},
|
|
|
2449
2445
|
/** Creates a Module with the given declarations */
|
|
2450
2446
|
export declare function Module<Declarations extends TProperties>(declarations: Declarations, options?: TSchemaOptions): TModule<Declarations>;
|
|
2451
2447
|
declare namespace index_d_exports$1 {
|
|
2452
|
-
export { AddImmutable, AddImmutableDeferred, AddOptional, AddOptionalDeferred, AddReadonly, AddReadonlyDeferred, Capitalize$1 as Capitalize, CapitalizeDeferred, Conditional, ConditionalDeferred, ConstructorParameters, ConstructorParametersDeferred, Evaluate, EvaluateDeferred, Exclude$1 as Exclude, ExcludeDeferred, Extract$1 as Extract, ExtractDeferred, Index, IndexDeferred, InstanceType
|
|
2448
|
+
export { AddImmutable, AddImmutableDeferred, AddOptional, AddOptionalDeferred, AddReadonly, AddReadonlyDeferred, Capitalize$1 as Capitalize, CapitalizeDeferred, Conditional, ConditionalDeferred, ConstructorParameters, ConstructorParametersDeferred, Evaluate, EvaluateDeferred, Exclude$1 as Exclude, ExcludeDeferred, Extract$1 as Extract, ExtractDeferred, Index, IndexDeferred, InstanceType, InstanceTypeDeferred, Interface, InterfaceDeferred, IsInterfaceDeferred, KeyOf, KeyOfDeferred, Lowercase$1 as Lowercase, LowercaseDeferred, Mapped, MappedDeferred, Module, ModuleDeferred, NonNullable, NonNullableDeferred, Omit$1 as Omit, OmitDeferred, Parameters, ParametersDeferred, Partial$1 as Partial, PartialDeferred, Pick$1 as Pick, PickDeferred, ReadonlyObject, ReadonlyObjectDeferred, ReadonlyType, RemoveImmutable, RemoveImmutableDeferred, RemoveOptional, RemoveOptionalDeferred, RemoveReadonly, RemoveReadonlyDeferred, Required$1 as Required, RequiredDeferred, ReturnType$1 as ReturnType, ReturnTypeDeferred, TAddImmutable, TAddImmutableDeferred, TAddOptional, TAddOptionalDeferred, TAddReadonly, TAddReadonlyDeferred, TCapitalize, TCapitalizeDeferred, TConditional, TConditionalDeferred, TConstructorParameters, TConstructorParametersDeferred, TEvaluate, TEvaluateDeferred, TExclude, TExcludeDeferred, TExtract, TExtractDeferred, TIndex, TIndexDeferred, TInstanceType, TInstanceTypeDeferred, TInterface, TInterfaceDeferred, TKeyOf, TKeyOfDeferred, TLowercase, TLowercaseDeferred, TMapped, TMappedDeferred, TModule, TModuleDeferred, TNonNullable, TNonNullableDeferred, TOmit, TOmitDeferred, TParameters, TParametersDeferred, TPartial, TPartialDeferred, TPick, TPickDeferred, TReadonlyObject, TReadonlyObjectDeferred, TRemoveImmutable, TRemoveImmutableDeferred, TRemoveOptional, TRemoveOptionalDeferred, TRemoveReadonly, TRemoveReadonlyDeferred, TRequired, TRequiredDeferred, TReturnType, TReturnTypeDeferred, TUncapitalize, TUncapitalizeDeferred, TUppercase, TUppercaseDeferred, TWith, TWithDeferred, Uncapitalize$1 as Uncapitalize, UncapitalizeDeferred, Uppercase$1 as Uppercase, UppercaseDeferred, With, WithDeferred };
|
|
2453
2449
|
}
|
|
2454
2450
|
type TComparer<Left extends TSchema, Right extends TSchema, CompareResult extends TCompareResult = TCompare<Left, Right>, Result extends 0 | 1 = (CompareResult extends typeof CompareResultRightInside ? 1 : CompareResult extends typeof CompareResultDisjoint ? 1 : 0)> = Result;
|
|
2455
2451
|
type TInsert<Type extends TSchema, Types extends TSchema[], Result extends TSchema[] = []> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TComparer<Type, Left> extends 1 ? TInsert<Type, Right, [...Result, Left]> : [...Result, Type, ...Types] : [...Result, Type]);
|
|
@@ -2469,7 +2465,7 @@ export type TPriority<Types extends TSchema[], Result extends TSchema[] = TSort<
|
|
|
2469
2465
|
*/
|
|
2470
2466
|
export declare function Priority<Types extends TSchema[]>(types: [...Types]): TPriority<Types>;
|
|
2471
2467
|
declare namespace index_d_exports {
|
|
2472
|
-
export { AddImmutable, AddImmutableDeferred, AddOptional, AddOptionalDeferred, AddReadonly, AddReadonlyDeferred, Any, _Array_ as Array, ArrayOptions, BigInt$1 as BigInt, BigIntPattern, Boolean, Broaden, Call, CallConstruct, CanComposite, Capitalize$1 as Capitalize, CapitalizeAction, CapitalizeDeferred, CapitalizeInstantiate, Codec, CollapseToObject, Compare, CompareResultDisjoint, CompareResultEqual, CompareResultLeftInside, CompareResultRightInside, Composite, Conditional, ConditionalAction, ConditionalDeferred, ConditionalInstantiate, Constructor, ConstructorOptions, ConstructorParameters, ConstructorParametersAction, ConstructorParametersDeferred, ConstructorParametersInstantiate, ConvertToIntegerKey, Cyclic, CyclicCandidates, CyclicCheck, CyclicDependencies, CyclicExtends, CyclicOptions, CyclicTarget, Decode, DecodeBuilder, Deferred, Dependent$1 as Dependent, DependentOptions, Distribute, Encode, EncodeBuilder, Enum, Evaluate, EvaluateAction, EvaluateDeferred, EvaluateDependent, EvaluateEnum, EvaluateInstantiate, EvaluateIntersect, EvaluateTemplateLiteral, EvaluateType, EvaluateUnion, EvaluateUnionFast, Exclude$1 as Exclude, ExcludeAction, ExcludeDeferred, ExcludeInstantiate, Extends
|
|
2468
|
+
export { AddImmutable, AddImmutableDeferred, AddOptional, AddOptionalDeferred, AddReadonly, AddReadonlyDeferred, Any, _Array_ as Array, ArrayOptions, BigInt$1 as BigInt, BigIntPattern, Boolean, Broaden, Call, CallConstruct, CanComposite, Capitalize$1 as Capitalize, CapitalizeAction, CapitalizeDeferred, CapitalizeInstantiate, Codec, CollapseToObject, Compare, CompareResultDisjoint, CompareResultEqual, CompareResultLeftInside, CompareResultRightInside, Composite, Conditional, ConditionalAction, ConditionalDeferred, ConditionalInstantiate, Constructor, ConstructorOptions, ConstructorParameters, ConstructorParametersAction, ConstructorParametersDeferred, ConstructorParametersInstantiate, ConvertToIntegerKey, Cyclic, CyclicCandidates, CyclicCheck, CyclicDependencies, CyclicExtends, CyclicOptions, CyclicTarget, Decode, DecodeBuilder, Deferred, Dependent$1 as Dependent, DependentOptions, Distribute, Encode, EncodeBuilder, Enum, Evaluate, EvaluateAction, EvaluateDeferred, EvaluateDependent, EvaluateEnum, EvaluateInstantiate, EvaluateIntersect, EvaluateTemplateLiteral, EvaluateType, EvaluateUnion, EvaluateUnionFast, Exclude$1 as Exclude, ExcludeAction, ExcludeDeferred, ExcludeInstantiate, Extends, result_d_exports as ExtendsResult, Extract$1 as Extract, ExtractAction, ExtractDeferred, ExtractInstantiate, Flatten, _Function_ as Function, FunctionOptions, Generic, Identifier, Immutable, Index, IndexAction, IndexDeferred, IndexInstantiate, Infer, InstanceType, InstanceTypeAction, InstanceTypeDeferred, InstanceTypeInstantiate, Instantiate, InstantiateCyclic, Integer$1 as Integer, IntegerKey, IntegerPattern, Interface, InterfaceAction, InterfaceDeferred, InterfaceInstantiate, Intersect, IntersectOptions, InvalidLiteralValue, IsAny, IsArray, IsBigInt, IsBoolean, IsCall, IsCodec, IsConstructor, IsCyclic, IsDeferred, IsDependent, IsEnum, IsEnumValue, IsFunction, IsGeneric, IsIdentifier, IsImmutable, IsInfer, IsInteger, IsInterfaceDeferred, IsIntersect, IsKind, IsLiteral, IsLiteralBigInt, IsLiteralBoolean, IsLiteralNumber, IsLiteralString, IsLiteralValue, IsNever, IsNull, IsNumber, IsObject, IsOptional, IsParameter, IsReadonly, IsRecord, IsRef, IsRefine, IsRefinement, IsRest, IsSchema, IsString, IsSymbol, IsTemplateLiteral, IsTemplateLiteralDeferred, IsTemplateLiteralFinite, IsTemplateLiteralPattern, IsThis, IsTuple, IsTypeScriptEnumLike, IsUndefined, IsUnion, IsUnknown, IsUnsafe, IsVoid, KeyOf, KeyOfAction, KeyOfDeferred, KeyOfInstantiate, KeysToIndexer, Literal, LiteralTypeName, Lowercase$1 as Lowercase, LowercaseAction, LowercaseDeferred, LowercaseInstantiate, Mapped, MappedAction, MappedDeferred, MappedInstantiate, Module, ModuleDeferred, ModuleInstantiate, Narrow, Never, NeverPattern, NonNullable, NonNullableAction, NonNullableDeferred, NonNullableInstantiate, Null, Number$1 as Number, NumberKey, NumberPattern, _Object_$1 as Object, ObjectOptions, Omit$1 as Omit, OmitAction, OmitDeferred, OmitInstantiate, Optional, Parameter$1 as Parameter, Parameters, ParametersAction, ParametersDeferred, ParametersInstantiate, ParsePatternIntoTypes, ParseTemplateIntoTypes, Partial$1 as Partial, PartialAction, PartialDeferred, PartialInstantiate, Pick$1 as Pick, PickAction, PickDeferred, PickInstantiate, Priority, PropertyKeys, PropertyValues, Readonly$2 as Readonly, ReadonlyObject, ReadonlyObjectAction, ReadonlyObjectDeferred, ReadonlyObjectInstantiate, ReadonlyType, Record$1 as Record, RecordAction, RecordDeferred, RecordFromPattern, RecordInstantiate, RecordKey, RecordOptions, RecordPattern, RecordPatternToType, RecordValue, Ref, RefInstantiate, Refine, RefineAdd, RemoveImmutable, RemoveImmutableDeferred, RemoveOptional, RemoveOptionalDeferred, RemoveReadonly, RemoveReadonlyDeferred, Required$1 as Required, RequiredAction, RequiredArray, RequiredDeferred, RequiredInstantiate, Rest, ReturnType$1 as ReturnType, ReturnTypeAction, ReturnTypeDeferred, ReturnTypeInstantiate, Script, Static, StaticAny, StaticArray, StaticBigInt, StaticBoolean, StaticCodec, StaticConstructor, StaticCyclic, StaticDecode, StaticDependent, StaticDirection, StaticEncode, StaticEnum, StaticEvaluate, StaticFunction, StaticInstantiatedParameters, StaticInteger, StaticIntersect, StaticLiteral, StaticNever, StaticNull, StaticNumber, StaticObject, StaticParse, StaticProperties, StaticRecord, StaticRef, StaticString, StaticSymbol, StaticTemplateLiteral, StaticThis, StaticTuple, StaticType, StaticUndefined, StaticUnion, StaticUnknown, StaticUnsafe, StaticVoid, String$1 as String, StringKey, StringPattern, Symbol, TAddImmutable, TAddImmutableDeferred, TAddOptional, TAddOptionalDeferred, TAddReadonly, TAddReadonlyDeferred, TAny, TArray, TArrayOptions, TBigInt$1 as TBigInt, TBoolean, TBroaden, TCall, TCallConstruct, TCanComposite, TCapitalize, TCapitalizeAction, TCapitalizeDeferred, TCapitalizeInstantiate, TCodec, TCollapseToObject, TCompare, TCompareResult, TComposite, TConditional, TConditionalAction, TConditionalDeferred, TConditionalInstantiate, TConstructor, TConstructorParameters, TConstructorParametersAction, TConstructorParametersDeferred, TConstructorParametersInstantiate, TConvertToIntegerKey, TCyclic, TCyclicCandidates, TCyclicCheck, TCyclicDependencies, TCyclicExtends, TCyclicTarget, TDecodeCallback, TDeferred, TDependent$1 as TDependent, TDistribute$1 as TDistribute, TEncodeCallback, TEnum, TEnumValue, TEvaluate, TEvaluateAction, TEvaluateDeferred, TEvaluateDependent, TEvaluateEnum, TEvaluateInstantiate, TEvaluateIntersect, TEvaluateTemplateLiteral, TEvaluateType, TEvaluateUnion, TEvaluateUnionFast, TExclude, TExcludeAction, TExcludeDeferred, TExcludeInstantiate, TExtends, TExtract, TExtractAction, TExtractDeferred, TExtractInstantiate, TFlatten, TFormat, TFunction, TGeneric, TIdentifier, TImmutable, TIndex, TIndexAction, TIndexDeferred, TIndexInstantiate, TInfer, TInstanceType, TInstanceTypeAction, TInstanceTypeDeferred, TInstanceTypeInstantiate, TInstantiate, TInstantiateCyclic, TInteger$1 as TInteger, TIntegerKey, TInterface, TInterfaceAction, TInterfaceDeferred, TInterfaceInstantiate, TIntersect, TIntersectOptions, TIsTemplateLiteralFinite, TIsTemplateLiteralPattern, TKeyOf, TKeyOfAction, TKeyOfDeferred, TKeyOfInstantiate, TKeysToIndexer, TLiteral, TLiteralTypeName, TLiteralValue, TLowercase, TLowercaseAction, TLowercaseDeferred, TLowercaseInstantiate, TMapped, TMappedAction, TMappedDeferred, TMappedInstantiate, TModule, TModuleDeferred, TModuleInstantiate, TNarrow, TNever, TNonNullable, TNonNullableAction, TNonNullableDeferred, TNonNullableInstantiate, TNull, TNumber$1 as TNumber, TNumberKey, TNumberOptions, TObject, TObjectOptions, TOmit, TOmitAction, TOmitDeferred, TOmitInstantiate, TOptional, TParameter$1 as TParameter, TParameters, TParametersAction, TParametersDeferred, TParametersInstantiate, TParsePatternIntoTypes, TParseTemplateIntoTypes, TPartial, TPartialAction, TPartialDeferred, TPartialInstantiate, TPick, TPickAction, TPickDeferred, TPickInstantiate, TPriority, TProperties, TPropertyKeys, TPropertyValues, TReadonly$1 as TReadonly, TReadonlyObject, TReadonlyObjectAction, TReadonlyObjectDeferred, TReadonlyObjectInstantiate, TRecord, TRecordAction, TRecordDeferred, TRecordInstantiate, TRecordKey, TRecordPattern, TRecordPatternToType, TRecordValue, TRef, TRefInstantiate, TRefine, TRefineAdd, TRefineCheckCallback, TRefineErrorCallback, TRefinement, TRemoveImmutable, TRemoveImmutableDeferred, TRemoveOptional, TRemoveOptionalDeferred, TRemoveReadonly, TRemoveReadonlyDeferred, TRequired, TRequiredAction, TRequiredArray, TRequiredDeferred, TRequiredInstantiate, TRest, TReturnType, TReturnTypeAction, TReturnTypeDeferred, TReturnTypeInstantiate, TSchema, TSchemaOptions, TScript, TScriptOptions, TStaticElements, TString$1 as TString, TStringKey, TStringOptions, TSymbol, TTemplateLiteral, TTemplateLiteralDecode, TTemplateLiteralDecodeUnsafe, TTemplateLiteralDeferred, TTemplateLiteralEncode, TTemplateLiteralFromString, TTemplateLiteralFromTypes, TTemplateLiteralStatic, TThis, TTuple, TTupleOptions, TTupleToIntersect, TTupleToUnion, TTypeScriptEnumLike, TTypeScriptEnumToEnumValues, TUncapitalize, TUncapitalizeAction, TUncapitalizeDeferred, TUncapitalizeInstantiate, TUndefined, TUnion, TUnionLast, TUnionToIntersect, TUnionToTuple, TUnknown, TUnsafe, TUppercase, TUppercaseAction, TUppercaseDeferred, TUppercaseInstantiate, TVoid, TWith, TWithAction, TWithDeferred, TWithInstantiate, TemplateLiteral, TemplateLiteralCreate, TemplateLiteralDecode, TemplateLiteralDecodeUnsafe, TemplateLiteralDeferred, TemplateLiteralEncode, TemplateLiteralFromString, TemplateLiteralFromTypes, This, Tuple, TupleOptions, TypeScriptEnumToEnumValues, Uncapitalize$1 as Uncapitalize, UncapitalizeAction, UncapitalizeDeferred, UncapitalizeInstantiate, Undefined, Union, UnionOptions, Unknown, Unsafe, Uppercase$1 as Uppercase, UppercaseAction, UppercaseDeferred, UppercaseInstantiate, Void, With, WithAction, WithDeferred, WithInstantiate, _Array_, _Function_, _Object_$1 as _Object_ };
|
|
2473
2469
|
}
|
|
2474
2470
|
export type TScriptOptions = TArrayOptions | TIntersectOptions | TNumberOptions | TObjectOptions | TStringOptions | TTupleOptions;
|
|
2475
2471
|
/** Parses a string-based TypeScript type expression into a TypeBox type. */
|
|
@@ -2482,5 +2478,5 @@ export declare function Script<Context extends TProperties, Script extends strin
|
|
|
2482
2478
|
export declare function Script<Script extends string>(input: Script, options: TScriptOptions): TScript<{}, Script>;
|
|
2483
2479
|
/** Parses a type from a TypeScript type expression */
|
|
2484
2480
|
export declare function Script<Context extends TProperties, Script extends string>(context: Context, input: Script, options: TScriptOptions): TScript<Context, Script>;
|
|
2485
|
-
export { BigInt$1 as BigInt, Capitalize$1 as Capitalize, Dependent$1 as Dependent, Exclude$1 as Exclude,
|
|
2481
|
+
export { BigInt$1 as BigInt, Capitalize$1 as Capitalize, Dependent$1 as Dependent, Exclude$1 as Exclude, Extract$1 as Extract, Integer$1 as Integer, Lowercase$1 as Lowercase, Number$1 as Number, Omit$1 as Omit, Parameter$1 as Parameter, Partial$1 as Partial, Pick$1 as Pick, Readonly$2 as Readonly, Record$1 as Record, Required$1 as Required, ReturnType$1 as ReturnType, String$1 as String, TBigInt$1 as TBigInt, TDependent$1 as TDependent, TDistribute$1 as TDistribute, TInteger$1 as TInteger, TNumber$1 as TNumber, TParameter$1 as TParameter, TReadonly$1 as TReadonly, TString$1 as TString, Uncapitalize$1 as Uncapitalize, Uppercase$1 as Uppercase, _Object_$1 as _Object_, index_d_exports, result_d_exports };
|
|
2486
2482
|
//# sourceMappingURL=typebox.d.mts.map
|