typia 3.6.0 → 3.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -9
- package/lib/programmers/AssertCloneProgrammer.d.ts +1 -1
- package/lib/programmers/AssertCloneProgrammer.js +4 -4
- package/lib/programmers/AssertCloneProgrammer.js.map +1 -1
- package/lib/programmers/AssertParseProgrammer.d.ts +1 -1
- package/lib/programmers/AssertParseProgrammer.js +3 -3
- package/lib/programmers/AssertParseProgrammer.js.map +1 -1
- package/lib/programmers/AssertProgrammer.d.ts +1 -1
- package/lib/programmers/AssertProgrammer.js +3 -3
- package/lib/programmers/AssertProgrammer.js.map +1 -1
- package/lib/programmers/AssertPruneProgrammer.d.ts +1 -1
- package/lib/programmers/AssertPruneProgrammer.js +4 -4
- package/lib/programmers/AssertPruneProgrammer.js.map +1 -1
- package/lib/programmers/AssertStringifyProgrammer.d.ts +1 -1
- package/lib/programmers/AssertStringifyProgrammer.js +3 -3
- package/lib/programmers/AssertStringifyProgrammer.js.map +1 -1
- package/lib/programmers/CheckerProgrammer.d.ts +1 -1
- package/lib/programmers/CheckerProgrammer.js +2 -2
- package/lib/programmers/CheckerProgrammer.js.map +1 -1
- package/lib/programmers/CloneProgrammer.d.ts +1 -1
- package/lib/programmers/CloneProgrammer.js +4 -4
- package/lib/programmers/CloneProgrammer.js.map +1 -1
- package/lib/programmers/FeatureProgrammer.d.ts +3 -3
- package/lib/programmers/FeatureProgrammer.js +2 -2
- package/lib/programmers/FeatureProgrammer.js.map +1 -1
- package/lib/programmers/IsCloneProgrammer.d.ts +1 -1
- package/lib/programmers/IsCloneProgrammer.js +4 -4
- package/lib/programmers/IsCloneProgrammer.js.map +1 -1
- package/lib/programmers/IsParseProgrammer.d.ts +1 -1
- package/lib/programmers/IsParseProgrammer.js +3 -3
- package/lib/programmers/IsParseProgrammer.js.map +1 -1
- package/lib/programmers/IsProgrammer.d.ts +1 -1
- package/lib/programmers/IsPruneProgrammer.d.ts +1 -1
- package/lib/programmers/IsPruneProgrammer.js +4 -4
- package/lib/programmers/IsPruneProgrammer.js.map +1 -1
- package/lib/programmers/IsStringifyProgrammer.d.ts +1 -1
- package/lib/programmers/IsStringifyProgrammer.js +4 -4
- package/lib/programmers/IsStringifyProgrammer.js.map +1 -1
- package/lib/programmers/PruneProgrammer.d.ts +1 -1
- package/lib/programmers/PruneProgrammer.js +2 -2
- package/lib/programmers/PruneProgrammer.js.map +1 -1
- package/lib/programmers/RandomProgrammer.d.ts +1 -1
- package/lib/programmers/RandomProgrammer.js +2 -2
- package/lib/programmers/RandomProgrammer.js.map +1 -1
- package/lib/programmers/StringifyProgrammer.d.ts +1 -1
- package/lib/programmers/StringifyProgrammer.js +2 -2
- package/lib/programmers/StringifyProgrammer.js.map +1 -1
- package/lib/programmers/ValidateCloneProgrammer.d.ts +1 -1
- package/lib/programmers/ValidateCloneProgrammer.js +4 -4
- package/lib/programmers/ValidateCloneProgrammer.js.map +1 -1
- package/lib/programmers/ValidateParseProgrammer.d.ts +1 -1
- package/lib/programmers/ValidateParseProgrammer.js +3 -3
- package/lib/programmers/ValidateParseProgrammer.js.map +1 -1
- package/lib/programmers/ValidateProgrammer.d.ts +1 -1
- package/lib/programmers/ValidateProgrammer.js +3 -3
- package/lib/programmers/ValidateProgrammer.js.map +1 -1
- package/lib/programmers/ValidatePruneProgrammer.d.ts +1 -1
- package/lib/programmers/ValidatePruneProgrammer.js +4 -4
- package/lib/programmers/ValidatePruneProgrammer.js.map +1 -1
- package/lib/programmers/ValidateStringifyProgrammer.d.ts +1 -1
- package/lib/programmers/ValidateStringifyProgrammer.js +4 -4
- package/lib/programmers/ValidateStringifyProgrammer.js.map +1 -1
- package/lib/transformers/features/miscellaneous/AssertCloneTransformer.d.ts +1 -3
- package/lib/transformers/features/miscellaneous/AssertCloneTransformer.js +2 -15
- package/lib/transformers/features/miscellaneous/AssertCloneTransformer.js.map +1 -1
- package/lib/transformers/features/miscellaneous/AssertPruneTransformer.d.ts +1 -3
- package/lib/transformers/features/miscellaneous/AssertPruneTransformer.js +2 -15
- package/lib/transformers/features/miscellaneous/AssertPruneTransformer.js.map +1 -1
- package/lib/transformers/features/miscellaneous/CloneTransformer.d.ts +1 -3
- package/lib/transformers/features/miscellaneous/CloneTransformer.js +2 -26
- package/lib/transformers/features/miscellaneous/CloneTransformer.js.map +1 -1
- package/lib/transformers/features/miscellaneous/CreateAssertCloneTransformer.d.ts +1 -3
- package/lib/transformers/features/miscellaneous/CreateAssertCloneTransformer.js +2 -10
- package/lib/transformers/features/miscellaneous/CreateAssertCloneTransformer.js.map +1 -1
- package/lib/transformers/features/miscellaneous/CreateAssertPruneTransformer.d.ts +1 -3
- package/lib/transformers/features/miscellaneous/CreateAssertPruneTransformer.js +2 -10
- package/lib/transformers/features/miscellaneous/CreateAssertPruneTransformer.js.map +1 -1
- package/lib/transformers/features/miscellaneous/CreateCloneTransformer.d.ts +1 -3
- package/lib/transformers/features/miscellaneous/CreateCloneTransformer.js +2 -10
- package/lib/transformers/features/miscellaneous/CreateCloneTransformer.js.map +1 -1
- package/lib/transformers/features/miscellaneous/CreateIsCloneTransformer.d.ts +1 -3
- package/lib/transformers/features/miscellaneous/CreateIsCloneTransformer.js +2 -10
- package/lib/transformers/features/miscellaneous/CreateIsCloneTransformer.js.map +1 -1
- package/lib/transformers/features/miscellaneous/CreateIsPruneTransformer.d.ts +1 -3
- package/lib/transformers/features/miscellaneous/CreateIsPruneTransformer.js +2 -10
- package/lib/transformers/features/miscellaneous/CreateIsPruneTransformer.js.map +1 -1
- package/lib/transformers/features/miscellaneous/CreatePruneTransformer.d.ts +1 -3
- package/lib/transformers/features/miscellaneous/CreatePruneTransformer.js +2 -10
- package/lib/transformers/features/miscellaneous/CreatePruneTransformer.js.map +1 -1
- package/lib/transformers/features/miscellaneous/CreateRandomGenerator.js +3 -2
- package/lib/transformers/features/miscellaneous/CreateRandomGenerator.js.map +1 -1
- package/lib/transformers/features/miscellaneous/CreateValidateCloneTransformer.d.ts +1 -3
- package/lib/transformers/features/miscellaneous/CreateValidateCloneTransformer.js +2 -10
- package/lib/transformers/features/miscellaneous/CreateValidateCloneTransformer.js.map +1 -1
- package/lib/transformers/features/miscellaneous/CreateValidatePruneTransformer.d.ts +1 -3
- package/lib/transformers/features/miscellaneous/CreateValidatePruneTransformer.js +2 -10
- package/lib/transformers/features/miscellaneous/CreateValidatePruneTransformer.js.map +1 -1
- package/lib/transformers/features/miscellaneous/IsCloneTransformer.d.ts +1 -3
- package/lib/transformers/features/miscellaneous/IsCloneTransformer.js +2 -15
- package/lib/transformers/features/miscellaneous/IsCloneTransformer.js.map +1 -1
- package/lib/transformers/features/miscellaneous/IsPruneTransformer.d.ts +1 -3
- package/lib/transformers/features/miscellaneous/IsPruneTransformer.js +2 -15
- package/lib/transformers/features/miscellaneous/IsPruneTransformer.js.map +1 -1
- package/lib/transformers/features/miscellaneous/PruneTransformer.d.ts +1 -3
- package/lib/transformers/features/miscellaneous/PruneTransformer.js +2 -26
- package/lib/transformers/features/miscellaneous/PruneTransformer.js.map +1 -1
- package/lib/transformers/features/miscellaneous/RandomTransformer.js +3 -2
- package/lib/transformers/features/miscellaneous/RandomTransformer.js.map +1 -1
- package/lib/transformers/features/miscellaneous/ValidateCloneTransformer.d.ts +1 -3
- package/lib/transformers/features/miscellaneous/ValidateCloneTransformer.js +2 -15
- package/lib/transformers/features/miscellaneous/ValidateCloneTransformer.js.map +1 -1
- package/lib/transformers/features/miscellaneous/ValidatePruneTransformer.d.ts +1 -3
- package/lib/transformers/features/miscellaneous/ValidatePruneTransformer.js +2 -15
- package/lib/transformers/features/miscellaneous/ValidatePruneTransformer.js.map +1 -1
- package/lib/transformers/features/parsers/AssertParseTransformer.d.ts +1 -3
- package/lib/transformers/features/parsers/AssertParseTransformer.js +2 -14
- package/lib/transformers/features/parsers/AssertParseTransformer.js.map +1 -1
- package/lib/transformers/features/parsers/CreateAssertParseTransformer.d.ts +1 -3
- package/lib/transformers/features/parsers/CreateAssertParseTransformer.js +2 -10
- package/lib/transformers/features/parsers/CreateAssertParseTransformer.js.map +1 -1
- package/lib/transformers/features/parsers/CreateIsParseTransformer.d.ts +1 -3
- package/lib/transformers/features/parsers/CreateIsParseTransformer.js +2 -10
- package/lib/transformers/features/parsers/CreateIsParseTransformer.js.map +1 -1
- package/lib/transformers/features/parsers/CreateValidateParseTransformer.d.ts +1 -3
- package/lib/transformers/features/parsers/CreateValidateParseTransformer.js +2 -10
- package/lib/transformers/features/parsers/CreateValidateParseTransformer.js.map +1 -1
- package/lib/transformers/features/parsers/IsParseTransformer.d.ts +1 -3
- package/lib/transformers/features/parsers/IsParseTransformer.js +2 -14
- package/lib/transformers/features/parsers/IsParseTransformer.js.map +1 -1
- package/lib/transformers/features/parsers/ValidateParseTransformer.d.ts +1 -3
- package/lib/transformers/features/parsers/ValidateParseTransformer.js +2 -14
- package/lib/transformers/features/parsers/ValidateParseTransformer.js.map +1 -1
- package/lib/transformers/features/stringifiers/AssertStringifyTransformer.d.ts +1 -3
- package/lib/transformers/features/stringifiers/AssertStringifyTransformer.js +4 -15
- package/lib/transformers/features/stringifiers/AssertStringifyTransformer.js.map +1 -1
- package/lib/transformers/features/stringifiers/CreateAssertStringifyTransformer.d.ts +1 -3
- package/lib/transformers/features/stringifiers/CreateAssertStringifyTransformer.js +2 -10
- package/lib/transformers/features/stringifiers/CreateAssertStringifyTransformer.js.map +1 -1
- package/lib/transformers/features/stringifiers/CreateIsStringifyTransformer.d.ts +1 -3
- package/lib/transformers/features/stringifiers/CreateIsStringifyTransformer.js +2 -10
- package/lib/transformers/features/stringifiers/CreateIsStringifyTransformer.js.map +1 -1
- package/lib/transformers/features/stringifiers/CreateStringifyTransformer.d.ts +1 -3
- package/lib/transformers/features/stringifiers/CreateStringifyTransformer.js +2 -10
- package/lib/transformers/features/stringifiers/CreateStringifyTransformer.js.map +1 -1
- package/lib/transformers/features/stringifiers/CreateValidateStringifyProgrammer.d.ts +1 -3
- package/lib/transformers/features/stringifiers/CreateValidateStringifyProgrammer.js +4 -10
- package/lib/transformers/features/stringifiers/CreateValidateStringifyProgrammer.js.map +1 -1
- package/lib/transformers/features/stringifiers/IsStringifyTransformer.d.ts +1 -3
- package/lib/transformers/features/stringifiers/IsStringifyTransformer.js +2 -15
- package/lib/transformers/features/stringifiers/IsStringifyTransformer.js.map +1 -1
- package/lib/transformers/features/stringifiers/StringifyTransformer.d.ts +1 -3
- package/lib/transformers/features/stringifiers/StringifyTransformer.js +2 -26
- package/lib/transformers/features/stringifiers/StringifyTransformer.js.map +1 -1
- package/lib/transformers/features/stringifiers/ValidateStringifyTransformer.d.ts +1 -3
- package/lib/transformers/features/stringifiers/ValidateStringifyTransformer.js +4 -15
- package/lib/transformers/features/stringifiers/ValidateStringifyTransformer.js.map +1 -1
- package/lib/transformers/features/validators/AssertTransformer.d.ts +1 -3
- package/lib/transformers/features/validators/AssertTransformer.js +6 -22
- package/lib/transformers/features/validators/AssertTransformer.js.map +1 -1
- package/lib/transformers/features/validators/CreateAssertTransformer.d.ts +1 -3
- package/lib/transformers/features/validators/CreateAssertTransformer.js +6 -17
- package/lib/transformers/features/validators/CreateAssertTransformer.js.map +1 -1
- package/lib/transformers/features/validators/CreateIsTransformer.d.ts +1 -3
- package/lib/transformers/features/validators/CreateIsTransformer.js +4 -17
- package/lib/transformers/features/validators/CreateIsTransformer.js.map +1 -1
- package/lib/transformers/features/validators/CreateValidateTransformer.d.ts +1 -3
- package/lib/transformers/features/validators/CreateValidateTransformer.js +6 -17
- package/lib/transformers/features/validators/CreateValidateTransformer.js.map +1 -1
- package/lib/transformers/features/validators/IsTransformer.d.ts +1 -3
- package/lib/transformers/features/validators/IsTransformer.js +6 -22
- package/lib/transformers/features/validators/IsTransformer.js.map +1 -1
- package/lib/transformers/features/validators/ValidateTransformer.d.ts +1 -3
- package/lib/transformers/features/validators/ValidateTransformer.js +6 -22
- package/lib/transformers/features/validators/ValidateTransformer.js.map +1 -1
- package/lib/transformers/internal/GenericTransformer.d.ts +6 -0
- package/lib/transformers/internal/GenericTransformer.js +72 -0
- package/lib/transformers/internal/GenericTransformer.js.map +1 -0
- package/package.json +2 -1
- package/src/programmers/AssertCloneProgrammer.ts +6 -7
- package/src/programmers/AssertParseProgrammer.ts +5 -6
- package/src/programmers/AssertProgrammer.ts +3 -3
- package/src/programmers/AssertPruneProgrammer.ts +4 -4
- package/src/programmers/AssertStringifyProgrammer.ts +3 -3
- package/src/programmers/CheckerProgrammer.ts +3 -2
- package/src/programmers/CloneProgrammer.ts +6 -7
- package/src/programmers/FeatureProgrammer.ts +5 -5
- package/src/programmers/IsCloneProgrammer.ts +7 -7
- package/src/programmers/IsParseProgrammer.ts +5 -6
- package/src/programmers/IsPruneProgrammer.ts +4 -4
- package/src/programmers/IsStringifyProgrammer.ts +5 -4
- package/src/programmers/PruneProgrammer.ts +2 -2
- package/src/programmers/RandomProgrammer.ts +4 -5
- package/src/programmers/StringifyProgrammer.ts +2 -2
- package/src/programmers/ValidateCloneProgrammer.ts +6 -7
- package/src/programmers/ValidateParseProgrammer.ts +5 -6
- package/src/programmers/ValidateProgrammer.ts +5 -6
- package/src/programmers/ValidatePruneProgrammer.ts +6 -7
- package/src/programmers/ValidateStringifyProgrammer.ts +5 -4
- package/src/transformers/features/miscellaneous/AssertCloneTransformer.ts +4 -33
- package/src/transformers/features/miscellaneous/AssertPruneTransformer.ts +4 -33
- package/src/transformers/features/miscellaneous/CloneTransformer.ts +4 -41
- package/src/transformers/features/miscellaneous/CreateAssertCloneTransformer.ts +4 -27
- package/src/transformers/features/miscellaneous/CreateAssertPruneTransformer.ts +4 -27
- package/src/transformers/features/miscellaneous/CreateCloneTransformer.ts +4 -26
- package/src/transformers/features/miscellaneous/CreateIsCloneTransformer.ts +4 -27
- package/src/transformers/features/miscellaneous/CreateIsPruneTransformer.ts +4 -27
- package/src/transformers/features/miscellaneous/CreatePruneTransformer.ts +4 -26
- package/src/transformers/features/miscellaneous/CreateRandomGenerator.ts +7 -4
- package/src/transformers/features/miscellaneous/CreateValidateCloneTransformer.ts +4 -27
- package/src/transformers/features/miscellaneous/CreateValidatePruneTransformer.ts +4 -27
- package/src/transformers/features/miscellaneous/IsCloneTransformer.ts +4 -33
- package/src/transformers/features/miscellaneous/IsPruneTransformer.ts +4 -33
- package/src/transformers/features/miscellaneous/PruneTransformer.ts +4 -41
- package/src/transformers/features/miscellaneous/RandomTransformer.ts +7 -4
- package/src/transformers/features/miscellaneous/ValidateCloneTransformer.ts +4 -33
- package/src/transformers/features/miscellaneous/ValidatePruneTransformer.ts +4 -33
- package/src/transformers/features/parsers/AssertParseTransformer.ts +4 -31
- package/src/transformers/features/parsers/CreateAssertParseTransformer.ts +4 -27
- package/src/transformers/features/parsers/CreateIsParseTransformer.ts +4 -27
- package/src/transformers/features/parsers/CreateValidateParseTransformer.ts +4 -27
- package/src/transformers/features/parsers/IsParseTransformer.ts +4 -31
- package/src/transformers/features/parsers/ValidateParseTransformer.ts +4 -31
- package/src/transformers/features/stringifiers/AssertStringifyTransformer.ts +5 -33
- package/src/transformers/features/stringifiers/CreateAssertStringifyTransformer.ts +4 -27
- package/src/transformers/features/stringifiers/CreateIsStringifyTransformer.ts +4 -27
- package/src/transformers/features/stringifiers/CreateStringifyTransformer.ts +4 -26
- package/src/transformers/features/stringifiers/CreateValidateStringifyProgrammer.ts +6 -27
- package/src/transformers/features/stringifiers/IsStringifyTransformer.ts +4 -33
- package/src/transformers/features/stringifiers/StringifyTransformer.ts +4 -41
- package/src/transformers/features/stringifiers/ValidateStringifyTransformer.ts +5 -33
- package/src/transformers/features/validators/AssertTransformer.ts +6 -38
- package/src/transformers/features/validators/CreateAssertTransformer.ts +7 -30
- package/src/transformers/features/validators/CreateIsTransformer.ts +5 -30
- package/src/transformers/features/validators/CreateValidateTransformer.ts +7 -30
- package/src/transformers/features/validators/IsTransformer.ts +5 -38
- package/src/transformers/features/validators/ValidateTransformer.ts +6 -38
- package/src/transformers/internal/GenericTransformer.ts +99 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ValidatePruneProgrammer.js","sourceRoot":"","sources":["../../src/programmers/ValidatePruneProgrammer.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,0DAA4B;AAE5B,oEAAmE;AACnE,kEAAiE;AACjE,wDAAuD;AAIvD,qDAAoD;AACpD,2DAA0D;AAE1D,IAAiB,uBAAuB,
|
|
1
|
+
{"version":3,"file":"ValidatePruneProgrammer.js","sourceRoot":"","sources":["../../src/programmers/ValidatePruneProgrammer.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,0DAA4B;AAE5B,oEAAmE;AACnE,kEAAiE;AACjE,wDAAuD;AAIvD,qDAAoD;AACpD,2DAA0D;AAE1D,IAAiB,uBAAuB,CAuEvC;AAvED,WAAiB,uBAAuB;IACvB,gCAAQ,GACjB,UAAC,OAAiB,EAAE,MAAiC;QACrD,OAAA,UAAC,IAAa,EAAE,IAAa;YACzB,OAAA,oBAAE,CAAC,OAAO,CAAC,mBAAmB,CAC1B,SAAS,EACT,SAAS,EACT;gBACI,qCAAiB,CAAC,SAAS,CACvB,OAAO,EACP,yBAAW,CAAC,OAAO,CAAC,KAAK,CAAC,CAC7B;aACJ,EACD,oBAAE,CAAC,OAAO,CAAC,uBAAuB,CAC9B,4BACI,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,yBAAW,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,EAAE,IAAI,CAAC,MACvD,CACN,EACD,SAAS,EACT,oBAAE,CAAC,OAAO,CAAC,WAAW,CAAC;gBACnB,mCAAgB,CAAC,QAAQ,CACrB,UAAU,EACV,uCAAkB,CAAC,QAAQ,uBAEhB,OAAO,KACV,OAAO,wBACA,OAAO,CAAC,OAAO,KAClB,UAAU,EAAE,KAAK,EACjB,OAAO,EAAE,IAAI,QAGrB,MAAM,CACT,CAAC,IAAI,EAAE,IAAI,CAAC,CAChB;gBACD,mCAAgB,CAAC,QAAQ,CACrB,OAAO,EACP,iCAAe,CAAC,QAAQ,uBAEb,OAAO,KACV,OAAO,wBACA,OAAO,CAAC,OAAO,KAClB,UAAU,EAAE,KAAK,EACjB,OAAO,EAAE,KAAK,QAGtB,MAAM,CACT,CAAC,IAAI,EAAE,IAAI,CAAC,CAChB;gBACD,mCAAgB,CAAC,QAAQ,CACrB,QAAQ,EACR,oBAAE,CAAC,OAAO,CAAC,oBAAoB,CAC3B,oBAAE,CAAC,OAAO,CAAC,gBAAgB,CAAC,UAAU,CAAC,EACvC,SAAS,EACT,CAAC,oBAAE,CAAC,OAAO,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,CACzC,CACJ;gBACD,oBAAE,CAAC,OAAO,CAAC,iBAAiB,CACxB,oBAAE,CAAC,OAAO,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,EAC7C,oBAAE,CAAC,OAAO,CAAC,yBAAyB,CAChC,oBAAE,CAAC,OAAO,CAAC,oBAAoB,CAC3B,oBAAE,CAAC,OAAO,CAAC,gBAAgB,CAAC,OAAO,CAAC,EACpC,SAAS,EACT,CAAC,oBAAE,CAAC,OAAO,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,CACzC,CACJ,CACJ;gBACD,oBAAE,CAAC,OAAO,CAAC,qBAAqB,CAC5B,oBAAE,CAAC,OAAO,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CACxC;aACJ,CAAC,CACL;QAlED,CAkEC;IAnEL,CAmEK,CAAC;AACd,CAAC,EAvEgB,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAuEvC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import ts from "typescript";
|
|
2
2
|
import { IProject } from "../transformers/IProject";
|
|
3
3
|
export declare namespace ValidateStringifyProgrammer {
|
|
4
|
-
const generate: (project: IProject, modulo: ts.LeftHandSideExpression) => (type: ts.Type) => ts.ArrowFunction;
|
|
4
|
+
const generate: (project: IProject, modulo: ts.LeftHandSideExpression) => (type: ts.Type, name?: string) => ts.ArrowFunction;
|
|
5
5
|
}
|
|
@@ -24,12 +24,12 @@ var ValidateProgrammer_1 = require("./ValidateProgrammer");
|
|
|
24
24
|
var ValidateStringifyProgrammer;
|
|
25
25
|
(function (ValidateStringifyProgrammer) {
|
|
26
26
|
ValidateStringifyProgrammer.generate = function (project, modulo) {
|
|
27
|
-
return function (type) {
|
|
27
|
+
return function (type, name) {
|
|
28
28
|
return typescript_1.default.factory.createArrowFunction(undefined, undefined, [
|
|
29
|
-
IdentifierFactory_1.IdentifierFactory.parameter("input", typescript_1.default.factory.createTypeReferenceNode(TypeFactory_1.TypeFactory.getFullName(project.checker, type))),
|
|
29
|
+
IdentifierFactory_1.IdentifierFactory.parameter("input", typescript_1.default.factory.createTypeReferenceNode(name !== null && name !== void 0 ? name : TypeFactory_1.TypeFactory.getFullName(project.checker, type))),
|
|
30
30
|
], typescript_1.default.factory.createTypeReferenceNode("typia.IValidation<string>"), undefined, typescript_1.default.factory.createBlock([
|
|
31
|
-
StatementFactory_1.StatementFactory.constant("validate", ValidateProgrammer_1.ValidateProgrammer.generate(__assign(__assign({}, project), { options: __assign(__assign({}, project.options), { functional: false, numeric: true }) }), modulo)(type)),
|
|
32
|
-
StatementFactory_1.StatementFactory.constant("stringify", StringifyProgrammer_1.StringifyProgrammer.generate(__assign(__assign({}, project), { options: __assign(__assign({}, project.options), { functional: false, numeric: false }) }), modulo)(type)),
|
|
31
|
+
StatementFactory_1.StatementFactory.constant("validate", ValidateProgrammer_1.ValidateProgrammer.generate(__assign(__assign({}, project), { options: __assign(__assign({}, project.options), { functional: false, numeric: true }) }), modulo)(type, name)),
|
|
32
|
+
StatementFactory_1.StatementFactory.constant("stringify", StringifyProgrammer_1.StringifyProgrammer.generate(__assign(__assign({}, project), { options: __assign(__assign({}, project.options), { functional: false, numeric: false }) }), modulo)(type, name)),
|
|
33
33
|
StatementFactory_1.StatementFactory.constant("output", typescript_1.default.factory.createAsExpression(typescript_1.default.factory.createCallExpression(typescript_1.default.factory.createIdentifier("validate"), undefined, [typescript_1.default.factory.createIdentifier("input")]), TypeFactory_1.TypeFactory.keyword("any"))),
|
|
34
34
|
typescript_1.default.factory.createIfStatement(typescript_1.default.factory.createIdentifier("output.success"), typescript_1.default.factory.createExpressionStatement(typescript_1.default.factory.createBinaryExpression(typescript_1.default.factory.createIdentifier("output.data"), typescript_1.default.SyntaxKind.EqualsToken, typescript_1.default.factory.createCallExpression(typescript_1.default.factory.createIdentifier("stringify"), undefined, [typescript_1.default.factory.createIdentifier("input")])))),
|
|
35
35
|
typescript_1.default.factory.createReturnStatement(typescript_1.default.factory.createIdentifier("output")),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ValidateStringifyProgrammer.js","sourceRoot":"","sources":["../../src/programmers/ValidateStringifyProgrammer.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,0DAA4B;AAE5B,oEAAmE;AACnE,kEAAiE;AACjE,wDAAuD;AAIvD,6DAA4D;AAC5D,2DAA0D;AAE1D,IAAiB,2BAA2B,
|
|
1
|
+
{"version":3,"file":"ValidateStringifyProgrammer.js","sourceRoot":"","sources":["../../src/programmers/ValidateStringifyProgrammer.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,0DAA4B;AAE5B,oEAAmE;AACnE,kEAAiE;AACjE,wDAAuD;AAIvD,6DAA4D;AAC5D,2DAA0D;AAE1D,IAAiB,2BAA2B,CA6E3C;AA7ED,WAAiB,2BAA2B;IAC3B,oCAAQ,GACjB,UAAC,OAAiB,EAAE,MAAiC;QACrD,OAAA,UAAC,IAAa,EAAE,IAAa;YACzB,OAAA,oBAAE,CAAC,OAAO,CAAC,mBAAmB,CAC1B,SAAS,EACT,SAAS,EACT;gBACI,qCAAiB,CAAC,SAAS,CACvB,OAAO,EACP,oBAAE,CAAC,OAAO,CAAC,uBAAuB,CAC9B,IAAI,aAAJ,IAAI,cAAJ,IAAI,GACA,yBAAW,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,EAAE,IAAI,CAAC,CACrD,CACJ;aACJ,EACD,oBAAE,CAAC,OAAO,CAAC,uBAAuB,CAAC,2BAA2B,CAAC,EAC/D,SAAS,EACT,oBAAE,CAAC,OAAO,CAAC,WAAW,CAAC;gBACnB,mCAAgB,CAAC,QAAQ,CACrB,UAAU,EACV,uCAAkB,CAAC,QAAQ,uBAEhB,OAAO,KACV,OAAO,wBACA,OAAO,CAAC,OAAO,KAClB,UAAU,EAAE,KAAK,EACjB,OAAO,EAAE,IAAI,QAGrB,MAAM,CACT,CAAC,IAAI,EAAE,IAAI,CAAC,CAChB;gBACD,mCAAgB,CAAC,QAAQ,CACrB,WAAW,EACX,yCAAmB,CAAC,QAAQ,uBAEjB,OAAO,KACV,OAAO,wBACA,OAAO,CAAC,OAAO,KAClB,UAAU,EAAE,KAAK,EACjB,OAAO,EAAE,KAAK,QAGtB,MAAM,CACT,CAAC,IAAI,EAAE,IAAI,CAAC,CAChB;gBACD,mCAAgB,CAAC,QAAQ,CACrB,QAAQ,EACR,oBAAE,CAAC,OAAO,CAAC,kBAAkB,CACzB,oBAAE,CAAC,OAAO,CAAC,oBAAoB,CAC3B,oBAAE,CAAC,OAAO,CAAC,gBAAgB,CAAC,UAAU,CAAC,EACvC,SAAS,EACT,CAAC,oBAAE,CAAC,OAAO,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,CACzC,EACD,yBAAW,CAAC,OAAO,CAAC,KAAK,CAAC,CAC7B,CACJ;gBACD,oBAAE,CAAC,OAAO,CAAC,iBAAiB,CACxB,oBAAE,CAAC,OAAO,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,EAC7C,oBAAE,CAAC,OAAO,CAAC,yBAAyB,CAChC,oBAAE,CAAC,OAAO,CAAC,sBAAsB,CAC7B,oBAAE,CAAC,OAAO,CAAC,gBAAgB,CAAC,aAAa,CAAC,EAC1C,oBAAE,CAAC,UAAU,CAAC,WAAW,EACzB,oBAAE,CAAC,OAAO,CAAC,oBAAoB,CAC3B,oBAAE,CAAC,OAAO,CAAC,gBAAgB,CAAC,WAAW,CAAC,EACxC,SAAS,EACT,CAAC,oBAAE,CAAC,OAAO,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,CACzC,CACJ,CACJ,CACJ;gBACD,oBAAE,CAAC,OAAO,CAAC,qBAAqB,CAC5B,oBAAE,CAAC,OAAO,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CACxC;aACJ,CAAC,CACL;QAxED,CAwEC;IAzEL,CAyEK,CAAC;AACd,CAAC,EA7EgB,2BAA2B,GAA3B,mCAA2B,KAA3B,mCAA2B,QA6E3C"}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import ts from "typescript";
|
|
2
|
-
import { IProject } from "../../IProject";
|
|
3
1
|
export declare namespace AssertCloneTransformer {
|
|
4
|
-
|
|
2
|
+
const transform: (project: import("../../IProject").IProject, modulo: import("typescript").LeftHandSideExpression, expression: import("typescript").CallExpression) => import("typescript").CallExpression;
|
|
5
3
|
}
|
|
@@ -1,23 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.AssertCloneTransformer = void 0;
|
|
7
|
-
var typescript_1 = __importDefault(require("typescript"));
|
|
8
4
|
var AssertCloneProgrammer_1 = require("../../../programmers/AssertCloneProgrammer");
|
|
5
|
+
var GenericTransformer_1 = require("../../internal/GenericTransformer");
|
|
9
6
|
var AssertCloneTransformer;
|
|
10
7
|
(function (AssertCloneTransformer) {
|
|
11
|
-
function
|
|
12
|
-
if (expression.arguments.length !== 1)
|
|
13
|
-
throw new Error("Error on typia.assertClone(): no input value.");
|
|
14
|
-
var type = expression.typeArguments && expression.typeArguments[0]
|
|
15
|
-
? project.checker.getTypeFromTypeNode(expression.typeArguments[0])
|
|
16
|
-
: project.checker.getTypeAtLocation(expression.arguments[0]);
|
|
17
|
-
if (type.isTypeParameter())
|
|
18
|
-
throw new Error("Error on typia.assertClone(): non-specified generic argument.");
|
|
19
|
-
return typescript_1.default.factory.createCallExpression(AssertCloneProgrammer_1.AssertCloneProgrammer.generate(project, modulo)(type), undefined, [expression.arguments[0]]);
|
|
20
|
-
}
|
|
21
|
-
AssertCloneTransformer.transform = transform;
|
|
8
|
+
AssertCloneTransformer.transform = GenericTransformer_1.GenericTransformer.scalar("assertClone")(function (project, modulo) { return AssertCloneProgrammer_1.AssertCloneProgrammer.generate(project, modulo); });
|
|
22
9
|
})(AssertCloneTransformer = exports.AssertCloneTransformer || (exports.AssertCloneTransformer = {}));
|
|
23
10
|
//# sourceMappingURL=AssertCloneTransformer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AssertCloneTransformer.js","sourceRoot":"","sources":["../../../../src/transformers/features/miscellaneous/AssertCloneTransformer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AssertCloneTransformer.js","sourceRoot":"","sources":["../../../../src/transformers/features/miscellaneous/AssertCloneTransformer.ts"],"names":[],"mappings":";;;AAAA,oFAAmF;AAEnF,wEAAuE;AAEvE,IAAiB,sBAAsB,CAItC;AAJD,WAAiB,sBAAsB;IACtB,gCAAS,GAAG,uCAAkB,CAAC,MAAM,CAAC,aAAa,CAAC,CAC7D,UAAC,OAAO,EAAE,MAAM,IAAK,OAAA,6CAAqB,CAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC,EAA/C,CAA+C,CACvE,CAAC;AACN,CAAC,EAJgB,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAItC"}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import ts from "typescript";
|
|
2
|
-
import { IProject } from "../../IProject";
|
|
3
1
|
export declare namespace AssertPruneTransformer {
|
|
4
|
-
|
|
2
|
+
const transform: (project: import("../../IProject").IProject, modulo: import("typescript").LeftHandSideExpression, expression: import("typescript").CallExpression) => import("typescript").CallExpression;
|
|
5
3
|
}
|
|
@@ -1,23 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.AssertPruneTransformer = void 0;
|
|
7
|
-
var typescript_1 = __importDefault(require("typescript"));
|
|
8
4
|
var AssertPruneProgrammer_1 = require("../../../programmers/AssertPruneProgrammer");
|
|
5
|
+
var GenericTransformer_1 = require("../../internal/GenericTransformer");
|
|
9
6
|
var AssertPruneTransformer;
|
|
10
7
|
(function (AssertPruneTransformer) {
|
|
11
|
-
function
|
|
12
|
-
if (expression.arguments.length !== 1)
|
|
13
|
-
throw new Error("Error on typia.assertPrune(): no input value.");
|
|
14
|
-
var type = expression.typeArguments && expression.typeArguments[0]
|
|
15
|
-
? project.checker.getTypeFromTypeNode(expression.typeArguments[0])
|
|
16
|
-
: project.checker.getTypeAtLocation(expression.arguments[0]);
|
|
17
|
-
if (type.isTypeParameter())
|
|
18
|
-
throw new Error("Error on typia.assertPrune(): non-specified generic argument.");
|
|
19
|
-
return typescript_1.default.factory.createCallExpression(AssertPruneProgrammer_1.AssertPruneProgrammer.generate(project, modulo)(type), undefined, [expression.arguments[0]]);
|
|
20
|
-
}
|
|
21
|
-
AssertPruneTransformer.transform = transform;
|
|
8
|
+
AssertPruneTransformer.transform = GenericTransformer_1.GenericTransformer.scalar("assertPrune")(function (project, modulo) { return AssertPruneProgrammer_1.AssertPruneProgrammer.generate(project, modulo); });
|
|
22
9
|
})(AssertPruneTransformer = exports.AssertPruneTransformer || (exports.AssertPruneTransformer = {}));
|
|
23
10
|
//# sourceMappingURL=AssertPruneTransformer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AssertPruneTransformer.js","sourceRoot":"","sources":["../../../../src/transformers/features/miscellaneous/AssertPruneTransformer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AssertPruneTransformer.js","sourceRoot":"","sources":["../../../../src/transformers/features/miscellaneous/AssertPruneTransformer.ts"],"names":[],"mappings":";;;AAAA,oFAAmF;AAEnF,wEAAuE;AAEvE,IAAiB,sBAAsB,CAItC;AAJD,WAAiB,sBAAsB;IACtB,gCAAS,GAAG,uCAAkB,CAAC,MAAM,CAAC,aAAa,CAAC,CAC7D,UAAC,OAAO,EAAE,MAAM,IAAK,OAAA,6CAAqB,CAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC,EAA/C,CAA+C,CACvE,CAAC;AACN,CAAC,EAJgB,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAItC"}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import ts from "typescript";
|
|
2
|
-
import { IProject } from "../../IProject";
|
|
3
1
|
export declare namespace CloneTransformer {
|
|
4
|
-
|
|
2
|
+
const transform: (project: import("../../IProject").IProject, modulo: import("typescript").LeftHandSideExpression, expression: import("typescript").CallExpression) => import("typescript").CallExpression;
|
|
5
3
|
}
|
|
@@ -1,34 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
-
};
|
|
16
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
3
|
exports.CloneTransformer = void 0;
|
|
18
|
-
var typescript_1 = __importDefault(require("typescript"));
|
|
19
4
|
var CloneProgrammer_1 = require("../../../programmers/CloneProgrammer");
|
|
5
|
+
var GenericTransformer_1 = require("../../internal/GenericTransformer");
|
|
20
6
|
var CloneTransformer;
|
|
21
7
|
(function (CloneTransformer) {
|
|
22
|
-
function
|
|
23
|
-
if (expression.arguments.length !== 1)
|
|
24
|
-
throw new Error("Error on typia.clone(): no input value.");
|
|
25
|
-
var type = expression.typeArguments && expression.typeArguments[0]
|
|
26
|
-
? project.checker.getTypeFromTypeNode(expression.typeArguments[0])
|
|
27
|
-
: project.checker.getTypeAtLocation(expression.arguments[0]);
|
|
28
|
-
if (type.isTypeParameter())
|
|
29
|
-
throw new Error("Error on typia.clone(): non-specified generic argument.");
|
|
30
|
-
return typescript_1.default.factory.createCallExpression(CloneProgrammer_1.CloneProgrammer.generate(__assign(__assign({}, project), { options: __assign(__assign({}, project.options), { functional: false, numeric: false }) }), modulo)(type), undefined, [expression.arguments[0]]);
|
|
31
|
-
}
|
|
32
|
-
CloneTransformer.transform = transform;
|
|
8
|
+
CloneTransformer.transform = GenericTransformer_1.GenericTransformer.scalar("clone")(function (project, modulo) { return CloneProgrammer_1.CloneProgrammer.generate(project, modulo); });
|
|
33
9
|
})(CloneTransformer = exports.CloneTransformer || (exports.CloneTransformer = {}));
|
|
34
10
|
//# sourceMappingURL=CloneTransformer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CloneTransformer.js","sourceRoot":"","sources":["../../../../src/transformers/features/miscellaneous/CloneTransformer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CloneTransformer.js","sourceRoot":"","sources":["../../../../src/transformers/features/miscellaneous/CloneTransformer.ts"],"names":[],"mappings":";;;AAAA,wEAAuE;AAEvE,wEAAuE;AAEvE,IAAiB,gBAAgB,CAIhC;AAJD,WAAiB,gBAAgB;IAChB,0BAAS,GAAG,uCAAkB,CAAC,MAAM,CAAC,OAAO,CAAC,CACvD,UAAC,OAAO,EAAE,MAAM,IAAK,OAAA,iCAAe,CAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC,EAAzC,CAAyC,CACjE,CAAC;AACN,CAAC,EAJgB,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAIhC"}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import ts from "typescript";
|
|
2
|
-
import { IProject } from "../../IProject";
|
|
3
1
|
export declare namespace CreateAssertCloneTransformer {
|
|
4
|
-
|
|
2
|
+
const transform: (project: import("../../IProject").IProject, modulo: import("typescript").LeftHandSideExpression, expression: import("typescript").CallExpression) => import("typescript").ArrowFunction;
|
|
5
3
|
}
|
|
@@ -2,17 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CreateAssertCloneTransformer = void 0;
|
|
4
4
|
var AssertCloneProgrammer_1 = require("../../../programmers/AssertCloneProgrammer");
|
|
5
|
+
var GenericTransformer_1 = require("../../internal/GenericTransformer");
|
|
5
6
|
var CreateAssertCloneTransformer;
|
|
6
7
|
(function (CreateAssertCloneTransformer) {
|
|
7
|
-
function
|
|
8
|
-
var _a;
|
|
9
|
-
if (!((_a = expression.typeArguments) === null || _a === void 0 ? void 0 : _a[0]))
|
|
10
|
-
throw new Error("Error on typia.assertClone(): generic argument is not specified.");
|
|
11
|
-
var type = project.checker.getTypeFromTypeNode(expression.typeArguments[0]);
|
|
12
|
-
if (type.isTypeParameter())
|
|
13
|
-
throw new Error("Error on typia.assertClone(): non-specified generic argument.");
|
|
14
|
-
return AssertCloneProgrammer_1.AssertCloneProgrammer.generate(project, modulo)(type);
|
|
15
|
-
}
|
|
16
|
-
CreateAssertCloneTransformer.transform = transform;
|
|
8
|
+
CreateAssertCloneTransformer.transform = GenericTransformer_1.GenericTransformer.factory("createAssertClone")(function (project, modulo) { return AssertCloneProgrammer_1.AssertCloneProgrammer.generate(project, modulo); });
|
|
17
9
|
})(CreateAssertCloneTransformer = exports.CreateAssertCloneTransformer || (exports.CreateAssertCloneTransformer = {}));
|
|
18
10
|
//# sourceMappingURL=CreateAssertCloneTransformer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateAssertCloneTransformer.js","sourceRoot":"","sources":["../../../../src/transformers/features/miscellaneous/CreateAssertCloneTransformer.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"CreateAssertCloneTransformer.js","sourceRoot":"","sources":["../../../../src/transformers/features/miscellaneous/CreateAssertCloneTransformer.ts"],"names":[],"mappings":";;;AAAA,oFAAmF;AAEnF,wEAAuE;AAEvE,IAAiB,4BAA4B,CAI5C;AAJD,WAAiB,4BAA4B;IAC5B,sCAAS,GAAG,uCAAkB,CAAC,OAAO,CAAC,mBAAmB,CAAC,CACpE,UAAC,OAAO,EAAE,MAAM,IAAK,OAAA,6CAAqB,CAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC,EAA/C,CAA+C,CACvE,CAAC;AACN,CAAC,EAJgB,4BAA4B,GAA5B,oCAA4B,KAA5B,oCAA4B,QAI5C"}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import ts from "typescript";
|
|
2
|
-
import { IProject } from "../../IProject";
|
|
3
1
|
export declare namespace CreateAssertPruneTransformer {
|
|
4
|
-
|
|
2
|
+
const transform: (project: import("../../IProject").IProject, modulo: import("typescript").LeftHandSideExpression, expression: import("typescript").CallExpression) => import("typescript").ArrowFunction;
|
|
5
3
|
}
|
|
@@ -2,17 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CreateAssertPruneTransformer = void 0;
|
|
4
4
|
var AssertPruneProgrammer_1 = require("../../../programmers/AssertPruneProgrammer");
|
|
5
|
+
var GenericTransformer_1 = require("../../internal/GenericTransformer");
|
|
5
6
|
var CreateAssertPruneTransformer;
|
|
6
7
|
(function (CreateAssertPruneTransformer) {
|
|
7
|
-
function
|
|
8
|
-
var _a;
|
|
9
|
-
if (!((_a = expression.typeArguments) === null || _a === void 0 ? void 0 : _a[0]))
|
|
10
|
-
throw new Error("Error on typia.assertPrune(): generic argument is not specified.");
|
|
11
|
-
var type = project.checker.getTypeFromTypeNode(expression.typeArguments[0]);
|
|
12
|
-
if (type.isTypeParameter())
|
|
13
|
-
throw new Error("Error on typia.assertPrune(): non-specified generic argument.");
|
|
14
|
-
return AssertPruneProgrammer_1.AssertPruneProgrammer.generate(project, modulo)(type);
|
|
15
|
-
}
|
|
16
|
-
CreateAssertPruneTransformer.transform = transform;
|
|
8
|
+
CreateAssertPruneTransformer.transform = GenericTransformer_1.GenericTransformer.factory("createAssertPrune")(function (project, modulo) { return AssertPruneProgrammer_1.AssertPruneProgrammer.generate(project, modulo); });
|
|
17
9
|
})(CreateAssertPruneTransformer = exports.CreateAssertPruneTransformer || (exports.CreateAssertPruneTransformer = {}));
|
|
18
10
|
//# sourceMappingURL=CreateAssertPruneTransformer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateAssertPruneTransformer.js","sourceRoot":"","sources":["../../../../src/transformers/features/miscellaneous/CreateAssertPruneTransformer.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"CreateAssertPruneTransformer.js","sourceRoot":"","sources":["../../../../src/transformers/features/miscellaneous/CreateAssertPruneTransformer.ts"],"names":[],"mappings":";;;AAAA,oFAAmF;AAEnF,wEAAuE;AAEvE,IAAiB,4BAA4B,CAI5C;AAJD,WAAiB,4BAA4B;IAC5B,sCAAS,GAAG,uCAAkB,CAAC,OAAO,CAAC,mBAAmB,CAAC,CACpE,UAAC,OAAO,EAAE,MAAM,IAAK,OAAA,6CAAqB,CAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC,EAA/C,CAA+C,CACvE,CAAC;AACN,CAAC,EAJgB,4BAA4B,GAA5B,oCAA4B,KAA5B,oCAA4B,QAI5C"}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import ts from "typescript";
|
|
2
|
-
import { IProject } from "../../IProject";
|
|
3
1
|
export declare namespace CreateCloneTransformer {
|
|
4
|
-
|
|
2
|
+
const transform: (project: import("../../IProject").IProject, modulo: import("typescript").LeftHandSideExpression, expression: import("typescript").CallExpression) => import("typescript").ArrowFunction;
|
|
5
3
|
}
|
|
@@ -2,17 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CreateCloneTransformer = void 0;
|
|
4
4
|
var CloneProgrammer_1 = require("../../../programmers/CloneProgrammer");
|
|
5
|
+
var GenericTransformer_1 = require("../../internal/GenericTransformer");
|
|
5
6
|
var CreateCloneTransformer;
|
|
6
7
|
(function (CreateCloneTransformer) {
|
|
7
|
-
function
|
|
8
|
-
var _a;
|
|
9
|
-
if (!((_a = expression.typeArguments) === null || _a === void 0 ? void 0 : _a[0]))
|
|
10
|
-
throw new Error("Error on typia.clone(): generic argument is not specified.");
|
|
11
|
-
var type = project.checker.getTypeFromTypeNode(expression.typeArguments[0]);
|
|
12
|
-
if (type.isTypeParameter())
|
|
13
|
-
throw new Error("Error on typia.clone(): non-specified generic argument.");
|
|
14
|
-
return CloneProgrammer_1.CloneProgrammer.generate(project, modulo)(type);
|
|
15
|
-
}
|
|
16
|
-
CreateCloneTransformer.transform = transform;
|
|
8
|
+
CreateCloneTransformer.transform = GenericTransformer_1.GenericTransformer.factory("createClone")(function (project, modulo) { return CloneProgrammer_1.CloneProgrammer.generate(project, modulo); });
|
|
17
9
|
})(CreateCloneTransformer = exports.CreateCloneTransformer || (exports.CreateCloneTransformer = {}));
|
|
18
10
|
//# sourceMappingURL=CreateCloneTransformer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateCloneTransformer.js","sourceRoot":"","sources":["../../../../src/transformers/features/miscellaneous/CreateCloneTransformer.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"CreateCloneTransformer.js","sourceRoot":"","sources":["../../../../src/transformers/features/miscellaneous/CreateCloneTransformer.ts"],"names":[],"mappings":";;;AAAA,wEAAuE;AAEvE,wEAAuE;AAEvE,IAAiB,sBAAsB,CAItC;AAJD,WAAiB,sBAAsB;IACtB,gCAAS,GAAG,uCAAkB,CAAC,OAAO,CAAC,aAAa,CAAC,CAC9D,UAAC,OAAO,EAAE,MAAM,IAAK,OAAA,iCAAe,CAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC,EAAzC,CAAyC,CACjE,CAAC;AACN,CAAC,EAJgB,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAItC"}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import ts from "typescript";
|
|
2
|
-
import { IProject } from "../../IProject";
|
|
3
1
|
export declare namespace CreateIsCloneTransformer {
|
|
4
|
-
|
|
2
|
+
const transform: (project: import("../../IProject").IProject, modulo: import("typescript").LeftHandSideExpression, expression: import("typescript").CallExpression) => import("typescript").ArrowFunction;
|
|
5
3
|
}
|
|
@@ -2,17 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CreateIsCloneTransformer = void 0;
|
|
4
4
|
var IsCloneProgrammer_1 = require("../../../programmers/IsCloneProgrammer");
|
|
5
|
+
var GenericTransformer_1 = require("../../internal/GenericTransformer");
|
|
5
6
|
var CreateIsCloneTransformer;
|
|
6
7
|
(function (CreateIsCloneTransformer) {
|
|
7
|
-
function
|
|
8
|
-
var _a;
|
|
9
|
-
if (!((_a = expression.typeArguments) === null || _a === void 0 ? void 0 : _a[0]))
|
|
10
|
-
throw new Error("Error on typia.isClone(): generic argument is not specified.");
|
|
11
|
-
var type = project.checker.getTypeFromTypeNode(expression.typeArguments[0]);
|
|
12
|
-
if (type.isTypeParameter())
|
|
13
|
-
throw new Error("Error on typia.isClone(): non-specified generic argument.");
|
|
14
|
-
return IsCloneProgrammer_1.IsCloneProgrammer.generate(project, modulo)(type);
|
|
15
|
-
}
|
|
16
|
-
CreateIsCloneTransformer.transform = transform;
|
|
8
|
+
CreateIsCloneTransformer.transform = GenericTransformer_1.GenericTransformer.factory("createIsClone")(function (project, modulo) { return IsCloneProgrammer_1.IsCloneProgrammer.generate(project, modulo); });
|
|
17
9
|
})(CreateIsCloneTransformer = exports.CreateIsCloneTransformer || (exports.CreateIsCloneTransformer = {}));
|
|
18
10
|
//# sourceMappingURL=CreateIsCloneTransformer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateIsCloneTransformer.js","sourceRoot":"","sources":["../../../../src/transformers/features/miscellaneous/CreateIsCloneTransformer.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"CreateIsCloneTransformer.js","sourceRoot":"","sources":["../../../../src/transformers/features/miscellaneous/CreateIsCloneTransformer.ts"],"names":[],"mappings":";;;AAAA,4EAA2E;AAE3E,wEAAuE;AAEvE,IAAiB,wBAAwB,CAIxC;AAJD,WAAiB,wBAAwB;IACxB,kCAAS,GAAG,uCAAkB,CAAC,OAAO,CAAC,eAAe,CAAC,CAChE,UAAC,OAAO,EAAE,MAAM,IAAK,OAAA,qCAAiB,CAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC,EAA3C,CAA2C,CACnE,CAAC;AACN,CAAC,EAJgB,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QAIxC"}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import ts from "typescript";
|
|
2
|
-
import { IProject } from "../../IProject";
|
|
3
1
|
export declare namespace CreateIsPruneTransformer {
|
|
4
|
-
|
|
2
|
+
const transform: (project: import("../../IProject").IProject, modulo: import("typescript").LeftHandSideExpression, expression: import("typescript").CallExpression) => import("typescript").ArrowFunction;
|
|
5
3
|
}
|
|
@@ -2,17 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CreateIsPruneTransformer = void 0;
|
|
4
4
|
var IsPruneProgrammer_1 = require("../../../programmers/IsPruneProgrammer");
|
|
5
|
+
var GenericTransformer_1 = require("../../internal/GenericTransformer");
|
|
5
6
|
var CreateIsPruneTransformer;
|
|
6
7
|
(function (CreateIsPruneTransformer) {
|
|
7
|
-
function
|
|
8
|
-
var _a;
|
|
9
|
-
if (!((_a = expression.typeArguments) === null || _a === void 0 ? void 0 : _a[0]))
|
|
10
|
-
throw new Error("Error on typia.isPrune(): generic argument is not specified.");
|
|
11
|
-
var type = project.checker.getTypeFromTypeNode(expression.typeArguments[0]);
|
|
12
|
-
if (type.isTypeParameter())
|
|
13
|
-
throw new Error("Error on typia.isPrune(): non-specified generic argument.");
|
|
14
|
-
return IsPruneProgrammer_1.IsPruneProgrammer.generate(project, modulo)(type);
|
|
15
|
-
}
|
|
16
|
-
CreateIsPruneTransformer.transform = transform;
|
|
8
|
+
CreateIsPruneTransformer.transform = GenericTransformer_1.GenericTransformer.factory("createIsPrune")(function (project, modulo) { return IsPruneProgrammer_1.IsPruneProgrammer.generate(project, modulo); });
|
|
17
9
|
})(CreateIsPruneTransformer = exports.CreateIsPruneTransformer || (exports.CreateIsPruneTransformer = {}));
|
|
18
10
|
//# sourceMappingURL=CreateIsPruneTransformer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateIsPruneTransformer.js","sourceRoot":"","sources":["../../../../src/transformers/features/miscellaneous/CreateIsPruneTransformer.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"CreateIsPruneTransformer.js","sourceRoot":"","sources":["../../../../src/transformers/features/miscellaneous/CreateIsPruneTransformer.ts"],"names":[],"mappings":";;;AAAA,4EAA2E;AAE3E,wEAAuE;AAEvE,IAAiB,wBAAwB,CAIxC;AAJD,WAAiB,wBAAwB;IACxB,kCAAS,GAAG,uCAAkB,CAAC,OAAO,CAAC,eAAe,CAAC,CAChE,UAAC,OAAO,EAAE,MAAM,IAAK,OAAA,qCAAiB,CAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC,EAA3C,CAA2C,CACnE,CAAC;AACN,CAAC,EAJgB,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QAIxC"}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import ts from "typescript";
|
|
2
|
-
import { IProject } from "../../IProject";
|
|
3
1
|
export declare namespace CreatePruneTransformer {
|
|
4
|
-
|
|
2
|
+
const transform: (project: import("../../IProject").IProject, modulo: import("typescript").LeftHandSideExpression, expression: import("typescript").CallExpression) => import("typescript").ArrowFunction;
|
|
5
3
|
}
|
|
@@ -2,17 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CreatePruneTransformer = void 0;
|
|
4
4
|
var PruneProgrammer_1 = require("../../../programmers/PruneProgrammer");
|
|
5
|
+
var GenericTransformer_1 = require("../../internal/GenericTransformer");
|
|
5
6
|
var CreatePruneTransformer;
|
|
6
7
|
(function (CreatePruneTransformer) {
|
|
7
|
-
function
|
|
8
|
-
var _a;
|
|
9
|
-
if (!((_a = expression.typeArguments) === null || _a === void 0 ? void 0 : _a[0]))
|
|
10
|
-
throw new Error("Error on typia.prune(): generic argument is not specified.");
|
|
11
|
-
var type = project.checker.getTypeFromTypeNode(expression.typeArguments[0]);
|
|
12
|
-
if (type.isTypeParameter())
|
|
13
|
-
throw new Error("Error on typia.prune(): non-specified generic argument.");
|
|
14
|
-
return PruneProgrammer_1.PruneProgrammer.generate(project, modulo)(type);
|
|
15
|
-
}
|
|
16
|
-
CreatePruneTransformer.transform = transform;
|
|
8
|
+
CreatePruneTransformer.transform = GenericTransformer_1.GenericTransformer.factory("createPrune")(function (project, modulo) { return PruneProgrammer_1.PruneProgrammer.generate(project, modulo); });
|
|
17
9
|
})(CreatePruneTransformer = exports.CreatePruneTransformer || (exports.CreatePruneTransformer = {}));
|
|
18
10
|
//# sourceMappingURL=CreatePruneTransformer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreatePruneTransformer.js","sourceRoot":"","sources":["../../../../src/transformers/features/miscellaneous/CreatePruneTransformer.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"CreatePruneTransformer.js","sourceRoot":"","sources":["../../../../src/transformers/features/miscellaneous/CreatePruneTransformer.ts"],"names":[],"mappings":";;;AAAA,wEAAuE;AAEvE,wEAAuE;AAEvE,IAAiB,sBAAsB,CAItC;AAJD,WAAiB,sBAAsB;IACtB,gCAAS,GAAG,uCAAkB,CAAC,OAAO,CAAC,aAAa,CAAC,CAC9D,UAAC,OAAO,EAAE,MAAM,IAAK,OAAA,iCAAe,CAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC,EAAzC,CAAyC,CACjE,CAAC;AACN,CAAC,EAJgB,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAItC"}
|
|
@@ -19,10 +19,11 @@ var CreateRandomTransformer;
|
|
|
19
19
|
var _a;
|
|
20
20
|
if (!((_a = expression.typeArguments) === null || _a === void 0 ? void 0 : _a[0]))
|
|
21
21
|
throw new Error("Error on typia.createRandom(): generic argument is not specified.");
|
|
22
|
-
var
|
|
22
|
+
var node = expression.typeArguments[0];
|
|
23
|
+
var type = project.checker.getTypeFromTypeNode(node);
|
|
23
24
|
if (type.isTypeParameter())
|
|
24
25
|
throw new Error("Error on typia.createRandom(): non-specified generic argument.");
|
|
25
|
-
return RandomProgrammer_1.RandomProgrammer.generate(__assign(__assign({}, project), { options: __assign(__assign({}, project.options), { functional: false, numeric: false }) }), modulo)(type);
|
|
26
|
+
return RandomProgrammer_1.RandomProgrammer.generate(__assign(__assign({}, project), { options: __assign(__assign({}, project.options), { functional: false, numeric: false }) }), modulo)(type, node.getText());
|
|
26
27
|
}
|
|
27
28
|
CreateRandomTransformer.transform = transform;
|
|
28
29
|
})(CreateRandomTransformer = exports.CreateRandomTransformer || (exports.CreateRandomTransformer = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateRandomGenerator.js","sourceRoot":"","sources":["../../../../src/transformers/features/miscellaneous/CreateRandomGenerator.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAEA,0EAAyE;AAIzE,IAAiB,uBAAuB,
|
|
1
|
+
{"version":3,"file":"CreateRandomGenerator.js","sourceRoot":"","sources":["../../../../src/transformers/features/miscellaneous/CreateRandomGenerator.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAEA,0EAAyE;AAIzE,IAAiB,uBAAuB,CA8BvC;AA9BD,WAAiB,uBAAuB;IACpC,SAAgB,SAAS,CACrB,OAAiB,EACjB,MAAiC,EACjC,UAA6B;;QAG7B,IAAI,CAAC,CAAA,MAAA,UAAU,CAAC,aAAa,0CAAG,CAAC,CAAC,CAAA;YAC9B,MAAM,IAAI,KAAK,qEAA6B,CAAC;QAGjD,IAAM,IAAI,GAAgB,UAAU,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;QACtD,IAAM,IAAI,GAAY,OAAO,CAAC,OAAO,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC;QAEhE,IAAI,IAAI,CAAC,eAAe,EAAE;YACtB,MAAM,IAAI,KAAK,kEAAmC,CAAC;QAGvD,OAAO,mCAAgB,CAAC,QAAQ,uBAErB,OAAO,KACV,OAAO,wBACA,OAAO,CAAC,OAAO,KAClB,UAAU,EAAE,KAAK,EACjB,OAAO,EAAE,KAAK,QAGtB,MAAM,CACT,CAAC,IAAI,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;IAC5B,CAAC;IA5Be,iCAAS,YA4BxB,CAAA;AACL,CAAC,EA9BgB,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QA8BvC"}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import ts from "typescript";
|
|
2
|
-
import { IProject } from "../../IProject";
|
|
3
1
|
export declare namespace CreateValidateCloneTransformer {
|
|
4
|
-
|
|
2
|
+
const transform: (project: import("../../IProject").IProject, modulo: import("typescript").LeftHandSideExpression, expression: import("typescript").CallExpression) => import("typescript").ArrowFunction;
|
|
5
3
|
}
|
|
@@ -2,17 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CreateValidateCloneTransformer = void 0;
|
|
4
4
|
var ValidateCloneProgrammer_1 = require("../../../programmers/ValidateCloneProgrammer");
|
|
5
|
+
var GenericTransformer_1 = require("../../internal/GenericTransformer");
|
|
5
6
|
var CreateValidateCloneTransformer;
|
|
6
7
|
(function (CreateValidateCloneTransformer) {
|
|
7
|
-
function
|
|
8
|
-
var _a;
|
|
9
|
-
if (!((_a = expression.typeArguments) === null || _a === void 0 ? void 0 : _a[0]))
|
|
10
|
-
throw new Error("Error on typia.validateClone(): generic argument is not specified.");
|
|
11
|
-
var type = project.checker.getTypeFromTypeNode(expression.typeArguments[0]);
|
|
12
|
-
if (type.isTypeParameter())
|
|
13
|
-
throw new Error("Error on typia.validateClone(): non-specified generic argument.");
|
|
14
|
-
return ValidateCloneProgrammer_1.ValidateCloneProgrammer.generate(project, modulo)(type);
|
|
15
|
-
}
|
|
16
|
-
CreateValidateCloneTransformer.transform = transform;
|
|
8
|
+
CreateValidateCloneTransformer.transform = GenericTransformer_1.GenericTransformer.factory("createValidateClone")(function (project, modulo) { return ValidateCloneProgrammer_1.ValidateCloneProgrammer.generate(project, modulo); });
|
|
17
9
|
})(CreateValidateCloneTransformer = exports.CreateValidateCloneTransformer || (exports.CreateValidateCloneTransformer = {}));
|
|
18
10
|
//# sourceMappingURL=CreateValidateCloneTransformer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateValidateCloneTransformer.js","sourceRoot":"","sources":["../../../../src/transformers/features/miscellaneous/CreateValidateCloneTransformer.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"CreateValidateCloneTransformer.js","sourceRoot":"","sources":["../../../../src/transformers/features/miscellaneous/CreateValidateCloneTransformer.ts"],"names":[],"mappings":";;;AAAA,wFAAuF;AAEvF,wEAAuE;AAEvE,IAAiB,8BAA8B,CAI9C;AAJD,WAAiB,8BAA8B;IAC9B,wCAAS,GAAG,uCAAkB,CAAC,OAAO,CAAC,qBAAqB,CAAC,CACtE,UAAC,OAAO,EAAE,MAAM,IAAK,OAAA,iDAAuB,CAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC,EAAjD,CAAiD,CACzE,CAAC;AACN,CAAC,EAJgB,8BAA8B,GAA9B,sCAA8B,KAA9B,sCAA8B,QAI9C"}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import ts from "typescript";
|
|
2
|
-
import { IProject } from "../../IProject";
|
|
3
1
|
export declare namespace CreateValidatePruneTransformer {
|
|
4
|
-
|
|
2
|
+
const transform: (project: import("../../IProject").IProject, modulo: import("typescript").LeftHandSideExpression, expression: import("typescript").CallExpression) => import("typescript").ArrowFunction;
|
|
5
3
|
}
|
|
@@ -2,17 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CreateValidatePruneTransformer = void 0;
|
|
4
4
|
var ValidatePruneProgrammer_1 = require("../../../programmers/ValidatePruneProgrammer");
|
|
5
|
+
var GenericTransformer_1 = require("../../internal/GenericTransformer");
|
|
5
6
|
var CreateValidatePruneTransformer;
|
|
6
7
|
(function (CreateValidatePruneTransformer) {
|
|
7
|
-
function
|
|
8
|
-
var _a;
|
|
9
|
-
if (!((_a = expression.typeArguments) === null || _a === void 0 ? void 0 : _a[0]))
|
|
10
|
-
throw new Error("Error on typia.validatePrune(): generic argument is not specified.");
|
|
11
|
-
var type = project.checker.getTypeFromTypeNode(expression.typeArguments[0]);
|
|
12
|
-
if (type.isTypeParameter())
|
|
13
|
-
throw new Error("Error on typia.validatePrune(): non-specified generic argument.");
|
|
14
|
-
return ValidatePruneProgrammer_1.ValidatePruneProgrammer.generate(project, modulo)(type);
|
|
15
|
-
}
|
|
16
|
-
CreateValidatePruneTransformer.transform = transform;
|
|
8
|
+
CreateValidatePruneTransformer.transform = GenericTransformer_1.GenericTransformer.factory("createValidatePrune")(function (project, modulo) { return ValidatePruneProgrammer_1.ValidatePruneProgrammer.generate(project, modulo); });
|
|
17
9
|
})(CreateValidatePruneTransformer = exports.CreateValidatePruneTransformer || (exports.CreateValidatePruneTransformer = {}));
|
|
18
10
|
//# sourceMappingURL=CreateValidatePruneTransformer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateValidatePruneTransformer.js","sourceRoot":"","sources":["../../../../src/transformers/features/miscellaneous/CreateValidatePruneTransformer.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"CreateValidatePruneTransformer.js","sourceRoot":"","sources":["../../../../src/transformers/features/miscellaneous/CreateValidatePruneTransformer.ts"],"names":[],"mappings":";;;AAAA,wFAAuF;AAEvF,wEAAuE;AAEvE,IAAiB,8BAA8B,CAI9C;AAJD,WAAiB,8BAA8B;IAC9B,wCAAS,GAAG,uCAAkB,CAAC,OAAO,CAAC,qBAAqB,CAAC,CACtE,UAAC,OAAO,EAAE,MAAM,IAAK,OAAA,iDAAuB,CAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC,EAAjD,CAAiD,CACzE,CAAC;AACN,CAAC,EAJgB,8BAA8B,GAA9B,sCAA8B,KAA9B,sCAA8B,QAI9C"}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import ts from "typescript";
|
|
2
|
-
import { IProject } from "../../IProject";
|
|
3
1
|
export declare namespace IsCloneTransformer {
|
|
4
|
-
|
|
2
|
+
const transform: (project: import("../../IProject").IProject, modulo: import("typescript").LeftHandSideExpression, expression: import("typescript").CallExpression) => import("typescript").CallExpression;
|
|
5
3
|
}
|
|
@@ -1,23 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.IsCloneTransformer = void 0;
|
|
7
|
-
var typescript_1 = __importDefault(require("typescript"));
|
|
8
4
|
var IsCloneProgrammer_1 = require("../../../programmers/IsCloneProgrammer");
|
|
5
|
+
var GenericTransformer_1 = require("../../internal/GenericTransformer");
|
|
9
6
|
var IsCloneTransformer;
|
|
10
7
|
(function (IsCloneTransformer) {
|
|
11
|
-
function
|
|
12
|
-
if (expression.arguments.length !== 1)
|
|
13
|
-
throw new Error("Error on typia.isClone(): no input value.");
|
|
14
|
-
var type = expression.typeArguments && expression.typeArguments[0]
|
|
15
|
-
? project.checker.getTypeFromTypeNode(expression.typeArguments[0])
|
|
16
|
-
: project.checker.getTypeAtLocation(expression.arguments[0]);
|
|
17
|
-
if (type.isTypeParameter())
|
|
18
|
-
throw new Error("Error on typia.isClone(): non-specified generic argument.");
|
|
19
|
-
return typescript_1.default.factory.createCallExpression(IsCloneProgrammer_1.IsCloneProgrammer.generate(project, modulo)(type), undefined, [expression.arguments[0]]);
|
|
20
|
-
}
|
|
21
|
-
IsCloneTransformer.transform = transform;
|
|
8
|
+
IsCloneTransformer.transform = GenericTransformer_1.GenericTransformer.scalar("isClone")(function (project, modulo) { return IsCloneProgrammer_1.IsCloneProgrammer.generate(project, modulo); });
|
|
22
9
|
})(IsCloneTransformer = exports.IsCloneTransformer || (exports.IsCloneTransformer = {}));
|
|
23
10
|
//# sourceMappingURL=IsCloneTransformer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IsCloneTransformer.js","sourceRoot":"","sources":["../../../../src/transformers/features/miscellaneous/IsCloneTransformer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"IsCloneTransformer.js","sourceRoot":"","sources":["../../../../src/transformers/features/miscellaneous/IsCloneTransformer.ts"],"names":[],"mappings":";;;AAAA,4EAA2E;AAE3E,wEAAuE;AAEvE,IAAiB,kBAAkB,CAIlC;AAJD,WAAiB,kBAAkB;IAClB,4BAAS,GAAG,uCAAkB,CAAC,MAAM,CAAC,SAAS,CAAC,CACzD,UAAC,OAAO,EAAE,MAAM,IAAK,OAAA,qCAAiB,CAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC,EAA3C,CAA2C,CACnE,CAAC;AACN,CAAC,EAJgB,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAIlC"}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import ts from "typescript";
|
|
2
|
-
import { IProject } from "../../IProject";
|
|
3
1
|
export declare namespace IsPruneTransformer {
|
|
4
|
-
|
|
2
|
+
const transform: (project: import("../../IProject").IProject, modulo: import("typescript").LeftHandSideExpression, expression: import("typescript").CallExpression) => import("typescript").CallExpression;
|
|
5
3
|
}
|