@duckmind/dm-darwin-arm64 0.36.8 → 0.36.9
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/dm +0 -0
- package/extensions/dm-tasks/node_modules/.package-lock.json +3 -3
- package/extensions/dm-tasks/node_modules/typebox/build/schema/types/dependencies.mjs +1 -1
- package/extensions/dm-tasks/node_modules/typebox/build/type/action/_add_immutable.d.mts +11 -0
- package/extensions/dm-tasks/node_modules/typebox/build/type/action/_add_immutable.mjs +11 -0
- package/extensions/dm-tasks/node_modules/typebox/build/type/action/_add_optional.d.mts +11 -0
- package/extensions/dm-tasks/node_modules/typebox/build/type/action/_add_optional.mjs +11 -0
- package/extensions/dm-tasks/node_modules/typebox/build/type/action/_add_readonly.d.mts +11 -0
- package/extensions/dm-tasks/node_modules/typebox/build/type/action/_add_readonly.mjs +11 -0
- package/extensions/dm-tasks/node_modules/typebox/build/type/action/_remove_immutable.d.mts +11 -0
- package/extensions/dm-tasks/node_modules/typebox/build/type/action/_remove_immutable.mjs +11 -0
- package/extensions/dm-tasks/node_modules/typebox/build/type/action/_remove_optional.d.mts +11 -0
- package/extensions/dm-tasks/node_modules/typebox/build/type/action/_remove_optional.mjs +11 -0
- package/extensions/dm-tasks/node_modules/typebox/build/type/action/_remove_readonly.d.mts +11 -0
- package/extensions/dm-tasks/node_modules/typebox/build/type/action/_remove_readonly.mjs +11 -0
- package/extensions/dm-tasks/node_modules/typebox/build/type/action/index.d.mts +6 -2
- package/extensions/dm-tasks/node_modules/typebox/build/type/action/index.mjs +6 -2
- package/extensions/dm-tasks/node_modules/typebox/build/type/action/module.d.mts +8 -7
- package/extensions/dm-tasks/node_modules/typebox/build/type/action/module.mjs +7 -6
- package/extensions/dm-tasks/node_modules/typebox/build/type/engine/evaluate/composite.d.mts +10 -6
- package/extensions/dm-tasks/node_modules/typebox/build/type/engine/evaluate/composite.mjs +10 -6
- package/extensions/dm-tasks/node_modules/typebox/build/type/engine/immutable/instantiate_add.d.mts +10 -0
- package/extensions/dm-tasks/node_modules/typebox/build/type/engine/immutable/instantiate_add.mjs +14 -0
- package/extensions/dm-tasks/node_modules/typebox/build/type/engine/immutable/instantiate_remove.d.mts +10 -0
- package/extensions/dm-tasks/node_modules/typebox/build/type/engine/immutable/instantiate_remove.mjs +14 -0
- package/extensions/dm-tasks/node_modules/typebox/build/type/engine/instantiate.d.mts +33 -16
- package/extensions/dm-tasks/node_modules/typebox/build/type/engine/instantiate.mjs +61 -61
- package/extensions/dm-tasks/node_modules/typebox/build/type/engine/module/instantiate.d.mts +7 -7
- package/extensions/dm-tasks/node_modules/typebox/build/type/engine/module/instantiate.mjs +16 -15
- package/extensions/dm-tasks/node_modules/typebox/build/type/engine/optional/instantiate_add.d.mts +10 -0
- package/extensions/dm-tasks/node_modules/typebox/build/type/engine/optional/instantiate_add.mjs +14 -0
- package/extensions/dm-tasks/node_modules/typebox/build/type/engine/optional/instantiate_remove.d.mts +10 -0
- package/extensions/dm-tasks/node_modules/typebox/build/type/engine/optional/instantiate_remove.mjs +14 -0
- package/extensions/dm-tasks/node_modules/typebox/build/type/engine/partial/from_object.d.mts +2 -2
- package/extensions/dm-tasks/node_modules/typebox/build/type/engine/partial/from_object.mjs +2 -2
- package/extensions/dm-tasks/node_modules/typebox/build/type/engine/readonly/instantiate_add.d.mts +10 -0
- package/extensions/dm-tasks/node_modules/typebox/build/type/engine/readonly/instantiate_add.mjs +14 -0
- package/extensions/dm-tasks/node_modules/typebox/build/type/engine/readonly/instantiate_remove.d.mts +10 -0
- package/extensions/dm-tasks/node_modules/typebox/build/type/engine/readonly/instantiate_remove.mjs +14 -0
- package/extensions/dm-tasks/node_modules/typebox/build/type/engine/readonly_object/from_array.d.mts +2 -2
- package/extensions/dm-tasks/node_modules/typebox/build/type/engine/readonly_object/from_array.mjs +2 -2
- package/extensions/dm-tasks/node_modules/typebox/build/type/engine/readonly_object/from_object.d.mts +2 -2
- package/extensions/dm-tasks/node_modules/typebox/build/type/engine/readonly_object/from_object.mjs +2 -2
- package/extensions/dm-tasks/node_modules/typebox/build/type/engine/readonly_object/from_tuple.d.mts +2 -2
- package/extensions/dm-tasks/node_modules/typebox/build/type/engine/readonly_object/from_tuple.mjs +2 -2
- package/extensions/dm-tasks/node_modules/typebox/build/type/engine/required/from_object.d.mts +2 -2
- package/extensions/dm-tasks/node_modules/typebox/build/type/engine/required/from_object.mjs +2 -2
- package/extensions/dm-tasks/node_modules/typebox/build/type/engine/template_literal/is_pattern.mjs +1 -0
- package/extensions/dm-tasks/node_modules/typebox/build/type/script/mapping.d.mts +68 -64
- package/extensions/dm-tasks/node_modules/typebox/build/type/script/mapping.mjs +64 -58
- package/extensions/dm-tasks/node_modules/typebox/build/type/script/parser.d.mts +29 -25
- package/extensions/dm-tasks/node_modules/typebox/build/type/script/parser.mjs +15 -13
- package/extensions/dm-tasks/node_modules/typebox/build/type/types/_immutable.d.mts +2 -9
- package/extensions/dm-tasks/node_modules/typebox/build/type/types/_immutable.mjs +2 -10
- package/extensions/dm-tasks/node_modules/typebox/build/type/types/_optional.d.mts +2 -9
- package/extensions/dm-tasks/node_modules/typebox/build/type/types/_optional.mjs +2 -11
- package/extensions/dm-tasks/node_modules/typebox/build/type/types/_readonly.d.mts +2 -9
- package/extensions/dm-tasks/node_modules/typebox/build/type/types/_readonly.mjs +2 -10
- package/extensions/dm-tasks/node_modules/typebox/build/type/types/deferred.d.mts +1 -0
- package/extensions/dm-tasks/node_modules/typebox/build/type/types/deferred.mjs +1 -1
- package/extensions/dm-tasks/node_modules/typebox/package.json +1 -1
- package/extensions/dm-tasks/package-lock.json +3 -3
- package/extensions/dm-ultradex/package-lock.json +6 -6
- package/package.json +1 -1
- package/extensions/dm-tasks/node_modules/typebox/build/type/action/_optional.d.mts +0 -19
- package/extensions/dm-tasks/node_modules/typebox/build/type/action/_optional.mjs +0 -40
- package/extensions/dm-tasks/node_modules/typebox/build/type/action/_readonly.d.mts +0 -19
- package/extensions/dm-tasks/node_modules/typebox/build/type/action/_readonly.mjs +0 -40
|
@@ -42,7 +42,7 @@ export type TIndexArray_0<Input extends string, Result extends unknown[] = []> =
|
|
|
42
42
|
export type TIndexArray<Input extends string> = TIndexArray_0<Input> extends [infer _0 extends ([unknown, unknown, unknown] | [unknown, unknown])[], infer Input extends string] ? [S.TIndexArrayMapping<_0>, Input] : [];
|
|
43
43
|
export type TExtends<Input extends string> = ((Token.TConst<'extends', Input> extends [infer _0, infer Input extends string] ? (TType<Input> extends [infer _1, infer Input extends string] ? (Token.TConst<'?', Input> extends [infer _2, infer Input extends string] ? (TType<Input> extends [infer _3, infer Input extends string] ? (Token.TConst<':', Input> extends [infer _4, infer Input extends string] ? (TType<Input> extends [infer _5, infer Input extends string] ? [[_0, _1, _2, _3, _4, _5], Input] : []) : []) : []) : []) : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : [[], Input] extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown, unknown, unknown, unknown, unknown, unknown] | [], infer Input extends string] ? [S.TExtendsMapping<_0>, Input] : [];
|
|
44
44
|
export type TBase<Input extends string> = ((Token.TConst<'(', Input> extends [infer _0, infer Input extends string] ? (TType<Input> extends [infer _1, infer Input extends string] ? (Token.TConst<')', Input> extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : TKeywordString<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TKeywordNumber<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TKeywordBoolean<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TKeywordUndefined<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TKeywordNull<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TKeywordInteger<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TKeywordBigInt<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TKeywordUnknown<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TKeywordAny<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TKeywordObject<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TKeywordNever<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TKeywordSymbol<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TKeywordVoid<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TKeywordThis<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TLiteralBigInt<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TLiteralBoolean<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TLiteralNumber<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TLiteralString<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TTemplateLiteral<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TDependent<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : T_Object_<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : T_Tuple_<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : T_Constructor_<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : T_Function_<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : T_Mapped_<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TGenericCall<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TReference<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown, unknown, unknown] | unknown, infer Input extends string] ? [S.TBaseMapping<_0>, Input] : [];
|
|
45
|
-
export type TWith<Input extends string> = ((Token.TConst<'with', Input> extends [infer _0, infer Input extends string] ? (
|
|
45
|
+
export type TWith<Input extends string> = ((Token.TConst<'with', Input> extends [infer _0, infer Input extends string] ? (TWithObject<Input> extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : [[], Input] extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown, unknown] | [], infer Input extends string] ? [S.TWithMapping<_0>, Input] : [];
|
|
46
46
|
export type TFactor<Input extends string> = (TKeyOf<Input> extends [infer _0, infer Input extends string] ? (TBase<Input> extends [infer _1, infer Input extends string] ? (TIndexArray<Input> extends [infer _2, infer Input extends string] ? (TExtends<Input> extends [infer _3, infer Input extends string] ? (TWith<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] ? [S.TFactorMapping<_0>, Input] : [];
|
|
47
47
|
export type TExprTermTail<Input extends string> = ((Token.TConst<'&', Input> extends [infer _0, infer Input extends string] ? (TFactor<Input> extends [infer _1, infer Input extends string] ? (TExprTermTail<Input> extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : [[], Input] extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown, unknown, unknown] | [], infer Input extends string] ? [S.TExprTermTailMapping<_0>, Input] : [];
|
|
48
48
|
export type TExprTerm<Input extends string> = (TFactor<Input> extends [infer _0, infer Input extends string] ? (TExprTermTail<Input> extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0 extends [unknown, unknown], infer Input extends string] ? [S.TExprTermMapping<_0>, Input] : [];
|
|
@@ -90,18 +90,20 @@ export type TMappedOptional<Input extends string> = ((Token.TConst<'+', Input> e
|
|
|
90
90
|
export type TMappedAs<Input extends string> = ((Token.TConst<'as', Input> extends [infer _0, infer Input extends string] ? (TType<Input> extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : [[], Input] extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown, unknown] | [], infer Input extends string] ? [S.TMappedAsMapping<_0>, Input] : [];
|
|
91
91
|
export type T_Mapped_<Input extends string> = (Token.TConst<'{', Input> extends [infer _0, infer Input extends string] ? (TMappedReadonly<Input> extends [infer _1, infer Input extends string] ? (Token.TConst<'[', Input> extends [infer _2, infer Input extends string] ? (Token.TIdent<Input> extends [infer _3, infer Input extends string] ? (Token.TConst<'in', Input> extends [infer _4, infer Input extends string] ? (TType<Input> extends [infer _5, infer Input extends string] ? (TMappedAs<Input> extends [infer _6, infer Input extends string] ? (Token.TConst<']', Input> extends [infer _7, infer Input extends string] ? (TMappedOptional<Input> extends [infer _8, infer Input extends string] ? (Token.TConst<':', Input> extends [infer _9, infer Input extends string] ? (TType<Input> extends [infer _10, infer Input extends string] ? (TOptionalSemiColon<Input> extends [infer _11, infer Input extends string] ? (Token.TConst<'}', Input> extends [infer _12, infer Input extends string] ? [[_0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12], Input] : []) : []) : []) : []) : []) : []) : []) : []) : []) : []) : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown], infer Input extends string] ? [S.T_Mapped_Mapping<_0>, Input] : [];
|
|
92
92
|
export type TReference<Input extends string> = Token.TIdent<Input> extends [infer _0 extends string, infer Input extends string] ? [S.TReferenceMapping<_0>, Input] : [];
|
|
93
|
-
export type
|
|
94
|
-
export type
|
|
95
|
-
export type
|
|
96
|
-
export type
|
|
97
|
-
export type
|
|
98
|
-
export type
|
|
99
|
-
export type
|
|
100
|
-
export type
|
|
101
|
-
export type
|
|
102
|
-
export type
|
|
103
|
-
export type
|
|
104
|
-
export type
|
|
93
|
+
export type TWithBigInt<Input extends string> = Token.TBigInt<Input> extends [infer _0 extends string, infer Input extends string] ? [S.TWithBigIntMapping<_0>, Input] : [];
|
|
94
|
+
export type TWithNumber<Input extends string> = Token.TNumber<Input> extends [infer _0 extends string, infer Input extends string] ? [S.TWithNumberMapping<_0>, Input] : [];
|
|
95
|
+
export type TWithBoolean<Input extends string> = (Token.TConst<'true', Input> extends [infer _0, infer Input extends string] ? [_0, Input] : Token.TConst<'false', Input> extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends 'true' | 'false', infer Input extends string] ? [S.TWithBooleanMapping<_0>, Input] : [];
|
|
96
|
+
export type TWithString<Input extends string> = Token.TString<['\"', '\''], Input> extends [infer _0 extends string, infer Input extends string] ? [S.TWithStringMapping<_0>, Input] : [];
|
|
97
|
+
export type TWithNull<Input extends string> = Token.TConst<'null', Input> extends [infer _0 extends 'null', infer Input extends string] ? [S.TWithNullMapping<_0>, Input] : [];
|
|
98
|
+
export type TWithUndefined<Input extends string> = Token.TConst<'undefined', Input> extends [infer _0 extends 'undefined', infer Input extends string] ? [S.TWithUndefinedMapping<_0>, Input] : [];
|
|
99
|
+
export type TWithProperty<Input extends string> = (TPropertyKey<Input> extends [infer _0, infer Input extends string] ? (Token.TConst<':', Input> extends [infer _1, infer Input extends string] ? (TWithValue<Input> extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown], infer Input extends string] ? [S.TWithPropertyMapping<_0>, Input] : [];
|
|
100
|
+
export type TWithPropertyList_0<Input extends string, Result extends unknown[] = []> = (TWithProperty<Input> extends [infer _0, infer Input extends string] ? (TPropertyDelimiter<Input> extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0, infer Input extends string] ? TWithPropertyList_0<Input, [...Result, _0]> : [Result, Input];
|
|
101
|
+
export type TWithPropertyList<Input extends string> = (TWithPropertyList_0<Input> extends [infer _0, infer Input extends string] ? (((TWithProperty<Input> extends [infer _0, infer Input extends string] ? [[_0], Input] : []) extends [infer _0, infer Input extends string] ? [_0, Input] : [[], Input] extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0 extends [unknown, unknown], infer Input extends string] ? [S.TWithPropertyListMapping<_0>, Input] : [];
|
|
102
|
+
export type TWithObject<Input extends string> = (Token.TConst<'{', Input> extends [infer _0, infer Input extends string] ? (TWithPropertyList<Input> extends [infer _1, infer Input extends string] ? (Token.TConst<'}', Input> extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown], infer Input extends string] ? [S.TWithObjectMapping<_0>, Input] : [];
|
|
103
|
+
export type TWithElementList_0<Input extends string, Result extends unknown[] = []> = (TWithValue<Input> extends [infer _0, infer Input extends string] ? (Token.TConst<',', Input> extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0, infer Input extends string] ? TWithElementList_0<Input, [...Result, _0]> : [Result, Input];
|
|
104
|
+
export type TWithElementList<Input extends string> = (TWithElementList_0<Input> extends [infer _0, infer Input extends string] ? (((TWithValue<Input> extends [infer _0, infer Input extends string] ? [[_0], Input] : []) extends [infer _0, infer Input extends string] ? [_0, Input] : [[], Input] extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0 extends [unknown, unknown], infer Input extends string] ? [S.TWithElementListMapping<_0>, Input] : [];
|
|
105
|
+
export type TWithArray<Input extends string> = (Token.TConst<'[', Input> extends [infer _0, infer Input extends string] ? (TWithElementList<Input> extends [infer _1, infer Input extends string] ? (Token.TConst<']', Input> extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown], infer Input extends string] ? [S.TWithArrayMapping<_0>, Input] : [];
|
|
106
|
+
export type TWithValue<Input extends string> = (TWithBigInt<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TWithNumber<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TWithBoolean<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TWithString<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TWithNull<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TWithUndefined<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TWithObject<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TWithArray<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends unknown, infer Input extends string] ? [S.TWithValueMapping<_0>, Input] : [];
|
|
105
107
|
export type TPatternBigInt<Input extends string> = Token.TConst<'-?(?:0|[1-9][0-9]*)n', Input> extends [infer _0 extends '-?(?:0|[1-9][0-9]*)n', infer Input extends string] ? [S.TPatternBigIntMapping<_0>, Input] : [];
|
|
106
108
|
export type TPatternString<Input extends string> = Token.TConst<'.*', Input> extends [infer _0 extends '.*', infer Input extends string] ? [S.TPatternStringMapping<_0>, Input] : [];
|
|
107
109
|
export type TPatternNumber<Input extends string> = Token.TConst<'-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?', Input> extends [infer _0 extends '-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?', infer Input extends string] ? [S.TPatternNumberMapping<_0>, Input] : [];
|
|
@@ -218,18 +220,20 @@ export declare const MappedOptional: (input: string) => [unknown, string] | [];
|
|
|
218
220
|
export declare const MappedAs: (input: string) => [unknown, string] | [];
|
|
219
221
|
export declare const _Mapped_: (input: string) => [unknown, string] | [];
|
|
220
222
|
export declare const Reference: (input: string) => [unknown, string] | [];
|
|
221
|
-
export declare const
|
|
222
|
-
export declare const
|
|
223
|
-
export declare const
|
|
224
|
-
export declare const
|
|
225
|
-
export declare const
|
|
226
|
-
export declare const
|
|
227
|
-
export declare const
|
|
228
|
-
export declare const
|
|
229
|
-
export declare const
|
|
230
|
-
export declare const
|
|
231
|
-
export declare const
|
|
232
|
-
export declare const
|
|
223
|
+
export declare const WithBigInt: (input: string) => [unknown, string] | [];
|
|
224
|
+
export declare const WithNumber: (input: string) => [unknown, string] | [];
|
|
225
|
+
export declare const WithBoolean: (input: string) => [unknown, string] | [];
|
|
226
|
+
export declare const WithString: (input: string) => [unknown, string] | [];
|
|
227
|
+
export declare const WithNull: (input: string) => [unknown, string] | [];
|
|
228
|
+
export declare const WithUndefined: (input: string) => [unknown, string] | [];
|
|
229
|
+
export declare const WithProperty: (input: string) => [unknown, string] | [];
|
|
230
|
+
export declare const WithPropertyList_0: (input: string, result?: unknown[]) => [unknown[], string];
|
|
231
|
+
export declare const WithPropertyList: (input: string) => [unknown, string] | [];
|
|
232
|
+
export declare const WithObject: (input: string) => [unknown, string] | [];
|
|
233
|
+
export declare const WithElementList_0: (input: string, result?: unknown[]) => [unknown[], string];
|
|
234
|
+
export declare const WithElementList: (input: string) => [unknown, string] | [];
|
|
235
|
+
export declare const WithArray: (input: string) => [unknown, string] | [];
|
|
236
|
+
export declare const WithValue: (input: string) => [unknown, string] | [];
|
|
233
237
|
export declare const PatternBigInt: (input: string) => [unknown, string] | [];
|
|
234
238
|
export declare const PatternString: (input: string) => [unknown, string] | [];
|
|
235
239
|
export declare const PatternNumber: (input: string) => [unknown, string] | [];
|
|
@@ -46,7 +46,7 @@ export const IndexArray_0 = (input, result = []) => If(If(If(Token.Const('[', in
|
|
|
46
46
|
export const IndexArray = (input) => If(IndexArray_0(input), ([_0, input]) => [S.IndexArrayMapping(_0), input]);
|
|
47
47
|
export const Extends = (input) => If(If(If(Token.Const('extends', input), ([_0, input]) => If(Type(input), ([_1, input]) => If(Token.Const('?', input), ([_2, input]) => If(Type(input), ([_3, input]) => If(Token.Const(':', input), ([_4, input]) => If(Type(input), ([_5, input]) => [[_0, _1, _2, _3, _4, _5], input])))))), ([_0, input]) => [_0, input], () => If([[], input], ([_0, input]) => [_0, input], () => [])), ([_0, input]) => [S.ExtendsMapping(_0), input]);
|
|
48
48
|
export const Base = (input) => If(If(If(Token.Const('(', input), ([_0, input]) => If(Type(input), ([_1, input]) => If(Token.Const(')', input), ([_2, input]) => [[_0, _1, _2], input]))), ([_0, input]) => [_0, input], () => If(KeywordString(input), ([_0, input]) => [_0, input], () => If(KeywordNumber(input), ([_0, input]) => [_0, input], () => If(KeywordBoolean(input), ([_0, input]) => [_0, input], () => If(KeywordUndefined(input), ([_0, input]) => [_0, input], () => If(KeywordNull(input), ([_0, input]) => [_0, input], () => If(KeywordInteger(input), ([_0, input]) => [_0, input], () => If(KeywordBigInt(input), ([_0, input]) => [_0, input], () => If(KeywordUnknown(input), ([_0, input]) => [_0, input], () => If(KeywordAny(input), ([_0, input]) => [_0, input], () => If(KeywordObject(input), ([_0, input]) => [_0, input], () => If(KeywordNever(input), ([_0, input]) => [_0, input], () => If(KeywordSymbol(input), ([_0, input]) => [_0, input], () => If(KeywordVoid(input), ([_0, input]) => [_0, input], () => If(KeywordThis(input), ([_0, input]) => [_0, input], () => If(LiteralBigInt(input), ([_0, input]) => [_0, input], () => If(LiteralBoolean(input), ([_0, input]) => [_0, input], () => If(LiteralNumber(input), ([_0, input]) => [_0, input], () => If(LiteralString(input), ([_0, input]) => [_0, input], () => If(TemplateLiteral(input), ([_0, input]) => [_0, input], () => If(Dependent(input), ([_0, input]) => [_0, input], () => If(_Object_(input), ([_0, input]) => [_0, input], () => If(_Tuple_(input), ([_0, input]) => [_0, input], () => If(_Constructor_(input), ([_0, input]) => [_0, input], () => If(_Function_(input), ([_0, input]) => [_0, input], () => If(_Mapped_(input), ([_0, input]) => [_0, input], () => If(GenericCall(input), ([_0, input]) => [_0, input], () => If(Reference(input), ([_0, input]) => [_0, input], () => [])))))))))))))))))))))))))))), ([_0, input]) => [S.BaseMapping(_0), input]);
|
|
49
|
-
export const With = (input) => If(If(If(Token.Const('with', input), ([_0, input]) => If(
|
|
49
|
+
export const With = (input) => If(If(If(Token.Const('with', input), ([_0, input]) => If(WithObject(input), ([_1, input]) => [[_0, _1], input])), ([_0, input]) => [_0, input], () => If([[], input], ([_0, input]) => [_0, input], () => [])), ([_0, input]) => [S.WithMapping(_0), input]);
|
|
50
50
|
export const Factor = (input) => If(If(KeyOf(input), ([_0, input]) => If(Base(input), ([_1, input]) => If(IndexArray(input), ([_2, input]) => If(Extends(input), ([_3, input]) => If(With(input), ([_4, input]) => [[_0, _1, _2, _3, _4], input]))))), ([_0, input]) => [S.FactorMapping(_0), input]);
|
|
51
51
|
export const ExprTermTail = (input) => If(If(If(Token.Const('&', input), ([_0, input]) => If(Factor(input), ([_1, input]) => If(ExprTermTail(input), ([_2, input]) => [[_0, _1, _2], input]))), ([_0, input]) => [_0, input], () => If([[], input], ([_0, input]) => [_0, input], () => [])), ([_0, input]) => [S.ExprTermTailMapping(_0), input]);
|
|
52
52
|
export const ExprTerm = (input) => If(If(Factor(input), ([_0, input]) => If(ExprTermTail(input), ([_1, input]) => [[_0, _1], input])), ([_0, input]) => [S.ExprTermMapping(_0), input]);
|
|
@@ -94,18 +94,20 @@ export const MappedOptional = (input) => If(If(If(Token.Const('+', input), ([_0,
|
|
|
94
94
|
export const MappedAs = (input) => If(If(If(Token.Const('as', input), ([_0, input]) => If(Type(input), ([_1, input]) => [[_0, _1], input])), ([_0, input]) => [_0, input], () => If([[], input], ([_0, input]) => [_0, input], () => [])), ([_0, input]) => [S.MappedAsMapping(_0), input]);
|
|
95
95
|
export const _Mapped_ = (input) => If(If(Token.Const('{', input), ([_0, input]) => If(MappedReadonly(input), ([_1, input]) => If(Token.Const('[', input), ([_2, input]) => If(Token.Ident(input), ([_3, input]) => If(Token.Const('in', input), ([_4, input]) => If(Type(input), ([_5, input]) => If(MappedAs(input), ([_6, input]) => If(Token.Const(']', input), ([_7, input]) => If(MappedOptional(input), ([_8, input]) => If(Token.Const(':', input), ([_9, input]) => If(Type(input), ([_10, input]) => If(OptionalSemiColon(input), ([_11, input]) => If(Token.Const('}', input), ([_12, input]) => [[_0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12], input]))))))))))))), ([_0, input]) => [S._Mapped_Mapping(_0), input]);
|
|
96
96
|
export const Reference = (input) => If(Token.Ident(input), ([_0, input]) => [S.ReferenceMapping(_0), input]);
|
|
97
|
-
export const
|
|
98
|
-
export const
|
|
99
|
-
export const
|
|
100
|
-
export const
|
|
101
|
-
export const
|
|
102
|
-
export const
|
|
103
|
-
export const
|
|
104
|
-
export const
|
|
105
|
-
export const
|
|
106
|
-
export const
|
|
107
|
-
export const
|
|
108
|
-
export const
|
|
97
|
+
export const WithBigInt = (input) => If(Token.BigInt(input), ([_0, input]) => [S.WithBigIntMapping(_0), input]);
|
|
98
|
+
export const WithNumber = (input) => If(Token.Number(input), ([_0, input]) => [S.WithNumberMapping(_0), input]);
|
|
99
|
+
export const WithBoolean = (input) => If(If(Token.Const('true', input), ([_0, input]) => [_0, input], () => If(Token.Const('false', input), ([_0, input]) => [_0, input], () => [])), ([_0, input]) => [S.WithBooleanMapping(_0), input]);
|
|
100
|
+
export const WithString = (input) => If(Token.String(['\"', '\''], input), ([_0, input]) => [S.WithStringMapping(_0), input]);
|
|
101
|
+
export const WithNull = (input) => If(Token.Const('null', input), ([_0, input]) => [S.WithNullMapping(_0), input]);
|
|
102
|
+
export const WithUndefined = (input) => If(Token.Const('undefined', input), ([_0, input]) => [S.WithUndefinedMapping(_0), input]);
|
|
103
|
+
export const WithProperty = (input) => If(If(PropertyKey(input), ([_0, input]) => If(Token.Const(':', input), ([_1, input]) => If(WithValue(input), ([_2, input]) => [[_0, _1, _2], input]))), ([_0, input]) => [S.WithPropertyMapping(_0), input]);
|
|
104
|
+
export const WithPropertyList_0 = (input, result = []) => If(If(WithProperty(input), ([_0, input]) => If(PropertyDelimiter(input), ([_1, input]) => [[_0, _1], input])), ([_0, input]) => WithPropertyList_0(input, [...result, _0]), () => [result, input]);
|
|
105
|
+
export const WithPropertyList = (input) => If(If(WithPropertyList_0(input), ([_0, input]) => If(If(If(WithProperty(input), ([_0, input]) => [[_0], input]), ([_0, input]) => [_0, input], () => If([[], input], ([_0, input]) => [_0, input], () => [])), ([_1, input]) => [[_0, _1], input])), ([_0, input]) => [S.WithPropertyListMapping(_0), input]);
|
|
106
|
+
export const WithObject = (input) => If(If(Token.Const('{', input), ([_0, input]) => If(WithPropertyList(input), ([_1, input]) => If(Token.Const('}', input), ([_2, input]) => [[_0, _1, _2], input]))), ([_0, input]) => [S.WithObjectMapping(_0), input]);
|
|
107
|
+
export const WithElementList_0 = (input, result = []) => If(If(WithValue(input), ([_0, input]) => If(Token.Const(',', input), ([_1, input]) => [[_0, _1], input])), ([_0, input]) => WithElementList_0(input, [...result, _0]), () => [result, input]);
|
|
108
|
+
export const WithElementList = (input) => If(If(WithElementList_0(input), ([_0, input]) => If(If(If(WithValue(input), ([_0, input]) => [[_0], input]), ([_0, input]) => [_0, input], () => If([[], input], ([_0, input]) => [_0, input], () => [])), ([_1, input]) => [[_0, _1], input])), ([_0, input]) => [S.WithElementListMapping(_0), input]);
|
|
109
|
+
export const WithArray = (input) => If(If(Token.Const('[', input), ([_0, input]) => If(WithElementList(input), ([_1, input]) => If(Token.Const(']', input), ([_2, input]) => [[_0, _1, _2], input]))), ([_0, input]) => [S.WithArrayMapping(_0), input]);
|
|
110
|
+
export const WithValue = (input) => If(If(WithBigInt(input), ([_0, input]) => [_0, input], () => If(WithNumber(input), ([_0, input]) => [_0, input], () => If(WithBoolean(input), ([_0, input]) => [_0, input], () => If(WithString(input), ([_0, input]) => [_0, input], () => If(WithNull(input), ([_0, input]) => [_0, input], () => If(WithUndefined(input), ([_0, input]) => [_0, input], () => If(WithObject(input), ([_0, input]) => [_0, input], () => If(WithArray(input), ([_0, input]) => [_0, input], () => [])))))))), ([_0, input]) => [S.WithValueMapping(_0), input]);
|
|
109
111
|
export const PatternBigInt = (input) => If(Token.Const('-?(?:0|[1-9][0-9]*)n', input), ([_0, input]) => [S.PatternBigIntMapping(_0), input]);
|
|
110
112
|
export const PatternString = (input) => If(Token.Const('.*', input), ([_0, input]) => [S.PatternStringMapping(_0), input]);
|
|
111
113
|
export const PatternNumber = (input) => If(Token.Const('-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?', input), ([_0, input]) => [S.PatternNumberMapping(_0), input]);
|
|
@@ -1,16 +1,9 @@
|
|
|
1
1
|
import { type TSchema } from './schema.mjs';
|
|
2
|
-
|
|
3
|
-
export type TImmutableRemove<Type extends TSchema, Result extends TSchema = Type extends TImmutable<infer Type extends TSchema> ? Type : Type> = Result;
|
|
4
|
-
/** Removes Immutable from the given type. */
|
|
5
|
-
export declare function ImmutableRemove<Type extends TSchema>(type: Type): TImmutableRemove<Type>;
|
|
6
|
-
/** Adds Immutable to the given type. */
|
|
7
|
-
export type TImmutableAdd<Type extends TSchema = TSchema> = ('~immutable' extends keyof Type ? Type : TImmutable<Type>);
|
|
8
|
-
/** Adds Immutable to the given type. */
|
|
9
|
-
export declare function ImmutableAdd<Type extends TSchema>(type: Type): TImmutableAdd<Type>;
|
|
2
|
+
import { type TAddImmutable } from '../action/_add_immutable.mjs';
|
|
10
3
|
export type TImmutable<Type extends TSchema = TSchema> = (Type & {
|
|
11
4
|
'~immutable': true;
|
|
12
5
|
});
|
|
13
6
|
/** Applies an Immutable modifier to the given type. */
|
|
14
|
-
export declare function Immutable<Type extends TSchema>(type: Type):
|
|
7
|
+
export declare function Immutable<Type extends TSchema>(type: Type): TAddImmutable<Type>;
|
|
15
8
|
/** Returns true if the given value is a TImmutable */
|
|
16
9
|
export declare function IsImmutable(value: unknown): value is TImmutable<TSchema>;
|
|
@@ -1,21 +1,13 @@
|
|
|
1
1
|
// deno-fmt-ignore-file
|
|
2
|
-
import { Memory } from '../../system/memory/index.mjs';
|
|
3
2
|
import { Guard } from '../../guard/index.mjs';
|
|
4
3
|
import { IsSchema } from './schema.mjs';
|
|
5
|
-
|
|
6
|
-
export function ImmutableRemove(type) {
|
|
7
|
-
return Memory.Discard(type, ['~immutable']);
|
|
8
|
-
}
|
|
9
|
-
/** Adds Immutable to the given type. */
|
|
10
|
-
export function ImmutableAdd(type) {
|
|
11
|
-
return Memory.Update(type, { '~immutable': true }, {});
|
|
12
|
-
}
|
|
4
|
+
import { AddImmutable } from '../action/_add_immutable.mjs';
|
|
13
5
|
// ------------------------------------------------------------------
|
|
14
6
|
// Factory
|
|
15
7
|
// ------------------------------------------------------------------
|
|
16
8
|
/** Applies an Immutable modifier to the given type. */
|
|
17
9
|
export function Immutable(type) {
|
|
18
|
-
return
|
|
10
|
+
return AddImmutable(type);
|
|
19
11
|
}
|
|
20
12
|
// ------------------------------------------------------------------
|
|
21
13
|
// Guard
|
|
@@ -1,16 +1,9 @@
|
|
|
1
1
|
import { type TSchema } from './schema.mjs';
|
|
2
|
-
|
|
3
|
-
export type TOptionalRemove<Type extends TSchema, Result extends TSchema = Type extends TOptional<infer Type extends TSchema> ? Type : Type> = Result;
|
|
4
|
-
/** Removes Optional from the given type. */
|
|
5
|
-
export declare function OptionalRemove<Type extends TSchema>(type: Type): TOptionalRemove<Type>;
|
|
6
|
-
/** Adds Optional to the given type. */
|
|
7
|
-
export type TOptionalAdd<Type extends TSchema = TSchema, Result extends TSchema = '~optional' extends keyof Type ? Type : TOptional<Type>> = Result;
|
|
8
|
-
/** Adds Optional to the given type. */
|
|
9
|
-
export declare function OptionalAdd<Type extends TSchema>(type: Type): TOptionalAdd<Type>;
|
|
2
|
+
import { type TAddOptional } from '../action/_add_optional.mjs';
|
|
10
3
|
export type TOptional<Type extends TSchema = TSchema> = (Type & {
|
|
11
4
|
'~optional': true;
|
|
12
5
|
});
|
|
13
6
|
/** Applies an Optional modifier to the given type. */
|
|
14
|
-
export declare function Optional<Type extends TSchema>(type: Type):
|
|
7
|
+
export declare function Optional<Type extends TSchema>(type: Type): TAddOptional<Type>;
|
|
15
8
|
/** Returns true if the given value is TOptional */
|
|
16
9
|
export declare function IsOptional(value: unknown): value is TOptional<TSchema>;
|
|
@@ -1,22 +1,13 @@
|
|
|
1
1
|
// deno-fmt-ignore-file
|
|
2
2
|
import { Guard } from '../../guard/index.mjs';
|
|
3
|
-
import { Memory } from '../../system/memory/index.mjs';
|
|
4
3
|
import { IsSchema } from './schema.mjs';
|
|
5
|
-
|
|
6
|
-
export function OptionalRemove(type) {
|
|
7
|
-
const result = Memory.Discard(type, ['~optional']);
|
|
8
|
-
return result;
|
|
9
|
-
}
|
|
10
|
-
/** Adds Optional to the given type. */
|
|
11
|
-
export function OptionalAdd(type) {
|
|
12
|
-
return Memory.Update(type, { '~optional': true }, {});
|
|
13
|
-
}
|
|
4
|
+
import { AddOptional } from '../action/_add_optional.mjs';
|
|
14
5
|
// ------------------------------------------------------------------
|
|
15
6
|
// Factory
|
|
16
7
|
// ------------------------------------------------------------------
|
|
17
8
|
/** Applies an Optional modifier to the given type. */
|
|
18
9
|
export function Optional(type) {
|
|
19
|
-
return
|
|
10
|
+
return AddOptional(type);
|
|
20
11
|
}
|
|
21
12
|
// ------------------------------------------------------------------
|
|
22
13
|
// Guard
|
|
@@ -1,16 +1,9 @@
|
|
|
1
1
|
import { type TSchema } from './schema.mjs';
|
|
2
|
-
|
|
3
|
-
export type TReadonlyRemove<Type extends TSchema, Result extends TSchema = Type extends TReadonly<infer Type extends TSchema> ? Type : Type> = Result;
|
|
4
|
-
/** Removes a Readonly property modifier from the given type. */
|
|
5
|
-
export declare function ReadonlyRemove<Type extends TSchema>(type: Type): TReadonlyRemove<Type>;
|
|
6
|
-
/** Adds a Readonly property modifier to the given type. */
|
|
7
|
-
export type TReadonlyAdd<Type extends TSchema = TSchema> = ('~readonly' extends keyof Type ? Type : TReadonly<Type>);
|
|
8
|
-
/** Adds a Readonly property modifier to the given type. */
|
|
9
|
-
export declare function ReadonlyAdd<Type extends TSchema>(type: Type): TReadonlyAdd<Type>;
|
|
2
|
+
import { type TAddReadonly } from '../action/_add_readonly.mjs';
|
|
10
3
|
export type TReadonly<Type extends TSchema = TSchema> = (Type & {
|
|
11
4
|
'~readonly': true;
|
|
12
5
|
});
|
|
13
6
|
/** Applies an Readonly property modifier to the given type. */
|
|
14
|
-
export declare function Readonly<Type extends TSchema>(type: Type):
|
|
7
|
+
export declare function Readonly<Type extends TSchema>(type: Type): TAddReadonly<Type>;
|
|
15
8
|
/** Returns true if the given value is a TReadonly */
|
|
16
9
|
export declare function IsReadonly(value: unknown): value is TReadonly<TSchema>;
|
|
@@ -1,21 +1,13 @@
|
|
|
1
1
|
// deno-fmt-ignore-file
|
|
2
|
-
import { Memory } from '../../system/memory/index.mjs';
|
|
3
2
|
import { Guard } from '../../guard/index.mjs';
|
|
4
3
|
import { IsSchema } from './schema.mjs';
|
|
5
|
-
|
|
6
|
-
export function ReadonlyRemove(type) {
|
|
7
|
-
return Memory.Discard(type, ['~readonly']);
|
|
8
|
-
}
|
|
9
|
-
/** Adds a Readonly property modifier to the given type. */
|
|
10
|
-
export function ReadonlyAdd(type) {
|
|
11
|
-
return Memory.Update(type, { '~readonly': true }, {});
|
|
12
|
-
}
|
|
4
|
+
import { AddReadonly } from '../action/_add_readonly.mjs';
|
|
13
5
|
// ------------------------------------------------------------------
|
|
14
6
|
// Factory
|
|
15
7
|
// ------------------------------------------------------------------
|
|
16
8
|
/** Applies an Readonly property modifier to the given type. */
|
|
17
9
|
export function Readonly(type) {
|
|
18
|
-
return
|
|
10
|
+
return AddReadonly(type);
|
|
19
11
|
}
|
|
20
12
|
// ------------------------------------------------------------------
|
|
21
13
|
// Guard
|
|
@@ -2,6 +2,7 @@ import { type TSchema, type TSchemaOptions } from './schema.mjs';
|
|
|
2
2
|
/** Represents a deferred action. */
|
|
3
3
|
export interface TDeferred<Action extends string = string, Types extends TSchema[] = TSchema[]> extends TSchema {
|
|
4
4
|
'~kind': 'Deferred';
|
|
5
|
+
type: 'deferred';
|
|
5
6
|
action: Action;
|
|
6
7
|
parameters: Types;
|
|
7
8
|
options: TSchemaOptions;
|
|
@@ -5,7 +5,7 @@ import { IsKind } from './schema.mjs';
|
|
|
5
5
|
// ------------------------------------------------------------------
|
|
6
6
|
/** Creates a Deferred action. */
|
|
7
7
|
export function Deferred(action, parameters, options) {
|
|
8
|
-
return Memory.Create({ '~kind': 'Deferred' }, { action, parameters, options }, {});
|
|
8
|
+
return Memory.Create({ '~kind': 'Deferred' }, { type: 'deferred', action, parameters, options }, {});
|
|
9
9
|
}
|
|
10
10
|
// ------------------------------------------------------------------
|
|
11
11
|
// Guard
|
|
@@ -1256,9 +1256,9 @@
|
|
|
1256
1256
|
"optional": true
|
|
1257
1257
|
},
|
|
1258
1258
|
"node_modules/typebox": {
|
|
1259
|
-
"version": "1.2.
|
|
1260
|
-
"resolved": "https://registry.npmjs.org/typebox/-/typebox-1.2.
|
|
1261
|
-
"integrity": "sha512-
|
|
1259
|
+
"version": "1.2.6",
|
|
1260
|
+
"resolved": "https://registry.npmjs.org/typebox/-/typebox-1.2.6.tgz",
|
|
1261
|
+
"integrity": "sha512-9LXWA7hsfQTDecP1vDjlT9JFVobJ5x9lgaZ5vrcZuhTJ6wNGxJ5FnqYCgV0pdxSTxGSHEQ+DjA+fCOcWP5+b9g==",
|
|
1262
1262
|
"license": "MIT"
|
|
1263
1263
|
},
|
|
1264
1264
|
"node_modules/typescript": {
|
|
@@ -4919,9 +4919,9 @@
|
|
|
4919
4919
|
"license": "MIT"
|
|
4920
4920
|
},
|
|
4921
4921
|
"node_modules/semantic-release": {
|
|
4922
|
-
"version": "25.0.
|
|
4923
|
-
"resolved": "https://registry.npmjs.org/semantic-release/-/semantic-release-25.0.
|
|
4924
|
-
"integrity": "sha512-
|
|
4922
|
+
"version": "25.0.5",
|
|
4923
|
+
"resolved": "https://registry.npmjs.org/semantic-release/-/semantic-release-25.0.5.tgz",
|
|
4924
|
+
"integrity": "sha512-mn61SUJwtM8ThrWn2WmgLVpwVJeG/hPSupua1psdMoufmwRIPyvRLkRkL0JDXkP67OntlLWUYnBnfVc8EDO3/g==",
|
|
4925
4925
|
"dev": true,
|
|
4926
4926
|
"license": "MIT",
|
|
4927
4927
|
"dependencies": {
|
|
@@ -5316,9 +5316,9 @@
|
|
|
5316
5316
|
}
|
|
5317
5317
|
},
|
|
5318
5318
|
"node_modules/semver": {
|
|
5319
|
-
"version": "7.8.
|
|
5320
|
-
"resolved": "https://registry.npmjs.org/semver/-/semver-7.8.
|
|
5321
|
-
"integrity": "sha512-
|
|
5319
|
+
"version": "7.8.4",
|
|
5320
|
+
"resolved": "https://registry.npmjs.org/semver/-/semver-7.8.4.tgz",
|
|
5321
|
+
"integrity": "sha512-rUCObTnP32Q08R2uuIrt7r9PlEonuTmtuXYcW6s5kjdlj3xbnwe+21yXptAUYcMAABLkYYTtnmzb3w3EDZfueA==",
|
|
5322
5322
|
"dev": true,
|
|
5323
5323
|
"license": "ISC",
|
|
5324
5324
|
"bin": {
|
package/package.json
CHANGED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { type TSchema } from '../types/schema.mjs';
|
|
2
|
-
/** Represents a operation to apply Optional to a property */
|
|
3
|
-
export interface TOptionalAddAction<Type extends TSchema = TSchema> extends TSchema {
|
|
4
|
-
'~kind': 'OptionalAddAction';
|
|
5
|
-
type: Type;
|
|
6
|
-
}
|
|
7
|
-
/** Creates an OptionalAddAction. */
|
|
8
|
-
export declare function OptionalAddAction<Type extends TSchema>(type: Type): TOptionalAddAction<Type>;
|
|
9
|
-
/** Returns true if this value is a OptionalAddAction. */
|
|
10
|
-
export declare function IsOptionalAddAction(value: unknown): value is TOptionalAddAction;
|
|
11
|
-
/** Represents a operation to remove Optional from a property */
|
|
12
|
-
export interface TOptionalRemoveAction<Type extends TSchema = TSchema> extends TSchema {
|
|
13
|
-
'~kind': 'OptionalRemoveAction';
|
|
14
|
-
type: Type;
|
|
15
|
-
}
|
|
16
|
-
/** Creates a OptionalRemoveAction. */
|
|
17
|
-
export declare function OptionalRemoveAction<Type extends TSchema>(type: Type): TOptionalRemoveAction<Type>;
|
|
18
|
-
/** Returns true if this value is a OptionalRemoveAction. */
|
|
19
|
-
export declare function IsOptionalRemoveAction(value: unknown): value is TOptionalRemoveAction;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
// deno-fmt-ignore-file
|
|
2
|
-
import { Memory } from '../../system/memory/index.mjs';
|
|
3
|
-
import { Guard } from '../../guard/index.mjs';
|
|
4
|
-
import { IsSchema } from '../types/schema.mjs';
|
|
5
|
-
// ------------------------------------------------------------------
|
|
6
|
-
// Action
|
|
7
|
-
// ------------------------------------------------------------------
|
|
8
|
-
/** Creates an OptionalAddAction. */
|
|
9
|
-
export function OptionalAddAction(type) {
|
|
10
|
-
return Memory.Create({ ['~kind']: 'OptionalAddAction' }, { type }, {});
|
|
11
|
-
}
|
|
12
|
-
// ------------------------------------------------------------------
|
|
13
|
-
// Guard
|
|
14
|
-
// ------------------------------------------------------------------
|
|
15
|
-
/** Returns true if this value is a OptionalAddAction. */
|
|
16
|
-
export function IsOptionalAddAction(value) {
|
|
17
|
-
return Guard.IsObject(value)
|
|
18
|
-
&& Guard.HasPropertyKey(value, '~kind')
|
|
19
|
-
&& Guard.HasPropertyKey(value, 'type')
|
|
20
|
-
&& Guard.IsEqual(value['~kind'], 'OptionalAddAction')
|
|
21
|
-
&& IsSchema(value.type);
|
|
22
|
-
}
|
|
23
|
-
// ------------------------------------------------------------------
|
|
24
|
-
// Factory
|
|
25
|
-
// ------------------------------------------------------------------
|
|
26
|
-
/** Creates a OptionalRemoveAction. */
|
|
27
|
-
export function OptionalRemoveAction(type) {
|
|
28
|
-
return Memory.Create({ ['~kind']: 'OptionalRemoveAction' }, { type }, {});
|
|
29
|
-
}
|
|
30
|
-
// ------------------------------------------------------------------
|
|
31
|
-
// Guard
|
|
32
|
-
// ------------------------------------------------------------------
|
|
33
|
-
/** Returns true if this value is a OptionalRemoveAction. */
|
|
34
|
-
export function IsOptionalRemoveAction(value) {
|
|
35
|
-
return Guard.IsObject(value)
|
|
36
|
-
&& Guard.HasPropertyKey(value, '~kind')
|
|
37
|
-
&& Guard.HasPropertyKey(value, 'type')
|
|
38
|
-
&& Guard.IsEqual(value['~kind'], 'OptionalRemoveAction')
|
|
39
|
-
&& IsSchema(value.type);
|
|
40
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { type TSchema } from '../types/schema.mjs';
|
|
2
|
-
/** Represents an operation to apply Readonly to a property. */
|
|
3
|
-
export interface TReadonlyAddAction<Type extends TSchema = TSchema> extends TSchema {
|
|
4
|
-
'~kind': 'ReadonlyAddAction';
|
|
5
|
-
type: Type;
|
|
6
|
-
}
|
|
7
|
-
/** Creates a ReadonlyAddAction. */
|
|
8
|
-
export declare function ReadonlyAddAction<Type extends TSchema>(type: Type): TReadonlyAddAction<Type>;
|
|
9
|
-
/** Returns true if this value is a ReadonlyAddAction. */
|
|
10
|
-
export declare function IsReadonlyAddAction(value: unknown): value is TReadonlyAddAction;
|
|
11
|
-
/** Represents an action to remove Readonly from a property. */
|
|
12
|
-
export interface TReadonlyRemoveAction<Type extends TSchema = TSchema> extends TSchema {
|
|
13
|
-
'~kind': 'ReadonlyRemoveAction';
|
|
14
|
-
type: Type;
|
|
15
|
-
}
|
|
16
|
-
/** Creates a ReadonlyRemoveAction. */
|
|
17
|
-
export declare function ReadonlyRemoveAction<Type extends TSchema>(type: Type): TReadonlyRemoveAction<Type>;
|
|
18
|
-
/** Returns true if this value is a ReadonlyRemoveAction. */
|
|
19
|
-
export declare function IsReadonlyRemoveAction(value: unknown): value is TReadonlyRemoveAction;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
// deno-fmt-ignore-file
|
|
2
|
-
import { Memory } from '../../system/memory/index.mjs';
|
|
3
|
-
import { Guard } from '../../guard/index.mjs';
|
|
4
|
-
import { IsSchema } from '../types/schema.mjs';
|
|
5
|
-
// ------------------------------------------------------------------
|
|
6
|
-
// Action
|
|
7
|
-
// ------------------------------------------------------------------
|
|
8
|
-
/** Creates a ReadonlyAddAction. */
|
|
9
|
-
export function ReadonlyAddAction(type) {
|
|
10
|
-
return Memory.Create({ ['~kind']: 'ReadonlyAddAction' }, { type }, {});
|
|
11
|
-
}
|
|
12
|
-
// ------------------------------------------------------------------
|
|
13
|
-
// Guard
|
|
14
|
-
// ------------------------------------------------------------------
|
|
15
|
-
/** Returns true if this value is a ReadonlyAddAction. */
|
|
16
|
-
export function IsReadonlyAddAction(value) {
|
|
17
|
-
return Guard.IsObject(value)
|
|
18
|
-
&& Guard.HasPropertyKey(value, '~kind')
|
|
19
|
-
&& Guard.HasPropertyKey(value, 'type')
|
|
20
|
-
&& Guard.IsEqual(value['~kind'], 'ReadonlyAddAction')
|
|
21
|
-
&& IsSchema(value.type);
|
|
22
|
-
}
|
|
23
|
-
// ------------------------------------------------------------------
|
|
24
|
-
// Factory
|
|
25
|
-
// ------------------------------------------------------------------
|
|
26
|
-
/** Creates a ReadonlyRemoveAction. */
|
|
27
|
-
export function ReadonlyRemoveAction(type) {
|
|
28
|
-
return Memory.Create({ ['~kind']: 'ReadonlyRemoveAction' }, { type }, {});
|
|
29
|
-
}
|
|
30
|
-
// ------------------------------------------------------------------
|
|
31
|
-
// Guard
|
|
32
|
-
// ------------------------------------------------------------------
|
|
33
|
-
/** Returns true if this value is a ReadonlyRemoveAction. */
|
|
34
|
-
export function IsReadonlyRemoveAction(value) {
|
|
35
|
-
return Guard.IsObject(value)
|
|
36
|
-
&& Guard.HasPropertyKey(value, '~kind')
|
|
37
|
-
&& Guard.HasPropertyKey(value, 'type')
|
|
38
|
-
&& Guard.IsEqual(value['~kind'], 'ReadonlyRemoveAction')
|
|
39
|
-
&& IsSchema(value.type);
|
|
40
|
-
}
|