typia 7.0.0-dev.20241007 → 7.0.0-dev.20241008
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/lib/factories/ExpressionFactory.d.ts +1 -1
- package/lib/factories/ValueFactory.d.ts +1 -1
- package/lib/programmers/AssertProgrammer.d.ts +5 -2
- package/lib/programmers/AssertProgrammer.js +12 -5
- package/lib/programmers/AssertProgrammer.js.map +1 -1
- package/lib/programmers/ImportProgrammer.d.ts +25 -4
- package/lib/programmers/ImportProgrammer.js +67 -31
- package/lib/programmers/ImportProgrammer.js.map +1 -1
- package/lib/programmers/RandomProgrammer.js +48 -32
- package/lib/programmers/RandomProgrammer.js.map +1 -1
- package/lib/programmers/ValidateProgrammer.js +10 -4
- package/lib/programmers/ValidateProgrammer.js.map +1 -1
- package/lib/programmers/functional/FunctionalAssertFunctionProgrammer.js +1 -1
- package/lib/programmers/functional/FunctionalAssertFunctionProgrammer.js.map +1 -1
- package/lib/programmers/functional/FunctionalValidateFunctionProgrammer.d.ts +1 -0
- package/lib/programmers/functional/FunctionalValidateFunctionProgrammer.js +14 -5
- package/lib/programmers/functional/FunctionalValidateFunctionProgrammer.js.map +1 -1
- package/lib/programmers/functional/FunctionalValidateParametersProgrammer.js +5 -1
- package/lib/programmers/functional/FunctionalValidateParametersProgrammer.js.map +1 -1
- package/lib/programmers/functional/FunctionalValidateReturnProgrammer.js +1 -0
- package/lib/programmers/functional/FunctionalValidateReturnProgrammer.js.map +1 -1
- package/lib/programmers/http/HttpAssertFormDataProgrammer.js +4 -1
- package/lib/programmers/http/HttpAssertFormDataProgrammer.js.map +1 -1
- package/lib/programmers/http/HttpAssertHeadersProgrammer.js +4 -1
- package/lib/programmers/http/HttpAssertHeadersProgrammer.js.map +1 -1
- package/lib/programmers/http/HttpAssertQueryProgrammer.js +4 -1
- package/lib/programmers/http/HttpAssertQueryProgrammer.js.map +1 -1
- package/lib/programmers/http/HttpFormDataProgrammer.js +10 -6
- package/lib/programmers/http/HttpFormDataProgrammer.js.map +1 -1
- package/lib/programmers/http/HttpHeadersProgrammer.js +10 -6
- package/lib/programmers/http/HttpHeadersProgrammer.js.map +1 -1
- package/lib/programmers/http/HttpQueryProgrammer.js +10 -6
- package/lib/programmers/http/HttpQueryProgrammer.js.map +1 -1
- package/lib/programmers/http/HttpValidateFormDataProgrammer.js +5 -3
- package/lib/programmers/http/HttpValidateFormDataProgrammer.js.map +1 -1
- package/lib/programmers/http/HttpValidateHeadersProgrammer.js +5 -3
- package/lib/programmers/http/HttpValidateHeadersProgrammer.js.map +1 -1
- package/lib/programmers/http/HttpValidateQueryProgrammer.js +5 -3
- package/lib/programmers/http/HttpValidateQueryProgrammer.js.map +1 -1
- package/lib/programmers/json/JsonAssertParseProgrammer.js +14 -7
- package/lib/programmers/json/JsonAssertParseProgrammer.js.map +1 -1
- package/lib/programmers/json/JsonAssertStringifyProgrammer.js +4 -1
- package/lib/programmers/json/JsonAssertStringifyProgrammer.js.map +1 -1
- package/lib/programmers/json/JsonIsParseProgrammer.js +10 -6
- package/lib/programmers/json/JsonIsParseProgrammer.js.map +1 -1
- package/lib/programmers/json/JsonValidateParseProgrammer.js +16 -4
- package/lib/programmers/json/JsonValidateParseProgrammer.js.map +1 -1
- package/lib/programmers/json/JsonValidateStringifyProgrammer.js +7 -3
- package/lib/programmers/json/JsonValidateStringifyProgrammer.js.map +1 -1
- package/lib/programmers/misc/MiscAssertCloneProgrammer.js +4 -1
- package/lib/programmers/misc/MiscAssertCloneProgrammer.js.map +1 -1
- package/lib/programmers/misc/MiscAssertPruneProgrammer.js +4 -1
- package/lib/programmers/misc/MiscAssertPruneProgrammer.js.map +1 -1
- package/lib/programmers/misc/MiscCloneProgrammer.js +10 -6
- package/lib/programmers/misc/MiscCloneProgrammer.js.map +1 -1
- package/lib/programmers/misc/MiscValidateCloneProgrammer.js +5 -3
- package/lib/programmers/misc/MiscValidateCloneProgrammer.js.map +1 -1
- package/lib/programmers/misc/MiscValidatePruneProgrammer.js +10 -4
- package/lib/programmers/misc/MiscValidatePruneProgrammer.js.map +1 -1
- package/lib/programmers/notations/NotationAssertGeneralProgrammer.js +4 -1
- package/lib/programmers/notations/NotationAssertGeneralProgrammer.js.map +1 -1
- package/lib/programmers/notations/NotationGeneralProgrammer.d.ts +2 -1
- package/lib/programmers/notations/NotationGeneralProgrammer.js +13 -5
- package/lib/programmers/notations/NotationGeneralProgrammer.js.map +1 -1
- package/lib/programmers/notations/NotationValidateGeneralProgrammer.js +5 -3
- package/lib/programmers/notations/NotationValidateGeneralProgrammer.js.map +1 -1
- package/lib/programmers/protobuf/ProtobufAssertDecodeProgrammer.js +4 -1
- package/lib/programmers/protobuf/ProtobufAssertDecodeProgrammer.js.map +1 -1
- package/lib/programmers/protobuf/ProtobufAssertEncodeProgrammer.js +4 -1
- package/lib/programmers/protobuf/ProtobufAssertEncodeProgrammer.js.map +1 -1
- package/lib/programmers/protobuf/ProtobufDecodeProgrammer.js +10 -6
- package/lib/programmers/protobuf/ProtobufDecodeProgrammer.js.map +1 -1
- package/lib/programmers/protobuf/ProtobufValidateDecodeProgrammer.js +5 -3
- package/lib/programmers/protobuf/ProtobufValidateDecodeProgrammer.js.map +1 -1
- package/lib/programmers/protobuf/ProtobufValidateEncodeProgrammer.js +7 -3
- package/lib/programmers/protobuf/ProtobufValidateEncodeProgrammer.js.map +1 -1
- package/package.json +1 -1
- package/src/factories/JsonMetadataFactory.ts +63 -63
- package/src/factories/ProtobufFactory.ts +275 -275
- package/src/programmers/AssertProgrammer.ts +454 -456
- package/src/programmers/CheckerProgrammer.ts +1610 -1610
- package/src/programmers/ImportProgrammer.ts +184 -109
- package/src/programmers/IsProgrammer.ts +273 -273
- package/src/programmers/RandomProgrammer.ts +168 -149
- package/src/programmers/TypiaProgrammer.ts +171 -171
- package/src/programmers/ValidateProgrammer.ts +434 -430
- package/src/programmers/functional/FunctionalAssertFunctionProgrammer.ts +1 -1
- package/src/programmers/functional/FunctionalValidateFunctionProgrammer.ts +12 -16
- package/src/programmers/functional/FunctionalValidateParametersProgrammer.ts +5 -12
- package/src/programmers/functional/FunctionalValidateReturnProgrammer.ts +1 -0
- package/src/programmers/helpers/OptionPredicator.ts +15 -15
- package/src/programmers/http/HttpAssertFormDataProgrammer.ts +99 -96
- package/src/programmers/http/HttpAssertHeadersProgrammer.ts +99 -96
- package/src/programmers/http/HttpAssertQueryProgrammer.ts +105 -102
- package/src/programmers/http/HttpFormDataProgrammer.ts +304 -308
- package/src/programmers/http/HttpHeadersProgrammer.ts +400 -404
- package/src/programmers/http/HttpIsFormDataProgrammer.ts +108 -108
- package/src/programmers/http/HttpIsHeadersProgrammer.ts +108 -108
- package/src/programmers/http/HttpIsQueryProgrammer.ts +114 -114
- package/src/programmers/http/HttpParameterProgrammer.ts +115 -115
- package/src/programmers/http/HttpQueryProgrammer.ts +329 -333
- package/src/programmers/http/HttpValidateFormDataProgrammer.ts +92 -90
- package/src/programmers/http/HttpValidateHeadersProgrammer.ts +92 -90
- package/src/programmers/http/HttpValidateQueryProgrammer.ts +98 -96
- package/src/programmers/json/JsonApplicationProgrammer.ts +92 -92
- package/src/programmers/json/JsonAssertParseProgrammer.ts +103 -104
- package/src/programmers/json/JsonAssertStringifyProgrammer.ts +115 -112
- package/src/programmers/json/JsonIsParseProgrammer.ts +114 -118
- package/src/programmers/json/JsonIsStringifyProgrammer.ts +108 -108
- package/src/programmers/json/JsonStringifyProgrammer.ts +1124 -1124
- package/src/programmers/json/JsonValidateParseProgrammer.ts +105 -95
- package/src/programmers/json/JsonValidateStringifyProgrammer.ts +124 -119
- package/src/programmers/misc/MiscAssertCloneProgrammer.ts +95 -92
- package/src/programmers/misc/MiscAssertPruneProgrammer.ts +116 -113
- package/src/programmers/misc/MiscCloneProgrammer.ts +1025 -1029
- package/src/programmers/misc/MiscIsCloneProgrammer.ts +99 -99
- package/src/programmers/misc/MiscIsPruneProgrammer.ts +97 -97
- package/src/programmers/misc/MiscLiteralsProgrammer.ts +80 -80
- package/src/programmers/misc/MiscPruneProgrammer.ts +725 -725
- package/src/programmers/misc/MiscValidateCloneProgrammer.ts +111 -109
- package/src/programmers/misc/MiscValidatePruneProgrammer.ts +113 -109
- package/src/programmers/notations/NotationAssertGeneralProgrammer.ts +101 -98
- package/src/programmers/notations/NotationGeneralProgrammer.ts +977 -973
- package/src/programmers/notations/NotationIsGeneralProgrammer.ts +105 -105
- package/src/programmers/notations/NotationValidateGeneralProgrammer.ts +119 -117
- package/src/programmers/protobuf/ProtobufAssertDecodeProgrammer.ts +98 -95
- package/src/programmers/protobuf/ProtobufAssertEncodeProgrammer.ts +102 -99
- package/src/programmers/protobuf/ProtobufDecodeProgrammer.ts +708 -711
- package/src/programmers/protobuf/ProtobufEncodeProgrammer.ts +1019 -1019
- package/src/programmers/protobuf/ProtobufIsDecodeProgrammer.ts +109 -109
- package/src/programmers/protobuf/ProtobufIsEncodeProgrammer.ts +98 -98
- package/src/programmers/protobuf/ProtobufValidateDecodeProgrammer.ts +92 -90
- package/src/programmers/protobuf/ProtobufValidateEncodeProgrammer.ts +119 -114
- package/src/transform.ts +35 -35
- package/src/transformers/CallExpressionTransformer.ts +540 -540
- package/src/transformers/FileTransformer.ts +120 -120
- package/src/transformers/IProgrammerProps.ts +11 -11
- package/src/transformers/ITransformOptions.ts +62 -62
- package/src/transformers/ITransformProps.ts +9 -9
- package/src/transformers/ITypiaContext.ts +18 -18
- package/src/transformers/ImportTransformer.ts +66 -66
- package/src/transformers/NodeTransformer.ts +17 -17
- package/src/transformers/TransformerError.ts +59 -59
- package/src/transformers/features/AssertTransformer.ts +24 -24
- package/src/transformers/features/CreateAssertTransformer.ts +24 -24
- package/src/transformers/features/CreateIsTransformer.ts +18 -18
- package/src/transformers/features/CreateRandomTransformer.ts +43 -43
- package/src/transformers/features/CreateValidateTransformer.ts +18 -18
- package/src/transformers/features/IsTransformer.ts +18 -18
- package/src/transformers/features/RandomTransformer.ts +41 -41
- package/src/transformers/features/ValidateTransformer.ts +18 -18
- package/src/transformers/features/functional/FunctionalGenericTransformer.ts +57 -57
- package/src/transformers/features/http/CreateHttpAssertFormDataTransformer.ts +13 -13
- package/src/transformers/features/http/CreateHttpAssertHeadersTransformer.ts +13 -13
- package/src/transformers/features/http/CreateHttpAssertQueryTransformer.ts +13 -13
- package/src/transformers/features/http/CreateHttpFormDataTransformer.ts +13 -13
- package/src/transformers/features/http/CreateHttpHeadersTransformer.ts +13 -13
- package/src/transformers/features/http/CreateHttpIsFormDataTransformer.ts +13 -13
- package/src/transformers/features/http/CreateHttpIsHeadersTransformer.ts +13 -13
- package/src/transformers/features/http/CreateHttpIsQueryTransformer.ts +13 -13
- package/src/transformers/features/http/CreateHttpParameterTransformer.ts +13 -13
- package/src/transformers/features/http/CreateHttpQueryTransformer.ts +13 -13
- package/src/transformers/features/http/CreateHttpValidateFormDataTransformer.ts +13 -13
- package/src/transformers/features/http/CreateHttpValidateHeadersTransformer.ts +13 -13
- package/src/transformers/features/http/CreateHttpValidateQueryTransformer.ts +13 -13
- package/src/transformers/features/http/HttpAssertFormDataTransformer.ts +13 -13
- package/src/transformers/features/http/HttpAssertHeadersTransformer.ts +13 -13
- package/src/transformers/features/http/HttpAssertQueryTransformer.ts +13 -13
- package/src/transformers/features/http/HttpFormDataTransformer.ts +13 -13
- package/src/transformers/features/http/HttpHeadersTransformer.ts +13 -13
- package/src/transformers/features/http/HttpIsFormDataTransformer.ts +13 -13
- package/src/transformers/features/http/HttpIsHeadersTransformer.ts +13 -13
- package/src/transformers/features/http/HttpIsQueryTransformer.ts +13 -13
- package/src/transformers/features/http/HttpParameterTransformer.ts +13 -13
- package/src/transformers/features/http/HttpQueryTransformer.ts +13 -13
- package/src/transformers/features/http/HttpValidateFormDataTransformer.ts +13 -13
- package/src/transformers/features/http/HttpValidateHeadersTransformer.ts +13 -13
- package/src/transformers/features/http/HttpValidateQueryTransformer.ts +13 -13
- package/src/transformers/features/json/JsonApplicationTransformer.ts +130 -130
- package/src/transformers/features/json/JsonAssertParseTransformer.ts +13 -13
- package/src/transformers/features/json/JsonAssertStringifyTransformer.ts +13 -13
- package/src/transformers/features/json/JsonCreateAssertParseTransformer.ts +13 -13
- package/src/transformers/features/json/JsonCreateAssertStringifyTransformer.ts +13 -13
- package/src/transformers/features/json/JsonCreateIsParseTransformer.ts +13 -13
- package/src/transformers/features/json/JsonCreateIsStringifyTransformer.ts +13 -13
- package/src/transformers/features/json/JsonCreateStringifyTransformer.ts +13 -13
- package/src/transformers/features/json/JsonCreateValidateParseTransformer.ts +13 -13
- package/src/transformers/features/json/JsonCreateValidateStringifyProgrammer.ts +13 -13
- package/src/transformers/features/json/JsonIsParseTransformer.ts +13 -13
- package/src/transformers/features/json/JsonIsStringifyTransformer.ts +13 -13
- package/src/transformers/features/json/JsonStringifyTransformer.ts +13 -13
- package/src/transformers/features/json/JsonValidateParseTransformer.ts +13 -13
- package/src/transformers/features/json/JsonValidateStringifyTransformer.ts +13 -13
- package/src/transformers/features/llm/LlmApplicationTransformer.ts +86 -86
- package/src/transformers/features/llm/LlmSchemaTransformer.ts +59 -59
- package/src/transformers/features/misc/MiscAssertCloneTransformer.ts +13 -13
- package/src/transformers/features/misc/MiscAssertPruneTransformer.ts +13 -13
- package/src/transformers/features/misc/MiscCloneTransformer.ts +13 -13
- package/src/transformers/features/misc/MiscCreateAssertCloneTransformer.ts +13 -13
- package/src/transformers/features/misc/MiscCreateAssertPruneTransformer.ts +13 -13
- package/src/transformers/features/misc/MiscCreateCloneTransformer.ts +13 -13
- package/src/transformers/features/misc/MiscCreateIsCloneTransformer.ts +13 -13
- package/src/transformers/features/misc/MiscCreateIsPruneTransformer.ts +13 -13
- package/src/transformers/features/misc/MiscCreatePruneTransformer.ts +13 -13
- package/src/transformers/features/misc/MiscCreateValidateCloneTransformer.ts +13 -13
- package/src/transformers/features/misc/MiscCreateValidatePruneTransformer.ts +13 -13
- package/src/transformers/features/misc/MiscIsCloneTransformer.ts +13 -13
- package/src/transformers/features/misc/MiscIsPruneTransformer.ts +13 -13
- package/src/transformers/features/misc/MiscLiteralsTransformer.ts +35 -35
- package/src/transformers/features/misc/MiscPruneTransformer.ts +13 -13
- package/src/transformers/features/misc/MiscValidateCloneTransformer.ts +13 -13
- package/src/transformers/features/misc/MiscValidatePruneTransformer.ts +13 -13
- package/src/transformers/features/notations/NotationAssertGeneralTransformer.ts +20 -20
- package/src/transformers/features/notations/NotationCreateAssertGeneralTransformer.ts +20 -20
- package/src/transformers/features/notations/NotationCreateGeneralTransformer.ts +20 -20
- package/src/transformers/features/notations/NotationCreateIsGeneralTransformer.ts +20 -20
- package/src/transformers/features/notations/NotationCreateValidateGeneralTransformer.ts +20 -20
- package/src/transformers/features/notations/NotationGeneralTransformer.ts +18 -18
- package/src/transformers/features/notations/NotationIsGeneralTransformer.ts +20 -20
- package/src/transformers/features/notations/NotationValidateGeneralTransformer.ts +20 -20
- package/src/transformers/features/protobuf/ProtobufAssertDecodeTransformer.ts +13 -13
- package/src/transformers/features/protobuf/ProtobufAssertEncodeTransformer.ts +13 -13
- package/src/transformers/features/protobuf/ProtobufCreateAssertDecodeTransformer.ts +13 -13
- package/src/transformers/features/protobuf/ProtobufCreateAssertEncodeTransformer.ts +13 -13
- package/src/transformers/features/protobuf/ProtobufCreateDecodeTransformer.ts +13 -13
- package/src/transformers/features/protobuf/ProtobufCreateEncodeTransformer.ts +13 -13
- package/src/transformers/features/protobuf/ProtobufCreateIsDecodeTransformer.ts +13 -13
- package/src/transformers/features/protobuf/ProtobufCreateIsEncodeTransformer.ts +13 -13
- package/src/transformers/features/protobuf/ProtobufCreateValidateDecodeTransformer.ts +13 -13
- package/src/transformers/features/protobuf/ProtobufCreateValidateEncodeTransformer.ts +13 -13
- package/src/transformers/features/protobuf/ProtobufDecodeTransformer.ts +13 -13
- package/src/transformers/features/protobuf/ProtobufEncodeTransformer.ts +13 -13
- package/src/transformers/features/protobuf/ProtobufIsDecodeTransformer.ts +13 -13
- package/src/transformers/features/protobuf/ProtobufIsEncodeTransformer.ts +13 -13
- package/src/transformers/features/protobuf/ProtobufMessageTransformer.ts +35 -35
- package/src/transformers/features/protobuf/ProtobufValidateDecodeTransformer.ts +13 -13
- package/src/transformers/features/protobuf/ProtobufValidateEncodeTransformer.ts +13 -13
- package/src/transformers/features/reflect/ReflectMetadataTransformer.ts +69 -69
- package/src/transformers/features/reflect/ReflectNameTransformer.ts +82 -82
- package/src/transformers/internal/GenericTransformer.ts +101 -101
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { JsonStringifyProgrammer } from "../../../programmers/json/JsonStringifyProgrammer";
|
|
2
|
-
|
|
3
|
-
import { ITransformProps } from "../../ITransformProps";
|
|
4
|
-
import { GenericTransformer } from "../../internal/GenericTransformer";
|
|
5
|
-
|
|
6
|
-
export namespace JsonStringifyTransformer {
|
|
7
|
-
export const transform = (props: ITransformProps) =>
|
|
8
|
-
GenericTransformer.scalar({
|
|
9
|
-
...props,
|
|
10
|
-
method: "json.stringify",
|
|
11
|
-
write: JsonStringifyProgrammer.write,
|
|
12
|
-
});
|
|
13
|
-
}
|
|
1
|
+
import { JsonStringifyProgrammer } from "../../../programmers/json/JsonStringifyProgrammer";
|
|
2
|
+
|
|
3
|
+
import { ITransformProps } from "../../ITransformProps";
|
|
4
|
+
import { GenericTransformer } from "../../internal/GenericTransformer";
|
|
5
|
+
|
|
6
|
+
export namespace JsonStringifyTransformer {
|
|
7
|
+
export const transform = (props: ITransformProps) =>
|
|
8
|
+
GenericTransformer.scalar({
|
|
9
|
+
...props,
|
|
10
|
+
method: "json.stringify",
|
|
11
|
+
write: JsonStringifyProgrammer.write,
|
|
12
|
+
});
|
|
13
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { JsonValidateParseProgrammer } from "../../../programmers/json/JsonValidateParseProgrammer";
|
|
2
|
-
|
|
3
|
-
import { ITransformProps } from "../../ITransformProps";
|
|
4
|
-
import { GenericTransformer } from "../../internal/GenericTransformer";
|
|
5
|
-
|
|
6
|
-
export namespace JsonValidateParseTransformer {
|
|
7
|
-
export const transform = (props: ITransformProps) =>
|
|
8
|
-
GenericTransformer.scalar({
|
|
9
|
-
...props,
|
|
10
|
-
method: "json.validatParse",
|
|
11
|
-
write: JsonValidateParseProgrammer.write,
|
|
12
|
-
});
|
|
13
|
-
}
|
|
1
|
+
import { JsonValidateParseProgrammer } from "../../../programmers/json/JsonValidateParseProgrammer";
|
|
2
|
+
|
|
3
|
+
import { ITransformProps } from "../../ITransformProps";
|
|
4
|
+
import { GenericTransformer } from "../../internal/GenericTransformer";
|
|
5
|
+
|
|
6
|
+
export namespace JsonValidateParseTransformer {
|
|
7
|
+
export const transform = (props: ITransformProps) =>
|
|
8
|
+
GenericTransformer.scalar({
|
|
9
|
+
...props,
|
|
10
|
+
method: "json.validatParse",
|
|
11
|
+
write: JsonValidateParseProgrammer.write,
|
|
12
|
+
});
|
|
13
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { JsonValidateStringifyProgrammer } from "../../../programmers/json/JsonValidateStringifyProgrammer";
|
|
2
|
-
|
|
3
|
-
import { ITransformProps } from "../../ITransformProps";
|
|
4
|
-
import { GenericTransformer } from "../../internal/GenericTransformer";
|
|
5
|
-
|
|
6
|
-
export namespace JsonValidateStringifyTransformer {
|
|
7
|
-
export const transform = (props: ITransformProps) =>
|
|
8
|
-
GenericTransformer.scalar({
|
|
9
|
-
...props,
|
|
10
|
-
method: "json.validatStringify",
|
|
11
|
-
write: JsonValidateStringifyProgrammer.write,
|
|
12
|
-
});
|
|
13
|
-
}
|
|
1
|
+
import { JsonValidateStringifyProgrammer } from "../../../programmers/json/JsonValidateStringifyProgrammer";
|
|
2
|
+
|
|
3
|
+
import { ITransformProps } from "../../ITransformProps";
|
|
4
|
+
import { GenericTransformer } from "../../internal/GenericTransformer";
|
|
5
|
+
|
|
6
|
+
export namespace JsonValidateStringifyTransformer {
|
|
7
|
+
export const transform = (props: ITransformProps) =>
|
|
8
|
+
GenericTransformer.scalar({
|
|
9
|
+
...props,
|
|
10
|
+
method: "json.validatStringify",
|
|
11
|
+
write: JsonValidateStringifyProgrammer.write,
|
|
12
|
+
});
|
|
13
|
+
}
|
|
@@ -1,86 +1,86 @@
|
|
|
1
|
-
import { ILlmApplication } from "@samchon/openapi";
|
|
2
|
-
import ts from "typescript";
|
|
3
|
-
|
|
4
|
-
import { ExpressionFactory } from "../../../factories/ExpressionFactory";
|
|
5
|
-
import { LiteralFactory } from "../../../factories/LiteralFactory";
|
|
6
|
-
import { MetadataCollection } from "../../../factories/MetadataCollection";
|
|
7
|
-
import { MetadataFactory } from "../../../factories/MetadataFactory";
|
|
8
|
-
import { StatementFactory } from "../../../factories/StatementFactory";
|
|
9
|
-
|
|
10
|
-
import { Metadata } from "../../../schemas/metadata/Metadata";
|
|
11
|
-
|
|
12
|
-
import { LlmApplicationProgrammer } from "../../../programmers/llm/LlmApplicationProgrammer";
|
|
13
|
-
|
|
14
|
-
import { ValidationPipe } from "../../../typings/ValidationPipe";
|
|
15
|
-
|
|
16
|
-
import { ITransformProps } from "../../ITransformProps";
|
|
17
|
-
import { TransformerError } from "../../TransformerError";
|
|
18
|
-
|
|
19
|
-
export namespace LlmApplicationTransformer {
|
|
20
|
-
export const transform = (props: ITransformProps): ts.Expression => {
|
|
21
|
-
// GET GENERIC ARGUMENT
|
|
22
|
-
if (!props.expression.typeArguments?.length)
|
|
23
|
-
throw new TransformerError({
|
|
24
|
-
code: "typia.llm.schema",
|
|
25
|
-
message: "no generic argument.",
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
const top: ts.Node = props.expression.typeArguments[0]!;
|
|
29
|
-
if (ts.isTypeNode(top) === false) return props.expression;
|
|
30
|
-
|
|
31
|
-
// GET TYPE
|
|
32
|
-
const type: ts.Type = props.context.checker.getTypeFromTypeNode(top);
|
|
33
|
-
const collection: MetadataCollection = new MetadataCollection({
|
|
34
|
-
replace: MetadataCollection.replace,
|
|
35
|
-
});
|
|
36
|
-
const result: ValidationPipe<Metadata, MetadataFactory.IError> =
|
|
37
|
-
MetadataFactory.analyze({
|
|
38
|
-
checker: props.context.checker,
|
|
39
|
-
transformer: props.context.transformer,
|
|
40
|
-
options: {
|
|
41
|
-
escape: true,
|
|
42
|
-
constant: true,
|
|
43
|
-
absorb: false,
|
|
44
|
-
functional: true,
|
|
45
|
-
validate: LlmApplicationProgrammer.validate,
|
|
46
|
-
},
|
|
47
|
-
collection,
|
|
48
|
-
type,
|
|
49
|
-
});
|
|
50
|
-
if (result.success === false)
|
|
51
|
-
throw TransformerError.from({
|
|
52
|
-
code: "typia.llm.application",
|
|
53
|
-
errors: result.errors,
|
|
54
|
-
});
|
|
55
|
-
|
|
56
|
-
// GENERATE LLM APPLICATION
|
|
57
|
-
const schema: ILlmApplication = LlmApplicationProgrammer.write(result.data);
|
|
58
|
-
const literal: ts.Expression = LiteralFactory.write(schema);
|
|
59
|
-
if (!props.expression.arguments?.[0]) return literal;
|
|
60
|
-
|
|
61
|
-
return ExpressionFactory.selfCall(
|
|
62
|
-
ts.factory.createBlock(
|
|
63
|
-
[
|
|
64
|
-
StatementFactory.constant({
|
|
65
|
-
name: "app",
|
|
66
|
-
value: LiteralFactory.write(schema),
|
|
67
|
-
}),
|
|
68
|
-
ts.factory.createExpressionStatement(
|
|
69
|
-
ts.factory.createCallExpression(
|
|
70
|
-
props.context.importer.internal("$llmApplicationFinalize"),
|
|
71
|
-
undefined,
|
|
72
|
-
[
|
|
73
|
-
ts.factory.createIdentifier("app"),
|
|
74
|
-
...(props.expression.arguments?.[0]
|
|
75
|
-
? [props.expression.arguments[0]]
|
|
76
|
-
: []),
|
|
77
|
-
],
|
|
78
|
-
),
|
|
79
|
-
),
|
|
80
|
-
ts.factory.createReturnStatement(ts.factory.createIdentifier("app")),
|
|
81
|
-
],
|
|
82
|
-
true,
|
|
83
|
-
),
|
|
84
|
-
);
|
|
85
|
-
};
|
|
86
|
-
}
|
|
1
|
+
import { ILlmApplication } from "@samchon/openapi";
|
|
2
|
+
import ts from "typescript";
|
|
3
|
+
|
|
4
|
+
import { ExpressionFactory } from "../../../factories/ExpressionFactory";
|
|
5
|
+
import { LiteralFactory } from "../../../factories/LiteralFactory";
|
|
6
|
+
import { MetadataCollection } from "../../../factories/MetadataCollection";
|
|
7
|
+
import { MetadataFactory } from "../../../factories/MetadataFactory";
|
|
8
|
+
import { StatementFactory } from "../../../factories/StatementFactory";
|
|
9
|
+
|
|
10
|
+
import { Metadata } from "../../../schemas/metadata/Metadata";
|
|
11
|
+
|
|
12
|
+
import { LlmApplicationProgrammer } from "../../../programmers/llm/LlmApplicationProgrammer";
|
|
13
|
+
|
|
14
|
+
import { ValidationPipe } from "../../../typings/ValidationPipe";
|
|
15
|
+
|
|
16
|
+
import { ITransformProps } from "../../ITransformProps";
|
|
17
|
+
import { TransformerError } from "../../TransformerError";
|
|
18
|
+
|
|
19
|
+
export namespace LlmApplicationTransformer {
|
|
20
|
+
export const transform = (props: ITransformProps): ts.Expression => {
|
|
21
|
+
// GET GENERIC ARGUMENT
|
|
22
|
+
if (!props.expression.typeArguments?.length)
|
|
23
|
+
throw new TransformerError({
|
|
24
|
+
code: "typia.llm.schema",
|
|
25
|
+
message: "no generic argument.",
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
const top: ts.Node = props.expression.typeArguments[0]!;
|
|
29
|
+
if (ts.isTypeNode(top) === false) return props.expression;
|
|
30
|
+
|
|
31
|
+
// GET TYPE
|
|
32
|
+
const type: ts.Type = props.context.checker.getTypeFromTypeNode(top);
|
|
33
|
+
const collection: MetadataCollection = new MetadataCollection({
|
|
34
|
+
replace: MetadataCollection.replace,
|
|
35
|
+
});
|
|
36
|
+
const result: ValidationPipe<Metadata, MetadataFactory.IError> =
|
|
37
|
+
MetadataFactory.analyze({
|
|
38
|
+
checker: props.context.checker,
|
|
39
|
+
transformer: props.context.transformer,
|
|
40
|
+
options: {
|
|
41
|
+
escape: true,
|
|
42
|
+
constant: true,
|
|
43
|
+
absorb: false,
|
|
44
|
+
functional: true,
|
|
45
|
+
validate: LlmApplicationProgrammer.validate,
|
|
46
|
+
},
|
|
47
|
+
collection,
|
|
48
|
+
type,
|
|
49
|
+
});
|
|
50
|
+
if (result.success === false)
|
|
51
|
+
throw TransformerError.from({
|
|
52
|
+
code: "typia.llm.application",
|
|
53
|
+
errors: result.errors,
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
// GENERATE LLM APPLICATION
|
|
57
|
+
const schema: ILlmApplication = LlmApplicationProgrammer.write(result.data);
|
|
58
|
+
const literal: ts.Expression = LiteralFactory.write(schema);
|
|
59
|
+
if (!props.expression.arguments?.[0]) return literal;
|
|
60
|
+
|
|
61
|
+
return ExpressionFactory.selfCall(
|
|
62
|
+
ts.factory.createBlock(
|
|
63
|
+
[
|
|
64
|
+
StatementFactory.constant({
|
|
65
|
+
name: "app",
|
|
66
|
+
value: LiteralFactory.write(schema),
|
|
67
|
+
}),
|
|
68
|
+
ts.factory.createExpressionStatement(
|
|
69
|
+
ts.factory.createCallExpression(
|
|
70
|
+
props.context.importer.internal("$llmApplicationFinalize"),
|
|
71
|
+
undefined,
|
|
72
|
+
[
|
|
73
|
+
ts.factory.createIdentifier("app"),
|
|
74
|
+
...(props.expression.arguments?.[0]
|
|
75
|
+
? [props.expression.arguments[0]]
|
|
76
|
+
: []),
|
|
77
|
+
],
|
|
78
|
+
),
|
|
79
|
+
),
|
|
80
|
+
ts.factory.createReturnStatement(ts.factory.createIdentifier("app")),
|
|
81
|
+
],
|
|
82
|
+
true,
|
|
83
|
+
),
|
|
84
|
+
);
|
|
85
|
+
};
|
|
86
|
+
}
|
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
import { ILlmSchema } from "@samchon/openapi";
|
|
2
|
-
import ts from "typescript";
|
|
3
|
-
|
|
4
|
-
import { LiteralFactory } from "../../../factories/LiteralFactory";
|
|
5
|
-
import { MetadataCollection } from "../../../factories/MetadataCollection";
|
|
6
|
-
import { MetadataFactory } from "../../../factories/MetadataFactory";
|
|
7
|
-
|
|
8
|
-
import { Metadata } from "../../../schemas/metadata/Metadata";
|
|
9
|
-
|
|
10
|
-
import { LlmSchemaProgrammer } from "../../../programmers/llm/LlmSchemaProgrammer";
|
|
11
|
-
|
|
12
|
-
import { ValidationPipe } from "../../../typings/ValidationPipe";
|
|
13
|
-
|
|
14
|
-
import { ITransformProps } from "../../ITransformProps";
|
|
15
|
-
import { TransformerError } from "../../TransformerError";
|
|
16
|
-
|
|
17
|
-
export namespace LlmSchemaTransformer {
|
|
18
|
-
export const transform = (
|
|
19
|
-
props: Omit<ITransformProps, "modulo">,
|
|
20
|
-
): ts.Expression => {
|
|
21
|
-
// GET GENERIC ARGUMENT
|
|
22
|
-
if (!props.expression.typeArguments?.length)
|
|
23
|
-
throw new TransformerError({
|
|
24
|
-
code: "typia.llm.schema",
|
|
25
|
-
message: "no generic argument.",
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
const top: ts.Node = props.expression.typeArguments[0]!;
|
|
29
|
-
if (ts.isTypeNode(top) === false) return props.expression;
|
|
30
|
-
|
|
31
|
-
// GET TYPE
|
|
32
|
-
const type: ts.Type = props.context.checker.getTypeFromTypeNode(top);
|
|
33
|
-
const collection: MetadataCollection = new MetadataCollection({
|
|
34
|
-
replace: MetadataCollection.replace,
|
|
35
|
-
});
|
|
36
|
-
const result: ValidationPipe<Metadata, MetadataFactory.IError> =
|
|
37
|
-
MetadataFactory.analyze({
|
|
38
|
-
checker: props.context.checker,
|
|
39
|
-
transformer: props.context.transformer,
|
|
40
|
-
options: {
|
|
41
|
-
escape: true,
|
|
42
|
-
constant: true,
|
|
43
|
-
absorb: false,
|
|
44
|
-
validate: LlmSchemaProgrammer.validate,
|
|
45
|
-
},
|
|
46
|
-
collection,
|
|
47
|
-
type,
|
|
48
|
-
});
|
|
49
|
-
if (result.success === false)
|
|
50
|
-
throw TransformerError.from({
|
|
51
|
-
code: "typia.llm.schema",
|
|
52
|
-
errors: result.errors,
|
|
53
|
-
});
|
|
54
|
-
|
|
55
|
-
// GENERATE LLM SCHEMA
|
|
56
|
-
const schema: ILlmSchema = LlmSchemaProgrammer.write(result.data);
|
|
57
|
-
return LiteralFactory.write(schema);
|
|
58
|
-
};
|
|
59
|
-
}
|
|
1
|
+
import { ILlmSchema } from "@samchon/openapi";
|
|
2
|
+
import ts from "typescript";
|
|
3
|
+
|
|
4
|
+
import { LiteralFactory } from "../../../factories/LiteralFactory";
|
|
5
|
+
import { MetadataCollection } from "../../../factories/MetadataCollection";
|
|
6
|
+
import { MetadataFactory } from "../../../factories/MetadataFactory";
|
|
7
|
+
|
|
8
|
+
import { Metadata } from "../../../schemas/metadata/Metadata";
|
|
9
|
+
|
|
10
|
+
import { LlmSchemaProgrammer } from "../../../programmers/llm/LlmSchemaProgrammer";
|
|
11
|
+
|
|
12
|
+
import { ValidationPipe } from "../../../typings/ValidationPipe";
|
|
13
|
+
|
|
14
|
+
import { ITransformProps } from "../../ITransformProps";
|
|
15
|
+
import { TransformerError } from "../../TransformerError";
|
|
16
|
+
|
|
17
|
+
export namespace LlmSchemaTransformer {
|
|
18
|
+
export const transform = (
|
|
19
|
+
props: Omit<ITransformProps, "modulo">,
|
|
20
|
+
): ts.Expression => {
|
|
21
|
+
// GET GENERIC ARGUMENT
|
|
22
|
+
if (!props.expression.typeArguments?.length)
|
|
23
|
+
throw new TransformerError({
|
|
24
|
+
code: "typia.llm.schema",
|
|
25
|
+
message: "no generic argument.",
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
const top: ts.Node = props.expression.typeArguments[0]!;
|
|
29
|
+
if (ts.isTypeNode(top) === false) return props.expression;
|
|
30
|
+
|
|
31
|
+
// GET TYPE
|
|
32
|
+
const type: ts.Type = props.context.checker.getTypeFromTypeNode(top);
|
|
33
|
+
const collection: MetadataCollection = new MetadataCollection({
|
|
34
|
+
replace: MetadataCollection.replace,
|
|
35
|
+
});
|
|
36
|
+
const result: ValidationPipe<Metadata, MetadataFactory.IError> =
|
|
37
|
+
MetadataFactory.analyze({
|
|
38
|
+
checker: props.context.checker,
|
|
39
|
+
transformer: props.context.transformer,
|
|
40
|
+
options: {
|
|
41
|
+
escape: true,
|
|
42
|
+
constant: true,
|
|
43
|
+
absorb: false,
|
|
44
|
+
validate: LlmSchemaProgrammer.validate,
|
|
45
|
+
},
|
|
46
|
+
collection,
|
|
47
|
+
type,
|
|
48
|
+
});
|
|
49
|
+
if (result.success === false)
|
|
50
|
+
throw TransformerError.from({
|
|
51
|
+
code: "typia.llm.schema",
|
|
52
|
+
errors: result.errors,
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
// GENERATE LLM SCHEMA
|
|
56
|
+
const schema: ILlmSchema = LlmSchemaProgrammer.write(result.data);
|
|
57
|
+
return LiteralFactory.write(schema);
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { MiscAssertCloneProgrammer } from "../../../programmers/misc/MiscAssertCloneProgrammer";
|
|
2
|
-
|
|
3
|
-
import { ITransformProps } from "../../ITransformProps";
|
|
4
|
-
import { GenericTransformer } from "../../internal/GenericTransformer";
|
|
5
|
-
|
|
6
|
-
export namespace MiscAssertCloneTransformer {
|
|
7
|
-
export const transform = (props: ITransformProps) =>
|
|
8
|
-
GenericTransformer.scalar({
|
|
9
|
-
...props,
|
|
10
|
-
method: "misc.assertClone",
|
|
11
|
-
write: MiscAssertCloneProgrammer.write,
|
|
12
|
-
});
|
|
13
|
-
}
|
|
1
|
+
import { MiscAssertCloneProgrammer } from "../../../programmers/misc/MiscAssertCloneProgrammer";
|
|
2
|
+
|
|
3
|
+
import { ITransformProps } from "../../ITransformProps";
|
|
4
|
+
import { GenericTransformer } from "../../internal/GenericTransformer";
|
|
5
|
+
|
|
6
|
+
export namespace MiscAssertCloneTransformer {
|
|
7
|
+
export const transform = (props: ITransformProps) =>
|
|
8
|
+
GenericTransformer.scalar({
|
|
9
|
+
...props,
|
|
10
|
+
method: "misc.assertClone",
|
|
11
|
+
write: MiscAssertCloneProgrammer.write,
|
|
12
|
+
});
|
|
13
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { MiscAssertPruneProgrammer } from "../../../programmers/misc/MiscAssertPruneProgrammer";
|
|
2
|
-
|
|
3
|
-
import { ITransformProps } from "../../ITransformProps";
|
|
4
|
-
import { GenericTransformer } from "../../internal/GenericTransformer";
|
|
5
|
-
|
|
6
|
-
export namespace MiscAssertPruneTransformer {
|
|
7
|
-
export const transform = (props: ITransformProps) =>
|
|
8
|
-
GenericTransformer.scalar({
|
|
9
|
-
...props,
|
|
10
|
-
method: "misc.assertPrune",
|
|
11
|
-
write: MiscAssertPruneProgrammer.write,
|
|
12
|
-
});
|
|
13
|
-
}
|
|
1
|
+
import { MiscAssertPruneProgrammer } from "../../../programmers/misc/MiscAssertPruneProgrammer";
|
|
2
|
+
|
|
3
|
+
import { ITransformProps } from "../../ITransformProps";
|
|
4
|
+
import { GenericTransformer } from "../../internal/GenericTransformer";
|
|
5
|
+
|
|
6
|
+
export namespace MiscAssertPruneTransformer {
|
|
7
|
+
export const transform = (props: ITransformProps) =>
|
|
8
|
+
GenericTransformer.scalar({
|
|
9
|
+
...props,
|
|
10
|
+
method: "misc.assertPrune",
|
|
11
|
+
write: MiscAssertPruneProgrammer.write,
|
|
12
|
+
});
|
|
13
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { MiscCloneProgrammer } from "../../../programmers/misc/MiscCloneProgrammer";
|
|
2
|
-
|
|
3
|
-
import { ITransformProps } from "../../ITransformProps";
|
|
4
|
-
import { GenericTransformer } from "../../internal/GenericTransformer";
|
|
5
|
-
|
|
6
|
-
export namespace MiscCloneTransformer {
|
|
7
|
-
export const transform = (props: ITransformProps) =>
|
|
8
|
-
GenericTransformer.scalar({
|
|
9
|
-
...props,
|
|
10
|
-
method: "misc.clone",
|
|
11
|
-
write: MiscCloneProgrammer.write,
|
|
12
|
-
});
|
|
13
|
-
}
|
|
1
|
+
import { MiscCloneProgrammer } from "../../../programmers/misc/MiscCloneProgrammer";
|
|
2
|
+
|
|
3
|
+
import { ITransformProps } from "../../ITransformProps";
|
|
4
|
+
import { GenericTransformer } from "../../internal/GenericTransformer";
|
|
5
|
+
|
|
6
|
+
export namespace MiscCloneTransformer {
|
|
7
|
+
export const transform = (props: ITransformProps) =>
|
|
8
|
+
GenericTransformer.scalar({
|
|
9
|
+
...props,
|
|
10
|
+
method: "misc.clone",
|
|
11
|
+
write: MiscCloneProgrammer.write,
|
|
12
|
+
});
|
|
13
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { MiscAssertCloneProgrammer } from "../../../programmers/misc/MiscAssertCloneProgrammer";
|
|
2
|
-
|
|
3
|
-
import { ITransformProps } from "../../ITransformProps";
|
|
4
|
-
import { GenericTransformer } from "../../internal/GenericTransformer";
|
|
5
|
-
|
|
6
|
-
export namespace MiscCreateAssertCloneTransformer {
|
|
7
|
-
export const transform = (props: ITransformProps) =>
|
|
8
|
-
GenericTransformer.factory({
|
|
9
|
-
...props,
|
|
10
|
-
method: "misc.createAssertClone",
|
|
11
|
-
write: MiscAssertCloneProgrammer.write,
|
|
12
|
-
});
|
|
13
|
-
}
|
|
1
|
+
import { MiscAssertCloneProgrammer } from "../../../programmers/misc/MiscAssertCloneProgrammer";
|
|
2
|
+
|
|
3
|
+
import { ITransformProps } from "../../ITransformProps";
|
|
4
|
+
import { GenericTransformer } from "../../internal/GenericTransformer";
|
|
5
|
+
|
|
6
|
+
export namespace MiscCreateAssertCloneTransformer {
|
|
7
|
+
export const transform = (props: ITransformProps) =>
|
|
8
|
+
GenericTransformer.factory({
|
|
9
|
+
...props,
|
|
10
|
+
method: "misc.createAssertClone",
|
|
11
|
+
write: MiscAssertCloneProgrammer.write,
|
|
12
|
+
});
|
|
13
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { MiscAssertPruneProgrammer } from "../../../programmers/misc/MiscAssertPruneProgrammer";
|
|
2
|
-
|
|
3
|
-
import { ITransformProps } from "../../ITransformProps";
|
|
4
|
-
import { GenericTransformer } from "../../internal/GenericTransformer";
|
|
5
|
-
|
|
6
|
-
export namespace MiscCreateAssertPruneTransformer {
|
|
7
|
-
export const transform = (props: ITransformProps) =>
|
|
8
|
-
GenericTransformer.factory({
|
|
9
|
-
...props,
|
|
10
|
-
method: "misc.createAssertPrune",
|
|
11
|
-
write: MiscAssertPruneProgrammer.write,
|
|
12
|
-
});
|
|
13
|
-
}
|
|
1
|
+
import { MiscAssertPruneProgrammer } from "../../../programmers/misc/MiscAssertPruneProgrammer";
|
|
2
|
+
|
|
3
|
+
import { ITransformProps } from "../../ITransformProps";
|
|
4
|
+
import { GenericTransformer } from "../../internal/GenericTransformer";
|
|
5
|
+
|
|
6
|
+
export namespace MiscCreateAssertPruneTransformer {
|
|
7
|
+
export const transform = (props: ITransformProps) =>
|
|
8
|
+
GenericTransformer.factory({
|
|
9
|
+
...props,
|
|
10
|
+
method: "misc.createAssertPrune",
|
|
11
|
+
write: MiscAssertPruneProgrammer.write,
|
|
12
|
+
});
|
|
13
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { MiscCloneProgrammer } from "../../../programmers/misc/MiscCloneProgrammer";
|
|
2
|
-
|
|
3
|
-
import { ITransformProps } from "../../ITransformProps";
|
|
4
|
-
import { GenericTransformer } from "../../internal/GenericTransformer";
|
|
5
|
-
|
|
6
|
-
export namespace MiscCreateCloneTransformer {
|
|
7
|
-
export const transform = (props: ITransformProps) =>
|
|
8
|
-
GenericTransformer.factory({
|
|
9
|
-
...props,
|
|
10
|
-
method: "misc.createClone",
|
|
11
|
-
write: MiscCloneProgrammer.write,
|
|
12
|
-
});
|
|
13
|
-
}
|
|
1
|
+
import { MiscCloneProgrammer } from "../../../programmers/misc/MiscCloneProgrammer";
|
|
2
|
+
|
|
3
|
+
import { ITransformProps } from "../../ITransformProps";
|
|
4
|
+
import { GenericTransformer } from "../../internal/GenericTransformer";
|
|
5
|
+
|
|
6
|
+
export namespace MiscCreateCloneTransformer {
|
|
7
|
+
export const transform = (props: ITransformProps) =>
|
|
8
|
+
GenericTransformer.factory({
|
|
9
|
+
...props,
|
|
10
|
+
method: "misc.createClone",
|
|
11
|
+
write: MiscCloneProgrammer.write,
|
|
12
|
+
});
|
|
13
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { MiscIsCloneProgrammer } from "../../../programmers/misc/MiscIsCloneProgrammer";
|
|
2
|
-
|
|
3
|
-
import { ITransformProps } from "../../ITransformProps";
|
|
4
|
-
import { GenericTransformer } from "../../internal/GenericTransformer";
|
|
5
|
-
|
|
6
|
-
export namespace MiscCreateIsCloneTransformer {
|
|
7
|
-
export const transform = (props: ITransformProps) =>
|
|
8
|
-
GenericTransformer.factory({
|
|
9
|
-
...props,
|
|
10
|
-
method: "misc.createIsClone",
|
|
11
|
-
write: MiscIsCloneProgrammer.write,
|
|
12
|
-
});
|
|
13
|
-
}
|
|
1
|
+
import { MiscIsCloneProgrammer } from "../../../programmers/misc/MiscIsCloneProgrammer";
|
|
2
|
+
|
|
3
|
+
import { ITransformProps } from "../../ITransformProps";
|
|
4
|
+
import { GenericTransformer } from "../../internal/GenericTransformer";
|
|
5
|
+
|
|
6
|
+
export namespace MiscCreateIsCloneTransformer {
|
|
7
|
+
export const transform = (props: ITransformProps) =>
|
|
8
|
+
GenericTransformer.factory({
|
|
9
|
+
...props,
|
|
10
|
+
method: "misc.createIsClone",
|
|
11
|
+
write: MiscIsCloneProgrammer.write,
|
|
12
|
+
});
|
|
13
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { MiscIsPruneProgrammer } from "../../../programmers/misc/MiscIsPruneProgrammer";
|
|
2
|
-
|
|
3
|
-
import { ITransformProps } from "../../ITransformProps";
|
|
4
|
-
import { GenericTransformer } from "../../internal/GenericTransformer";
|
|
5
|
-
|
|
6
|
-
export namespace MiscCreateIsPruneTransformer {
|
|
7
|
-
export const transform = (props: ITransformProps) =>
|
|
8
|
-
GenericTransformer.factory({
|
|
9
|
-
...props,
|
|
10
|
-
method: "misc.createIsPrune",
|
|
11
|
-
write: MiscIsPruneProgrammer.write,
|
|
12
|
-
});
|
|
13
|
-
}
|
|
1
|
+
import { MiscIsPruneProgrammer } from "../../../programmers/misc/MiscIsPruneProgrammer";
|
|
2
|
+
|
|
3
|
+
import { ITransformProps } from "../../ITransformProps";
|
|
4
|
+
import { GenericTransformer } from "../../internal/GenericTransformer";
|
|
5
|
+
|
|
6
|
+
export namespace MiscCreateIsPruneTransformer {
|
|
7
|
+
export const transform = (props: ITransformProps) =>
|
|
8
|
+
GenericTransformer.factory({
|
|
9
|
+
...props,
|
|
10
|
+
method: "misc.createIsPrune",
|
|
11
|
+
write: MiscIsPruneProgrammer.write,
|
|
12
|
+
});
|
|
13
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { MiscPruneProgrammer } from "../../../programmers/misc/MiscPruneProgrammer";
|
|
2
|
-
|
|
3
|
-
import { ITransformProps } from "../../ITransformProps";
|
|
4
|
-
import { GenericTransformer } from "../../internal/GenericTransformer";
|
|
5
|
-
|
|
6
|
-
export namespace MiscCreatePruneTransformer {
|
|
7
|
-
export const transform = (props: ITransformProps) =>
|
|
8
|
-
GenericTransformer.factory({
|
|
9
|
-
...props,
|
|
10
|
-
method: "misc.createPrune",
|
|
11
|
-
write: MiscPruneProgrammer.write,
|
|
12
|
-
});
|
|
13
|
-
}
|
|
1
|
+
import { MiscPruneProgrammer } from "../../../programmers/misc/MiscPruneProgrammer";
|
|
2
|
+
|
|
3
|
+
import { ITransformProps } from "../../ITransformProps";
|
|
4
|
+
import { GenericTransformer } from "../../internal/GenericTransformer";
|
|
5
|
+
|
|
6
|
+
export namespace MiscCreatePruneTransformer {
|
|
7
|
+
export const transform = (props: ITransformProps) =>
|
|
8
|
+
GenericTransformer.factory({
|
|
9
|
+
...props,
|
|
10
|
+
method: "misc.createPrune",
|
|
11
|
+
write: MiscPruneProgrammer.write,
|
|
12
|
+
});
|
|
13
|
+
}
|