@agntn/tools 0.3.0 โ 0.3.2
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 +1 -0
- package/dist/_chunks/causes.mjs +76 -0
- package/dist/_chunks/index.d.mts +3 -2
- package/dist/_chunks/libs/typebox.d.mts +43 -63
- package/dist/_chunks/libs/typebox.mjs +252 -268
- package/dist/_chunks/mcp-answers.d.mts +8 -0
- package/dist/_chunks/mcp-answers.mjs +12 -2
- package/dist/ai.mjs +2 -1
- package/dist/cli.d.mts +18 -5
- package/dist/cli.mjs +107 -34
- package/dist/h3.d.mts +5 -1
- package/dist/h3.mjs +5 -1
- package/dist/index.d.mts +2 -2
- package/dist/mcp.d.mts +4 -2
- package/dist/mcp.mjs +7 -2
- package/dist/omp.mjs +3 -1
- package/dist/pi.d.mts +20 -2
- package/dist/pi.mjs +73 -3
- package/dist/toolkit.d.mts +16 -1
- package/dist/toolkit.mjs +22 -1
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -24,6 +24,7 @@ MCP wants an `inputSchema`. Pi wants `parameters` and a prompt snippet. OMP swap
|
|
|
24
24
|
- ๐งช **Schema rules at definition time.** An open object or a union of literals fails in `defineTool`. Not three weeks later in a model's hands.
|
|
25
25
|
- โณ **Progress that gets somewhere.** `progress?.("still at it")` turns into `onUpdate` in Pi and OMP, `notifications/progress` in MCP and one live line in your terminal. A slow call stops looking like a dead one.
|
|
26
26
|
- ๐ **Ask the person, not the model.** `ask?.({ message, schema })` becomes MCP elicitation, or one dialog per field in Pi and OMP. Three puzzles match? Let them pick instead of letting the model guess.
|
|
27
|
+
- ๐ **Tools when you need them.** `AGNTN_PI_EXPOSURE=deferred` keeps Pi tools out of the prompt. The ones nobody called today stop riding along. Turn on `tool_search` and the model still finds them.
|
|
27
28
|
- โจ๏ธ **A CLI on the side.** `runCli` turns the same tools into commands, no CLI library needed. Flags come from the schema. Hints add positionals, short flags and stdin.
|
|
28
29
|
- ๐ **Runs anywhere.** No `node:*` import in the core or the host adapters. The docs site runs them in a browser tab. The CLI is the one Node part, as a CLI should be.
|
|
29
30
|
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { __exportAll } from "./rolldown-runtime.mjs";
|
|
2
|
+
import { ToolInputError, sanitizeLine } from "./src.mjs";
|
|
3
|
+
var causes_exports = /* @__PURE__ */ __exportAll({
|
|
4
|
+
causeLines: () => causeLines,
|
|
5
|
+
throwWithCauses: () => throwWithCauses
|
|
6
|
+
});
|
|
7
|
+
const CAUSE_DEPTH = 5;
|
|
8
|
+
const CAUSE_LENGTH = 300;
|
|
9
|
+
function causeLines(error) {
|
|
10
|
+
const lines = [];
|
|
11
|
+
const seen = /* @__PURE__ */ new Set([error]);
|
|
12
|
+
let above = error instanceof Error ? error.message : String(error);
|
|
13
|
+
let level = nextCause(error);
|
|
14
|
+
for (let depth = 0; depth < CAUSE_DEPTH && level !== void 0 && !seen.has(level); depth += 1) {
|
|
15
|
+
seen.add(level);
|
|
16
|
+
const text = causeText(level);
|
|
17
|
+
if (text !== "" && !above.includes(text)) lines.push(`caused by: ${text}`);
|
|
18
|
+
if (text !== "") above = text;
|
|
19
|
+
level = nextCause(level);
|
|
20
|
+
}
|
|
21
|
+
return lines;
|
|
22
|
+
}
|
|
23
|
+
function nextCause(error) {
|
|
24
|
+
if (!(error instanceof Error)) return void 0;
|
|
25
|
+
if (error.cause !== void 0) return error.cause;
|
|
26
|
+
return error instanceof AggregateError ? error.errors[0] : void 0;
|
|
27
|
+
}
|
|
28
|
+
function causeText(cause) {
|
|
29
|
+
let text = "";
|
|
30
|
+
if (cause instanceof Error) text = cause.message;
|
|
31
|
+
else if (typeof cause === "string") text = cause;
|
|
32
|
+
const safe = redactCredentials(boundedLine(text));
|
|
33
|
+
return safe.length > CAUSE_LENGTH ? `${safe.slice(0, CAUSE_LENGTH).toWellFormed()}...` : safe;
|
|
34
|
+
}
|
|
35
|
+
function boundedLine(text) {
|
|
36
|
+
const line = sanitizeLine(text);
|
|
37
|
+
const limit = CAUSE_LENGTH * 4;
|
|
38
|
+
if (line.length <= limit) return line;
|
|
39
|
+
return `${line.slice(0, line.lastIndexOf(" ", limit) + 1)}...`;
|
|
40
|
+
}
|
|
41
|
+
const URL_HOST = /\b((?:[a-z][a-z\d+.-]*:[/\\]+|(?:https?|wss?|ftp):))[^\s/\\?#]*?(?=[:,.;)\]"']*(?:\s|$)|[/\\?#@])/gi;
|
|
42
|
+
const FIELD = /(["']?)([a-z][\w-]*)\1(\s*[=:]\s*)(?=\S)/gi;
|
|
43
|
+
const SECRET_NAME = /token|key|secret|pass|auth|sig|session|credential|cookie/i;
|
|
44
|
+
const JSON_QUOTE = /"[^]*"(?:\.\.\.)? is not valid JSON/g;
|
|
45
|
+
function redactCredentials(text) {
|
|
46
|
+
return cutAtSecret(cutAtUrl(text.replaceAll(JSON_QUOTE, "input is not valid JSON")));
|
|
47
|
+
}
|
|
48
|
+
function cutAtUrl(text) {
|
|
49
|
+
for (const url of text.matchAll(URL_HOST)) {
|
|
50
|
+
const [whole, scheme = ""] = url;
|
|
51
|
+
if (text.includes("@", url.index)) return `${text.slice(0, url.index)}${scheme}REDACTED`;
|
|
52
|
+
const end = url.index + whole.length;
|
|
53
|
+
if ("/\\?#".includes(text[end] ?? " ")) return `${text.slice(0, end)}/REDACTED`;
|
|
54
|
+
}
|
|
55
|
+
return text;
|
|
56
|
+
}
|
|
57
|
+
function cutAtSecret(text) {
|
|
58
|
+
for (const field of text.matchAll(FIELD)) {
|
|
59
|
+
const [whole, quote = "", name = "", separator = ""] = field;
|
|
60
|
+
if (isSecretField(quote, name, separator)) return `${text.slice(0, field.index + whole.length)}REDACTED`;
|
|
61
|
+
}
|
|
62
|
+
return text;
|
|
63
|
+
}
|
|
64
|
+
function isSecretField(quote, name, separator) {
|
|
65
|
+
if (!SECRET_NAME.test(name)) return false;
|
|
66
|
+
if (!separator.includes(":") || quote !== "") return true;
|
|
67
|
+
return name.includes("-") || /^(?:authorization|cookie)$/i.test(name);
|
|
68
|
+
}
|
|
69
|
+
function throwWithCauses(error) {
|
|
70
|
+
const lines = error instanceof ToolInputError ? [] : causeLines(error);
|
|
71
|
+
if (lines.length === 0 || !(error instanceof Error)) throw error;
|
|
72
|
+
const shown = new Error([error.message, ...lines].join("\n"), { cause: error });
|
|
73
|
+
shown.name = error.name;
|
|
74
|
+
throw shown;
|
|
75
|
+
}
|
|
76
|
+
export { causeLines, causes_exports, throwWithCauses };
|
package/dist/_chunks/index.d.mts
CHANGED
|
@@ -39,8 +39,9 @@ export type ToolEffect = "read" | "write" | "destructive" | "exec";
|
|
|
39
39
|
* name without its package prefix, in kebab case, and every property is a flag.
|
|
40
40
|
*/
|
|
41
41
|
export interface ToolCliHints {
|
|
42
|
-
/** Command name instead of the derived one. */
|
|
42
|
+
/** Command name instead of the derived one. Two words, as `servers list`, put it in a group. */
|
|
43
43
|
readonly command?: string;
|
|
44
|
+
/** More words for the command's last word: `ls` reaches `servers list` as `servers ls`. */
|
|
44
45
|
readonly aliases?: readonly string[];
|
|
45
46
|
/** Line in the command list. Defaults to the first sentence of `description`. */
|
|
46
47
|
readonly description?: string;
|
|
@@ -105,7 +106,7 @@ export interface ToolCallContext {
|
|
|
105
106
|
* replayed, so ask before the first effect and in the same order every time.
|
|
106
107
|
*/
|
|
107
108
|
ask?: ToolAsk;
|
|
108
|
-
/** Pi's or OMP's
|
|
109
|
+
/** Pi's or OMP's `ctx`, the CLI's `CliHost`, MCP's `McpHost` or nothing. Narrow it yourself. */
|
|
109
110
|
host?: unknown;
|
|
110
111
|
}
|
|
111
112
|
export interface ToolDefinition<Input extends TObject = TObject, Details = unknown, Name extends string = string> {
|
|
@@ -277,8 +277,7 @@ type TReadonly$1<Type extends TSchema = TSchema> = (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
279
|
export declare function IsReadonly(value: unknown): value is TReadonly$1<TSchema>;
|
|
280
|
-
type
|
|
281
|
-
type TAddReadonlyAction<Type extends TSchema, Result extends TSchema = TAddReadonlyOperation<Type>> = Result;
|
|
280
|
+
type TAddReadonlyAction<Type extends TSchema, Result extends TSchema = '~readonly' extends keyof Type ? Type : TReadonly$1<Type>> = Result;
|
|
282
281
|
type TAddReadonlyInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiateType extends TSchema = TInstantiateType<Context, State, Type>> = TAddReadonlyAction<InstantiateType>;
|
|
283
282
|
export type StaticUnknown = unknown;
|
|
284
283
|
/** Represents an Unknown type. */
|
|
@@ -547,31 +546,19 @@ declare function String$1(options?: TStringOptions): TString$1;
|
|
|
547
546
|
export declare function IsString(value: unknown): value is TString$1;
|
|
548
547
|
export declare function TemplateLiteralCreate<Pattern extends string>(pattern: Pattern): never;
|
|
549
548
|
type TUnreachable = never;
|
|
549
|
+
type ObjectLike$4 = Record<PropertyKey, any>;
|
|
550
|
+
/** Performs an Object assign using the Left and Right object types. */
|
|
551
|
+
type TAssign<Left extends ObjectLike$4, Right extends ObjectLike$4, Assigned extends ObjectLike$4 = Omit<Left, keyof Right> & Right> = { [Key in keyof Assigned]: Assigned[Key]; } & {};
|
|
552
|
+
/** Performs an Object assign using the Left and Right object types. */
|
|
553
|
+
declare function Assign<Left extends ObjectLike$4, Right extends ObjectLike$4>(left: Left, right: Right): TAssign<Left, Right>;
|
|
550
554
|
type ObjectLike$3 = Record<PropertyKey, any>;
|
|
551
|
-
/**
|
|
552
|
-
|
|
553
|
-
* creates a new GC handle per assignment.
|
|
554
|
-
*/
|
|
555
|
-
type TAssign<Left extends ObjectLike$3, Right extends ObjectLike$3, Assigned extends ObjectLike$3 = Omit<Left, keyof Right> & Right> = { [Key in keyof Assigned]: Assigned[Key]; } & {};
|
|
556
|
-
/**
|
|
557
|
-
* Performs an Object assign using the Left and Right object types. We track this operation as it
|
|
558
|
-
* creates a new GC handle per assignment.
|
|
559
|
-
*/
|
|
560
|
-
declare function Assign<Left extends ObjectLike$3, Right extends ObjectLike$3>(left: Left, right: Right): TAssign<Left, Right>;
|
|
561
|
-
/**
|
|
562
|
-
* Returns a Clone of the given value. This function is similar to structuredClone()
|
|
563
|
-
* but also supports deep cloning instances of Map, Set and TypeArray.
|
|
564
|
-
*/
|
|
565
|
-
declare function Clone<Value extends unknown = unknown>(value: Value): Value;
|
|
555
|
+
/** Returns a shallow clone of the given object. */
|
|
556
|
+
declare function Clone<Value extends ObjectLike$3 = ObjectLike$3>(value: Value): Value;
|
|
566
557
|
type ObjectLike$2 = Record<PropertyKey, any>;
|
|
567
|
-
/**
|
|
568
|
-
* Creates an object with hidden, enumerable, and optional property sets. This function
|
|
569
|
-
* ensures types are instantiated according to configuration rules for enumerable and
|
|
570
|
-
* non-enumerable properties.
|
|
571
|
-
*/
|
|
558
|
+
/** Creates an object with hidden, enumerable, and optional property sets. */
|
|
572
559
|
declare function Create(hidden: ObjectLike$2, enumerable: ObjectLike$2, options?: ObjectLike$2): ObjectLike$2;
|
|
573
560
|
type ObjectLike$1 = Record<PropertyKey, any>;
|
|
574
|
-
/** Discards
|
|
561
|
+
/** Discards property keys from the given object. */
|
|
575
562
|
declare function Discard(value: ObjectLike$1, propertyKeys: PropertyKey[]): ObjectLike$1;
|
|
576
563
|
interface TMetrics {
|
|
577
564
|
/** The number of times Assign() was called */
|
|
@@ -588,10 +575,7 @@ interface TMetrics {
|
|
|
588
575
|
/** TypeBox instantiation metrics */
|
|
589
576
|
declare const Metrics: TMetrics;
|
|
590
577
|
type ObjectLike = Record<PropertyKey, any>;
|
|
591
|
-
/**
|
|
592
|
-
* Updates a value with new properties while preserving property enumerability. Use this function to modify
|
|
593
|
-
* existing types without altering their configuration.
|
|
594
|
-
*/
|
|
578
|
+
/** Updates an existing type with additional hidden and enumerable properties while preserving property configuration. */
|
|
595
579
|
declare function Update(current: ObjectLike, hidden: ObjectLike, enumerable: ObjectLike): ObjectLike;
|
|
596
580
|
declare namespace memory_d_exports {
|
|
597
581
|
export { Assign, Clone, Create, Discard, Metrics, TAssign, TMetrics, Update };
|
|
@@ -1259,43 +1243,25 @@ type TFromUnion$8<Template extends string, Types extends TSchema[], Result exten
|
|
|
1259
1243
|
type TFromType$18<Template extends string, Type extends TSchema, Result extends string = (Type extends TUnion<infer Types extends TSchema[]> ? TFromUnion$8<Template, Types> : Type extends TLiteral<infer Value extends TLiteralValue> ? TFromLiteral$5<Template, Value> : Type extends TBigInt$1 ? TFromBigInt<Template> : Type extends TString$1 ? TFromString<Template> : Type extends TNumber$1 ? TFromNumber<Template> : Type extends TInteger$1 ? TFromInteger<Template> : never)> = Result;
|
|
1260
1244
|
type TFromSpan<Template extends string, Types extends TSchema[]> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TFromSpan<TFromType$18<Template, Left>, Right> : Template);
|
|
1261
1245
|
export type TTemplateLiteralStatic<Pattern extends string, Types extends TSchema[] = TParsePatternIntoTypes<Pattern>> = TFromSpan<'', Types>;
|
|
1262
|
-
type
|
|
1263
|
-
type
|
|
1264
|
-
type TRemoveReadonlyInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiateType extends TSchema = TInstantiateType<Context, State, Type>> = TRemoveReadonlyAction<InstantiateType>;
|
|
1265
|
-
/** Creates a deferred RemoveReadonly action. */
|
|
1266
|
-
export type TRemoveReadonlyDeferred<Type extends TSchema> = (TDeferred<'RemoveReadonly', [Type]>);
|
|
1267
|
-
/** Creates a deferred RemoveReadonly action. */
|
|
1268
|
-
export declare function RemoveReadonlyDeferred<Type extends TSchema>(type: Type, options?: TSchemaOptions): TRemoveReadonlyDeferred<Type>;
|
|
1269
|
-
/** Applies an RemoveReadonly action to a type. */
|
|
1270
|
-
export type TRemoveReadonly<Type extends TSchema> = (TRemoveReadonlyAction<Type>);
|
|
1271
|
-
/** Applies an RemoveReadonly action to a type. */
|
|
1272
|
-
export declare function RemoveReadonly<Type extends TSchema>(type: Type, options?: TSchemaOptions): TRemoveReadonly<Type>;
|
|
1246
|
+
type TTupleElementsToProperties<Types extends TSchema[], Result extends TProperties = {}> = (Types extends [...infer Left extends TSchema[], infer Right extends TSchema] ? TTupleElementsToProperties<Left, { [_ in Left['length']]: Right; } & Result> : { [Key in keyof Result]: Result[Key]; });
|
|
1247
|
+
type TTupleToObject<Type extends TTuple, Properties extends TProperties = TTupleElementsToProperties<Type['items']>, Result extends TSchema = TObject<Properties>> = Result;
|
|
1273
1248
|
type TRemoveOptionalOperation<Type extends TSchema, Result extends TSchema = Type extends TOptional<infer Type extends TSchema> ? TRemoveOptionalOperation<Type> : Type> = Result;
|
|
1274
1249
|
type TRemoveOptionalAction<Type extends TSchema, Result extends TSchema = TRemoveOptionalOperation<Type>> = Result;
|
|
1275
1250
|
type TRemoveOptionalInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiateType extends TSchema = TInstantiateType<Context, State, Type>> = TRemoveOptionalAction<InstantiateType>;
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
export
|
|
1280
|
-
|
|
1281
|
-
export type
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
type TTupleElementsToProperties<Types extends TSchema[], Result extends TProperties = {}> = (Types extends [...infer Left extends TSchema[], infer Right extends TSchema] ? TTupleElementsToProperties<Left, { [_ in Left['length']]: Right; } & Result> : { [Key in keyof Result]: Result[Key]; });
|
|
1285
|
-
type TTupleToObject<Type extends TTuple, Properties extends TProperties = TTupleElementsToProperties<Type['items']>, Result extends TSchema = TObject<Properties>> = Result;
|
|
1286
|
-
/** Returns true if the type is a valid operand to Composite. */
|
|
1287
|
-
export type TCanComposite<Type extends TSchema> = (Type extends TObject<infer _ extends TProperties> ? true : Type extends TTuple<infer _ extends TSchema[]> ? true : false);
|
|
1288
|
-
/** Returns true if the type is a valid operand to Composite. */
|
|
1289
|
-
export declare function CanComposite<Type extends TSchema>(type: Type): TCanComposite<Type>;
|
|
1290
|
-
type TIsReadonlyProperty<Left extends TSchema, Right extends TSchema> = (Left extends TReadonly$1<Left> ? Right extends TReadonly$1<Right> ? true : false : false);
|
|
1291
|
-
type TIsOptionalProperty<Left extends TSchema, Right extends TSchema> = (Left extends TOptional<Left> ? Right extends TOptional<Right> ? true : false : false);
|
|
1292
|
-
type TCompositeProperty<Left extends TSchema, Right extends TSchema, IsReadonly extends boolean = TIsReadonlyProperty<Left, Right>, IsOptional extends boolean = TIsOptionalProperty<Left, Right>, Evaluated extends TSchema = TEvaluateIntersect<[Left, Right]>, Property extends TSchema = TRemoveReadonly<TRemoveOptional<Evaluated>>> = ([IsReadonly, IsOptional] extends [true, true] ? TAddReadonly<TAddOptional<Property>> : [IsReadonly, IsOptional] extends [true, false] ? TAddReadonly<Property> : [IsReadonly, IsOptional] extends [false, true] ? TAddOptional<Property> : Property);
|
|
1293
|
-
type TCompositePropertyKey<Left extends TProperties, Right extends TProperties, Key extends PropertyKey, Result extends TSchema = (Key extends keyof Left ? Key extends keyof Right ? TCompositeProperty<Left[Key], Right[Key]> : Left[Key] : Key extends keyof Right ? Right[Key] : TNever)> = Result;
|
|
1251
|
+
type TRemoveReadonlyOperation<Type extends TSchema, Result extends TSchema = Type extends TReadonly$1<infer Type extends TSchema> ? TRemoveReadonlyOperation<Type> : Type> = Result;
|
|
1252
|
+
type TRemoveReadonlyAction<Type extends TSchema, Result extends TSchema = TRemoveReadonlyOperation<Type>> = Result;
|
|
1253
|
+
type TRemoveReadonlyInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiateType extends TSchema = TInstantiateType<Context, State, Type>> = TRemoveReadonlyAction<InstantiateType>;
|
|
1254
|
+
export type TEvaluatePropertyIntersect<Left extends TSchema, Right extends TSchema, IsReadonly extends boolean = Left extends TReadonly$1 ? Right extends TReadonly$1 ? true : false : false, IsOptional extends boolean = Left extends TOptional ? Right extends TOptional ? true : false : false, Evaluated extends TSchema = TEvaluateIntersect<[Left, Right]>, Property extends TSchema = TRemoveReadonlyAction<TRemoveOptionalAction<Evaluated>>> = ([IsReadonly, IsOptional] extends [true, true] ? TAddReadonlyAction<TAddOptionalAction<Property>> : [IsReadonly, IsOptional] extends [true, false] ? TAddReadonlyAction<Property> : [IsReadonly, IsOptional] extends [false, true] ? TAddOptionalAction<Property> : Property);
|
|
1255
|
+
export declare function EvaluatePropertyIntersect<Left extends TSchema, Right extends TSchema>(left: Left, right: Right): TEvaluatePropertyIntersect<Left, Right>;
|
|
1256
|
+
export type TEvaluatePropertyUnion<Left extends TSchema, Right extends TSchema, IsReadonly extends boolean = Left extends TReadonly$1 ? true : Right extends TReadonly$1 ? true : false, IsOptional extends boolean = Left extends TOptional ? true : Right extends TOptional ? true : false, LeftProperty extends TSchema = TRemoveReadonlyAction<TRemoveOptionalAction<Left>>, RightProperty extends TSchema = TRemoveReadonlyAction<TRemoveOptionalAction<Right>>, Property extends TSchema = TEvaluateUnion<[LeftProperty, RightProperty]>> = ([IsReadonly, IsOptional] extends [true, true] ? TAddReadonlyAction<TAddOptionalAction<Property>> : [IsReadonly, IsOptional] extends [true, false] ? TAddReadonlyAction<Property> : [IsReadonly, IsOptional] extends [false, true] ? TAddOptionalAction<Property> : Property);
|
|
1257
|
+
export declare function EvaluatePropertyUnion<Left extends TSchema, Right extends TSchema>(left: Left, right: Right): TEvaluatePropertyUnion<Left, Right>;
|
|
1258
|
+
type TCompositePropertyKey<Left extends TProperties, Right extends TProperties, Key extends PropertyKey, Result extends TSchema = (Key extends keyof Left ? Key extends keyof Right ? TEvaluatePropertyIntersect<Left[Key], Right[Key]> : Left[Key] : Key extends keyof Right ? Right[Key] : TNever)> = Result;
|
|
1294
1259
|
type TCompositeProperties<Left extends TProperties, Right extends TProperties, Keys extends PropertyKey = keyof (Left & Right), Result extends TProperties = { [Key in Keys]: TCompositePropertyKey<Left, Right, Key>; }> = Result;
|
|
1295
1260
|
type TGetProperties<Type extends TSchema, Result extends TProperties = (Type extends TObject<infer Properties extends TProperties> ? Properties : Type extends TTuple<infer Types extends TSchema[]> ? TTupleElementsToProperties<Types> : {})> = Result;
|
|
1296
1261
|
export type TComposite<Left extends TSchema, Right extends TSchema, LeftProperties extends TProperties = TGetProperties<Left>, RightProperties extends TProperties = TGetProperties<Right>, Properties extends TProperties = TCompositeProperties<LeftProperties, RightProperties>, Result extends TSchema = TObject<Properties>> = Result;
|
|
1297
1262
|
export declare function Composite<Left extends TSchema, Right extends TSchema>(left: Left, right: Right): TComposite<Left, Right>;
|
|
1298
1263
|
type TNarrowCompareRule<Left extends TSchema, Right extends TSchema, Result extends TCompareResult = TCompare<Left, Right>> = (Result extends typeof CompareResultLeftInside ? Left : Result extends typeof CompareResultRightInside ? Right : Result extends typeof CompareResultEqual ? Right : TNever);
|
|
1264
|
+
type TCanComposite<Type extends TSchema> = (Type extends TObject<infer _ extends TProperties> ? true : Type extends TTuple<infer _ extends TSchema[]> ? true : false);
|
|
1299
1265
|
type TNarrowCompositeRule<Left extends TSchema, Right extends TSchema, CanCompositeLeft extends boolean = TCanComposite<Left>, CanCompositeRight extends boolean = TCanComposite<Right>> = ([CanCompositeLeft, CanCompositeRight] extends [true, true] ? TComposite<Left, Right> : [CanCompositeLeft, CanCompositeRight] extends [true, false] ? Left : [CanCompositeLeft, CanCompositeRight] extends [false, true] ? Right : TNarrowCompareRule<Left, Right>);
|
|
1300
1266
|
export type TNarrow<Left extends TSchema, Right extends TSchema> = (Left extends TNever ? TNever : Left extends TAny ? TAny : Left extends TUnknown ? Right : Right extends TNever ? TNever : Right extends TAny ? TAny : Right extends TUnknown ? Left : TNarrowCompositeRule<Left, Right>);
|
|
1301
1267
|
export declare function Narrow<Left extends TSchema, Right extends TSchema>(left: Left, right: Right): TNarrow<Left, Right>;
|
|
@@ -1882,11 +1848,11 @@ export declare function Index<Type extends TSchema, Indexer extends PropertyKey[
|
|
|
1882
1848
|
export declare function Index<Type extends TSchema, Indexer extends TSchema>(type: Type, indexer: Indexer, options?: TSchemaOptions): TIndex<Type, Indexer>;
|
|
1883
1849
|
type TFromCyclic$4<Defs extends TProperties, Ref extends string, Target extends TSchema = TCyclicTarget<Defs, Ref>, Result extends TProperties = TFromType$10<Target>> = Result;
|
|
1884
1850
|
type TFromDependent$4<If extends TSchema, Then extends TSchema, Else extends TSchema, Evaluated extends TSchema = TEvaluateDependent<If, Then, Else>, Result extends TSchema = TFromType$10<Evaluated>> = Result;
|
|
1885
|
-
type TCollapseIntersectProperties<Left extends TProperties, Right extends TProperties, LeftKeys extends keyof Left = Exclude<keyof Left, keyof Right>, RightKeys extends keyof Right = Exclude<keyof Right, keyof Left>, SharedKeys extends keyof Left & keyof Right = Extract<keyof Left, keyof Right>, LeftProperties extends TProperties = { [Key in LeftKeys]: Left[Key]; }, RightProperties extends TProperties = { [Key in RightKeys]: Right[Key]; }, SharedProperties extends TProperties = { [Key in SharedKeys]:
|
|
1851
|
+
type TCollapseIntersectProperties<Left extends TProperties, Right extends TProperties, LeftKeys extends keyof Left = Exclude<keyof Left, keyof Right>, RightKeys extends keyof Right = Exclude<keyof Right, keyof Left>, SharedKeys extends keyof Left & keyof Right = Extract<keyof Left, keyof Right>, LeftProperties extends TProperties = { [Key in LeftKeys]: Left[Key]; }, RightProperties extends TProperties = { [Key in RightKeys]: Right[Key]; }, SharedProperties extends TProperties = { [Key in SharedKeys]: TEvaluatePropertyIntersect<Left[Key], Right[Key]>; }, Unique extends TProperties = TAssign<LeftProperties, RightProperties>, Shared extends TProperties = TAssign<Unique, SharedProperties>> = Shared;
|
|
1886
1852
|
type TFromIntersect$4<Types extends TSchema[], Result extends TProperties = {}> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TFromIntersect$4<Right, TCollapseIntersectProperties<Result, TFromType$10<Left>>> : { [Key in keyof Result]: Result[Key]; });
|
|
1887
1853
|
type TFromObject$5<Properties extends TProperties> = (Properties);
|
|
1888
1854
|
type TFromTuple$3<Types extends TSchema[], Object extends TSchema = TTupleToObject<TTuple<Types>>, Result extends TSchema = TFromType$10<Object>> = Result;
|
|
1889
|
-
type TCollapseUnionProperties<Left extends TProperties, Right extends TProperties, SharedKeys extends PropertyKey = keyof Left & keyof Right, Result extends TProperties = { [Key in SharedKeys]:
|
|
1855
|
+
type TCollapseUnionProperties<Left extends TProperties, Right extends TProperties, SharedKeys extends PropertyKey = keyof Left & keyof Right, Result extends TProperties = { [Key in SharedKeys]: TEvaluatePropertyUnion<Left[Key], Right[Key]>; }> = Result;
|
|
1890
1856
|
type TReduceVariants<Types extends TSchema[], Result extends TProperties> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TReduceVariants<Right, TCollapseUnionProperties<Result, TFromType$10<Left>>> : Result);
|
|
1891
1857
|
type TFromUnion$5<Types extends TSchema[]> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TReduceVariants<Right, TFromType$10<Left>> : TUnreachable);
|
|
1892
1858
|
type TFromType$10<Type extends TSchema, Result extends TProperties = (Type extends TCyclic<infer Defs extends TProperties, infer Ref extends string> ? TFromCyclic$4<Defs, Ref> : Type extends TDependent$1<infer If extends TSchema, infer Then extends TSchema, infer Else extends TSchema> ? TFromDependent$4<If, Then, Else> : Type extends TIntersect<infer Types extends TSchema[]> ? TFromIntersect$4<Types> : Type extends TUnion<infer Types extends TSchema[]> ? TFromUnion$5<Types> : Type extends TTuple<infer Types extends TSchema[]> ? TFromTuple$3<Types> : Type extends TObject<infer Properties extends TProperties> ? TFromObject$5<Properties> : {})> = Result;
|
|
@@ -2108,6 +2074,14 @@ type TFromCyclic<Defs extends TProperties, Ref extends string, Target extends TS
|
|
|
2108
2074
|
type TFromDependent<If extends TSchema, Then extends TSchema, Else extends TSchema, Evaluated extends TSchema = TEvaluateDependent<If, Then, Else>, Result extends TSchema = TFromType<Evaluated>> = Result;
|
|
2109
2075
|
type TFromIntersect<Types extends TSchema[], Evaluated extends TSchema = TEvaluateIntersect<Types>, Result extends TSchema = TFromType<Evaluated>> = Result;
|
|
2110
2076
|
type TFromUnion<Types extends TSchema[], Result extends TSchema[] = []> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TFromUnion<Right, [...Result, TFromType<Left>]> : TUnion<Result>);
|
|
2077
|
+
/** Creates a deferred RemoveOptional action. */
|
|
2078
|
+
export type TRemoveOptionalDeferred<Type extends TSchema> = (TDeferred<'RemoveOptional', [Type]>);
|
|
2079
|
+
/** Creates a deferred RemoveOptional action. */
|
|
2080
|
+
export declare function RemoveOptionalDeferred<Type extends TSchema>(type: Type, options?: TSchemaOptions): TRemoveOptionalDeferred<Type>;
|
|
2081
|
+
/** Applies an RemoveOptional action to a type. */
|
|
2082
|
+
export type TRemoveOptional<Type extends TSchema> = (TRemoveOptionalAction<Type>);
|
|
2083
|
+
/** Applies an RemoveOptional action to a type. */
|
|
2084
|
+
export declare function RemoveOptional<Type extends TSchema>(type: Type, options?: TSchemaOptions): TRemoveOptional<Type>;
|
|
2111
2085
|
type TFromObject<Properties extends TProperties, Mapped extends TProperties = { [Key in keyof Properties]: TRemoveOptional<Properties[Key]>; }, Result extends TSchema = TObject<Mapped>> = Result;
|
|
2112
2086
|
type TFromType<Type extends TSchema> = (Type extends TCyclic<infer Defs extends TProperties, infer Ref extends string> ? TFromCyclic<Defs, Ref> : Type extends TDependent$1<infer If extends TSchema, infer Then extends TSchema, infer Else extends TSchema> ? TFromDependent<If, Then, Else> : Type extends TIntersect<infer Types extends TSchema[]> ? TFromIntersect<Types> : Type extends TUnion<infer Types extends TSchema[]> ? TFromUnion<Types> : Type extends TObject<infer Properties extends TProperties> ? TFromObject<Properties> : TObject<{}>);
|
|
2113
2087
|
/** Creates a deferred Required action. */
|
|
@@ -2165,8 +2139,7 @@ type TInstantiateType<Context extends TProperties, State extends TState, Type ex
|
|
|
2165
2139
|
export type TInstantiate<Context extends TProperties, Type extends TSchema> = (TInstantiateType<Context, TState<[], []>, Type>);
|
|
2166
2140
|
/** Instantiates computed schematics using the given context and type. */
|
|
2167
2141
|
export declare function Instantiate<Context extends TProperties, Type extends TSchema>(context: Context, type: Type): TInstantiate<Context, Type>;
|
|
2168
|
-
type
|
|
2169
|
-
type TAddOptionalAction<Type extends TSchema, Result extends TSchema = TAddOptionalOperation<Type>> = Result;
|
|
2142
|
+
type TAddOptionalAction<Type extends TSchema, Result extends TSchema = '~optional' extends keyof Type ? Type : TOptional<Type>> = Result;
|
|
2170
2143
|
type TAddOptionalInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiateType extends TSchema = TInstantiateType<Context, State, Type>> = TAddOptionalAction<InstantiateType>;
|
|
2171
2144
|
/** Creates a deferred AddOptional action. */
|
|
2172
2145
|
export type TAddOptionalDeferred<Type extends TSchema> = (TDeferred<'AddOptional', [Type]>);
|
|
@@ -2409,8 +2382,7 @@ type TPropertyValuesReduce<Properties extends TProperties, Keys extends string[]
|
|
|
2409
2382
|
export type TPropertyValues<Properties extends TProperties, Keys extends string[] = TPropertyKeys<Properties>, Result extends TSchema[] = TPropertyValuesReduce<Properties, Keys>> = Result;
|
|
2410
2383
|
/** Extracts a tuple of property values from a TProperties value. */
|
|
2411
2384
|
export declare function PropertyValues<Properties extends TProperties>(properties: Properties): TPropertyValues<Properties>;
|
|
2412
|
-
type
|
|
2413
|
-
type TAddImmutableAction<Type extends TSchema, Result extends TSchema = TAddImmutableOperation<Type>> = Result;
|
|
2385
|
+
type TAddImmutableAction<Type extends TSchema, Result extends TSchema = '~immutable' extends keyof Type ? Type : TImmutable<Type>> = Result;
|
|
2414
2386
|
type TAddImmutableInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiateType extends TSchema = TInstantiateType<Context, State, Type>> = TAddImmutableAction<InstantiateType>;
|
|
2415
2387
|
/** Creates a deferred AddImmutable action. */
|
|
2416
2388
|
export type TAddImmutableDeferred<Type extends TSchema> = (TDeferred<'AddImmutable', [Type]>);
|
|
@@ -2428,6 +2400,14 @@ export declare function RemoveImmutableDeferred<Type extends TSchema>(type: Type
|
|
|
2428
2400
|
export type TRemoveImmutable<Type extends TSchema> = (TRemoveImmutableAction<Type>);
|
|
2429
2401
|
/** Applies an RemoveImmutable action to a type. */
|
|
2430
2402
|
export declare function RemoveImmutable<Type extends TSchema>(type: Type, options?: TSchemaOptions): TRemoveImmutable<Type>;
|
|
2403
|
+
/** Creates a deferred RemoveReadonly action. */
|
|
2404
|
+
export type TRemoveReadonlyDeferred<Type extends TSchema> = (TDeferred<'RemoveReadonly', [Type]>);
|
|
2405
|
+
/** Creates a deferred RemoveReadonly action. */
|
|
2406
|
+
export declare function RemoveReadonlyDeferred<Type extends TSchema>(type: Type, options?: TSchemaOptions): TRemoveReadonlyDeferred<Type>;
|
|
2407
|
+
/** Applies an RemoveReadonly action to a type. */
|
|
2408
|
+
export type TRemoveReadonly<Type extends TSchema> = (TRemoveReadonlyAction<Type>);
|
|
2409
|
+
/** Applies an RemoveReadonly action to a type. */
|
|
2410
|
+
export declare function RemoveReadonly<Type extends TSchema>(type: Type, options?: TSchemaOptions): TRemoveReadonly<Type>;
|
|
2431
2411
|
/** Creates a deferred Evaluate action. */
|
|
2432
2412
|
export type TEvaluateDeferred<Type extends TSchema> = (TDeferred<'Evaluate', [Type]>);
|
|
2433
2413
|
/** Creates a deferred Evaluate action. */
|
|
@@ -2465,7 +2445,7 @@ export type TPriority<Types extends TSchema[], Result extends TSchema[] = TSort<
|
|
|
2465
2445
|
*/
|
|
2466
2446
|
export declare function Priority<Types extends TSchema[]>(types: [...Types]): TPriority<Types>;
|
|
2467
2447
|
declare namespace index_d_exports {
|
|
2468
|
-
export { AddImmutable, AddImmutableDeferred, AddOptional, AddOptionalDeferred, AddReadonly, AddReadonlyDeferred, Any, _Array_ as Array, ArrayOptions, BigInt$1 as BigInt, BigIntPattern, Boolean, Broaden, Call, CallConstruct,
|
|
2448
|
+
export { AddImmutable, AddImmutableDeferred, AddOptional, AddOptionalDeferred, AddReadonly, AddReadonlyDeferred, Any, _Array_ as Array, ArrayOptions, BigInt$1 as BigInt, BigIntPattern, Boolean, Broaden, Call, CallConstruct, 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, EvaluatePropertyIntersect, EvaluatePropertyUnion, 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, 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, TEvaluatePropertyIntersect, TEvaluatePropertyUnion, 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_ };
|
|
2469
2449
|
}
|
|
2470
2450
|
export type TScriptOptions = TArrayOptions | TIntersectOptions | TNumberOptions | TObjectOptions | TStringOptions | TTupleOptions;
|
|
2471
2451
|
/** Parses a string-based TypeScript type expression into a TypeBox type. */
|