typia 3.8.0-dev.20230416 → 3.8.0-dev.20230417

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.
Files changed (50) hide show
  1. package/README.md +35 -228
  2. package/lib/factories/TypiaFileFactory.js +9 -4
  3. package/lib/factories/TypiaFileFactory.js.map +1 -1
  4. package/package.json +1 -1
  5. package/src/IRandomGenerator.ts +33 -33
  6. package/src/executable/TypiaGenerateWizard.ts +85 -85
  7. package/src/executable/TypiaSetupWizard.ts +118 -118
  8. package/src/executable/setup/ArgumentParser.ts +45 -45
  9. package/src/executable/setup/CommandExecutor.ts +8 -8
  10. package/src/executable/setup/FileRetriever.ts +22 -22
  11. package/src/executable/setup/PackageManager.ts +71 -71
  12. package/src/executable/setup/PluginConfigurator.ts +59 -59
  13. package/src/executable/typia.ts +52 -52
  14. package/src/factories/IdentifierFactory.ts +59 -59
  15. package/src/factories/MetadataTagFactory.ts +302 -302
  16. package/src/factories/TypiaFileFactory.ts +12 -3
  17. package/src/metadata/ICommentTag.ts +4 -4
  18. package/src/metadata/Metadata.ts +533 -533
  19. package/src/module.ts +2043 -2043
  20. package/src/programmers/AssertProgrammer.ts +284 -284
  21. package/src/programmers/CheckerProgrammer.ts +920 -920
  22. package/src/programmers/LiteralsProgrammer.ts +65 -65
  23. package/src/programmers/RandomProgrammer.ts +413 -413
  24. package/src/programmers/ValidateProgrammer.ts +317 -317
  25. package/src/programmers/helpers/RandomJoiner.ts +161 -161
  26. package/src/programmers/helpers/RandomRanger.ts +216 -216
  27. package/src/programmers/internal/application_native.ts +32 -32
  28. package/src/programmers/internal/check_array.ts +30 -30
  29. package/src/programmers/internal/check_array_length.ts +35 -35
  30. package/src/programmers/internal/check_custom.ts +33 -33
  31. package/src/programmers/internal/check_number.ts +177 -177
  32. package/src/programmers/internal/check_object.ts +55 -55
  33. package/src/programmers/internal/check_string_tags.ts +67 -67
  34. package/src/programmers/internal/check_template.ts +56 -56
  35. package/src/programmers/internal/check_union_array_like.ts +272 -272
  36. package/src/programmers/internal/feature_object_entries.ts +63 -63
  37. package/src/programmers/internal/get_comment_tags.ts +23 -23
  38. package/src/programmers/internal/metadata_to_pattern.ts +34 -34
  39. package/src/programmers/internal/random_custom.ts +30 -30
  40. package/src/programmers/internal/stringify_dynamic_properties.ts +168 -168
  41. package/src/programmers/internal/stringify_regular_properties.ts +84 -84
  42. package/src/transformers/CallExpressionTransformer.ts +174 -174
  43. package/src/transformers/ImportTransformer.ts +66 -66
  44. package/src/transformers/features/miscellaneous/ApplicationTransformer.ts +119 -119
  45. package/src/transformers/features/miscellaneous/CreateRandomTransformer.ts +41 -41
  46. package/src/transformers/features/miscellaneous/LiteralsTransformer.ts +30 -30
  47. package/src/transformers/features/miscellaneous/MetadataTransformer.ts +54 -54
  48. package/src/transformers/features/miscellaneous/RandomTransformer.ts +46 -46
  49. package/src/typings/Customizable.ts +5 -5
  50. package/src/utils/RandomGenerator.ts +93 -93
@@ -1,302 +1,302 @@
1
- import ts from "typescript";
2
-
3
- import { IMetadataTag } from "../metadata/IMetadataTag";
4
- import { Metadata } from "../metadata/Metadata";
5
-
6
- export namespace MetadataTagFactory {
7
- export function generate(
8
- identifier: () => string,
9
- metadata: Metadata,
10
- tagList: ts.JSDocTagInfo[],
11
- ): IMetadataTag[] {
12
- const output: IMetadataTag[] = [];
13
- for (const tag of tagList) {
14
- const elem: IMetadataTag | null = parse(
15
- identifier,
16
- metadata,
17
- tag,
18
- output,
19
- );
20
- if (elem !== null) output.push(elem);
21
- }
22
- return output;
23
- }
24
-
25
- function parse(
26
- identifier: () => string,
27
- metadata: Metadata,
28
- tag: ts.JSDocTagInfo,
29
- output: IMetadataTag[],
30
- ): IMetadataTag | null {
31
- const closure = _PARSER[tag.name];
32
- if (closure === undefined) return null;
33
-
34
- const text = (tag.text || [])[0]?.text;
35
- if (text === undefined)
36
- throw new Error(`${LABEL}: no tag value on ${identifier()}`);
37
-
38
- return closure(identifier, metadata, text, output);
39
- }
40
-
41
- /**
42
- * @internal
43
- */
44
- export const _PARSER: Record<
45
- string,
46
- (
47
- identifier: () => string,
48
- metadata: Metadata,
49
- text: string,
50
- output: IMetadataTag[],
51
- ) => IMetadataTag | null
52
- > = {
53
- /* -----------------------------------------------------------
54
- ARRAY
55
- ----------------------------------------------------------- */
56
- items: (identifier, metadata, text, output) => {
57
- validate(identifier, metadata, output, "items", "array", [
58
- "minItems",
59
- ]);
60
- return {
61
- kind: "items",
62
- value: parse_number(identifier, text),
63
- };
64
- },
65
- minItems: (identifier, metadata, text, output) => {
66
- validate(identifier, metadata, output, "minItems", "array", [
67
- "items",
68
- ]);
69
- return {
70
- kind: "minItems",
71
- value: parse_number(identifier, text),
72
- };
73
- },
74
- maxItems: (identifier, metadata, text, output) => {
75
- validate(identifier, metadata, output, "maxItems", "array", [
76
- "items",
77
- ]);
78
- return {
79
- kind: "maxItems",
80
- value: parse_number(identifier, text),
81
- };
82
- },
83
-
84
- /* -----------------------------------------------------------
85
- NUMBER
86
- ----------------------------------------------------------- */
87
- type: (identifier, metadata, text, output) => {
88
- validate(identifier, metadata, output, "type", "number", []);
89
- if (text !== "int" && text !== "uint")
90
- throw new Error(
91
- `${LABEL}: invalid type tag on "${identifier()}".`,
92
- );
93
- return { kind: "type", value: text };
94
- },
95
- minimum: (identifier, metadata, text, output) => {
96
- validate(identifier, metadata, output, "minimum", "number", [
97
- "exclusiveMinimum",
98
- ]);
99
- return {
100
- kind: "minimum",
101
- value: parse_number(identifier, text),
102
- };
103
- },
104
- maximum: (identifier, metadata, text, output) => {
105
- validate(identifier, metadata, output, "maximum", "number", [
106
- "exclusiveMaximum",
107
- ]);
108
- return {
109
- kind: "maximum",
110
- value: parse_number(identifier, text),
111
- };
112
- },
113
- exclusiveMinimum: (identifier, metadata, text, output) => {
114
- validate(
115
- identifier,
116
- metadata,
117
- output,
118
- "exclusiveMinimum",
119
- "number",
120
- ["minimum"],
121
- );
122
- return {
123
- kind: "exclusiveMinimum",
124
- value: parse_number(identifier, text),
125
- };
126
- },
127
- exclusiveMaximum: (identifier, metadata, text, output) => {
128
- validate(
129
- identifier,
130
- metadata,
131
- output,
132
- "exclusiveMaximum",
133
- "number",
134
- ["maximum"],
135
- );
136
- return {
137
- kind: "exclusiveMaximum",
138
- value: parse_number(identifier, text),
139
- };
140
- },
141
- multipleOf: (identifier, metadata, text, output) => {
142
- validate(identifier, metadata, output, "multipleOf", "number", [
143
- "step",
144
- ]);
145
- return {
146
- kind: "multipleOf",
147
- value: parse_number(identifier, text),
148
- };
149
- },
150
- step: (identifier, metadata, text, output) => {
151
- validate(identifier, metadata, output, "step", "number", [
152
- "multipleOf",
153
- ]);
154
-
155
- const minimum: boolean = output.some(
156
- (tag) =>
157
- tag.kind === "minimum" || tag.kind === "exclusiveMinimum",
158
- );
159
- if (minimum === undefined)
160
- throw new Error(
161
- `${LABEL}: step requires minimum or exclusiveMinimum tag on "${identifier()}".`,
162
- );
163
-
164
- return {
165
- kind: "step",
166
- value: parse_number(identifier, text),
167
- };
168
- },
169
-
170
- /* -----------------------------------------------------------
171
- STRING
172
- ----------------------------------------------------------- */
173
- format: (identifier, metadata, str, output) => {
174
- validate(identifier, metadata, output, "format", "string", [
175
- "pattern",
176
- ]);
177
-
178
- // Ignore arbitrary @format values in the internal metadata,
179
- // these are currently only supported on the typia.application() API.
180
- const value: IMetadataTag.IFormat["value"] | undefined =
181
- FORMATS.get(str);
182
- if (value === undefined) return null;
183
- return {
184
- kind: "format",
185
- value,
186
- };
187
- },
188
- pattern: (identifier, metadata, value, output) => {
189
- validate(identifier, metadata, output, "pattern", "string", [
190
- "format",
191
- ]);
192
- return {
193
- kind: "pattern",
194
- value,
195
- };
196
- },
197
- length: (identifier, metadata, text, output) => {
198
- validate(identifier, metadata, output, "length", "string", [
199
- "minLength",
200
- "maxLength",
201
- ]);
202
- return {
203
- kind: "length",
204
- value: parse_number(identifier, text),
205
- };
206
- },
207
- minLength: (identifier, metadata, text, output) => {
208
- validate(identifier, metadata, output, "minLength", "string", [
209
- "length",
210
- ]);
211
- return {
212
- kind: "minLength",
213
- value: parse_number(identifier, text),
214
- };
215
- },
216
- maxLength: (identifier, metadata, text, output) => {
217
- validate(identifier, metadata, output, "maxLength", "string", [
218
- "length",
219
- ]);
220
- return {
221
- kind: "maxLength",
222
- value: parse_number(identifier, text),
223
- };
224
- },
225
- };
226
- }
227
-
228
- function parse_number(identifier: () => string, str: string): number {
229
- const value: number = Number(str);
230
- if (isNaN(value) === true)
231
- throw new Error(`${LABEL}: invalid number on "${identifier()}".`);
232
- return value;
233
- }
234
-
235
- const LABEL = "Error on typia.MetadataTagFactory.generate()";
236
- const FORMATS: Map<string, IMetadataTag.IFormat["value"]> = new Map([
237
- ["uuid", "uuid"],
238
- ["email", "email"],
239
- ["url", "url"],
240
- ["ipv4", "ipv4"],
241
- ["ipv6", "ipv6"],
242
- ["date", "date"],
243
- ["datetime", "datetime"],
244
- ["date-time", "datetime"],
245
- ["dateTime", "datetime"],
246
- ]);
247
-
248
- const WRONG_TYPE = (
249
- tag: string,
250
- type: "string" | "number" | "array",
251
- identifier: () => string,
252
- ) => `${LABEL}: ${tag} requires ${type} type, but no "${identifier()}".`;
253
-
254
- function validate(
255
- identifier: () => string,
256
- metadata: Metadata,
257
- output: IMetadataTag[],
258
- kind: IMetadataTag["kind"],
259
- type: "array" | "string" | "number",
260
- neighbors: IMetadataTag["kind"][],
261
- ): void {
262
- // TYPE CHECKING
263
- if (type === "array") {
264
- if (has_array(metadata) === false)
265
- throw new Error(WRONG_TYPE(kind, "array", identifier));
266
- } else if (has_atomic(metadata, type) === false)
267
- throw new Error(WRONG_TYPE(kind, type, identifier));
268
-
269
- // DUPLICATED TAG
270
- if (output.some((tag) => tag.kind === kind))
271
- throw new Error(
272
- `${LABEL}: duplicated ${kind} tags on "${identifier()}".`,
273
- );
274
-
275
- // NEIGHBOR TAG
276
- for (const name of neighbors)
277
- if (output.some((tag) => tag.kind === name))
278
- throw new Error(
279
- `${LABEL}: ${kind} and ${name} tags on "${identifier()}".`,
280
- );
281
- }
282
-
283
- function has_atomic(metadata: Metadata, type: "string" | "number"): boolean {
284
- const valid =
285
- type === "number"
286
- ? (atom: string) => atom === type || atom === "bigint"
287
- : (atom: string) => atom === type;
288
- return (
289
- metadata.atomics.find((atom) => valid(atom)) !== undefined ||
290
- metadata.arrays.some((child) => has_atomic(child, type)) ||
291
- metadata.tuples.some((tuple) =>
292
- tuple.some((child) => has_atomic(child, type)),
293
- )
294
- );
295
- }
296
-
297
- function has_array(metadata: Metadata): boolean {
298
- return (
299
- metadata.arrays.length !== 0 ||
300
- metadata.tuples.some((tuple) => tuple.some((child) => has_array(child)))
301
- );
302
- }
1
+ import ts from "typescript";
2
+
3
+ import { IMetadataTag } from "../metadata/IMetadataTag";
4
+ import { Metadata } from "../metadata/Metadata";
5
+
6
+ export namespace MetadataTagFactory {
7
+ export function generate(
8
+ identifier: () => string,
9
+ metadata: Metadata,
10
+ tagList: ts.JSDocTagInfo[],
11
+ ): IMetadataTag[] {
12
+ const output: IMetadataTag[] = [];
13
+ for (const tag of tagList) {
14
+ const elem: IMetadataTag | null = parse(
15
+ identifier,
16
+ metadata,
17
+ tag,
18
+ output,
19
+ );
20
+ if (elem !== null) output.push(elem);
21
+ }
22
+ return output;
23
+ }
24
+
25
+ function parse(
26
+ identifier: () => string,
27
+ metadata: Metadata,
28
+ tag: ts.JSDocTagInfo,
29
+ output: IMetadataTag[],
30
+ ): IMetadataTag | null {
31
+ const closure = _PARSER[tag.name];
32
+ if (closure === undefined) return null;
33
+
34
+ const text = (tag.text || [])[0]?.text;
35
+ if (text === undefined)
36
+ throw new Error(`${LABEL}: no tag value on ${identifier()}`);
37
+
38
+ return closure(identifier, metadata, text, output);
39
+ }
40
+
41
+ /**
42
+ * @internal
43
+ */
44
+ export const _PARSER: Record<
45
+ string,
46
+ (
47
+ identifier: () => string,
48
+ metadata: Metadata,
49
+ text: string,
50
+ output: IMetadataTag[],
51
+ ) => IMetadataTag | null
52
+ > = {
53
+ /* -----------------------------------------------------------
54
+ ARRAY
55
+ ----------------------------------------------------------- */
56
+ items: (identifier, metadata, text, output) => {
57
+ validate(identifier, metadata, output, "items", "array", [
58
+ "minItems",
59
+ ]);
60
+ return {
61
+ kind: "items",
62
+ value: parse_number(identifier, text),
63
+ };
64
+ },
65
+ minItems: (identifier, metadata, text, output) => {
66
+ validate(identifier, metadata, output, "minItems", "array", [
67
+ "items",
68
+ ]);
69
+ return {
70
+ kind: "minItems",
71
+ value: parse_number(identifier, text),
72
+ };
73
+ },
74
+ maxItems: (identifier, metadata, text, output) => {
75
+ validate(identifier, metadata, output, "maxItems", "array", [
76
+ "items",
77
+ ]);
78
+ return {
79
+ kind: "maxItems",
80
+ value: parse_number(identifier, text),
81
+ };
82
+ },
83
+
84
+ /* -----------------------------------------------------------
85
+ NUMBER
86
+ ----------------------------------------------------------- */
87
+ type: (identifier, metadata, text, output) => {
88
+ validate(identifier, metadata, output, "type", "number", []);
89
+ if (text !== "int" && text !== "uint")
90
+ throw new Error(
91
+ `${LABEL}: invalid type tag on "${identifier()}".`,
92
+ );
93
+ return { kind: "type", value: text };
94
+ },
95
+ minimum: (identifier, metadata, text, output) => {
96
+ validate(identifier, metadata, output, "minimum", "number", [
97
+ "exclusiveMinimum",
98
+ ]);
99
+ return {
100
+ kind: "minimum",
101
+ value: parse_number(identifier, text),
102
+ };
103
+ },
104
+ maximum: (identifier, metadata, text, output) => {
105
+ validate(identifier, metadata, output, "maximum", "number", [
106
+ "exclusiveMaximum",
107
+ ]);
108
+ return {
109
+ kind: "maximum",
110
+ value: parse_number(identifier, text),
111
+ };
112
+ },
113
+ exclusiveMinimum: (identifier, metadata, text, output) => {
114
+ validate(
115
+ identifier,
116
+ metadata,
117
+ output,
118
+ "exclusiveMinimum",
119
+ "number",
120
+ ["minimum"],
121
+ );
122
+ return {
123
+ kind: "exclusiveMinimum",
124
+ value: parse_number(identifier, text),
125
+ };
126
+ },
127
+ exclusiveMaximum: (identifier, metadata, text, output) => {
128
+ validate(
129
+ identifier,
130
+ metadata,
131
+ output,
132
+ "exclusiveMaximum",
133
+ "number",
134
+ ["maximum"],
135
+ );
136
+ return {
137
+ kind: "exclusiveMaximum",
138
+ value: parse_number(identifier, text),
139
+ };
140
+ },
141
+ multipleOf: (identifier, metadata, text, output) => {
142
+ validate(identifier, metadata, output, "multipleOf", "number", [
143
+ "step",
144
+ ]);
145
+ return {
146
+ kind: "multipleOf",
147
+ value: parse_number(identifier, text),
148
+ };
149
+ },
150
+ step: (identifier, metadata, text, output) => {
151
+ validate(identifier, metadata, output, "step", "number", [
152
+ "multipleOf",
153
+ ]);
154
+
155
+ const minimum: boolean = output.some(
156
+ (tag) =>
157
+ tag.kind === "minimum" || tag.kind === "exclusiveMinimum",
158
+ );
159
+ if (minimum === undefined)
160
+ throw new Error(
161
+ `${LABEL}: step requires minimum or exclusiveMinimum tag on "${identifier()}".`,
162
+ );
163
+
164
+ return {
165
+ kind: "step",
166
+ value: parse_number(identifier, text),
167
+ };
168
+ },
169
+
170
+ /* -----------------------------------------------------------
171
+ STRING
172
+ ----------------------------------------------------------- */
173
+ format: (identifier, metadata, str, output) => {
174
+ validate(identifier, metadata, output, "format", "string", [
175
+ "pattern",
176
+ ]);
177
+
178
+ // Ignore arbitrary @format values in the internal metadata,
179
+ // these are currently only supported on the typia.application() API.
180
+ const value: IMetadataTag.IFormat["value"] | undefined =
181
+ FORMATS.get(str);
182
+ if (value === undefined) return null;
183
+ return {
184
+ kind: "format",
185
+ value,
186
+ };
187
+ },
188
+ pattern: (identifier, metadata, value, output) => {
189
+ validate(identifier, metadata, output, "pattern", "string", [
190
+ "format",
191
+ ]);
192
+ return {
193
+ kind: "pattern",
194
+ value,
195
+ };
196
+ },
197
+ length: (identifier, metadata, text, output) => {
198
+ validate(identifier, metadata, output, "length", "string", [
199
+ "minLength",
200
+ "maxLength",
201
+ ]);
202
+ return {
203
+ kind: "length",
204
+ value: parse_number(identifier, text),
205
+ };
206
+ },
207
+ minLength: (identifier, metadata, text, output) => {
208
+ validate(identifier, metadata, output, "minLength", "string", [
209
+ "length",
210
+ ]);
211
+ return {
212
+ kind: "minLength",
213
+ value: parse_number(identifier, text),
214
+ };
215
+ },
216
+ maxLength: (identifier, metadata, text, output) => {
217
+ validate(identifier, metadata, output, "maxLength", "string", [
218
+ "length",
219
+ ]);
220
+ return {
221
+ kind: "maxLength",
222
+ value: parse_number(identifier, text),
223
+ };
224
+ },
225
+ };
226
+ }
227
+
228
+ function parse_number(identifier: () => string, str: string): number {
229
+ const value: number = Number(str);
230
+ if (isNaN(value) === true)
231
+ throw new Error(`${LABEL}: invalid number on "${identifier()}".`);
232
+ return value;
233
+ }
234
+
235
+ const LABEL = "Error on typia.MetadataTagFactory.generate()";
236
+ const FORMATS: Map<string, IMetadataTag.IFormat["value"]> = new Map([
237
+ ["uuid", "uuid"],
238
+ ["email", "email"],
239
+ ["url", "url"],
240
+ ["ipv4", "ipv4"],
241
+ ["ipv6", "ipv6"],
242
+ ["date", "date"],
243
+ ["datetime", "datetime"],
244
+ ["date-time", "datetime"],
245
+ ["dateTime", "datetime"],
246
+ ]);
247
+
248
+ const WRONG_TYPE = (
249
+ tag: string,
250
+ type: "string" | "number" | "array",
251
+ identifier: () => string,
252
+ ) => `${LABEL}: ${tag} requires ${type} type, but no "${identifier()}".`;
253
+
254
+ function validate(
255
+ identifier: () => string,
256
+ metadata: Metadata,
257
+ output: IMetadataTag[],
258
+ kind: IMetadataTag["kind"],
259
+ type: "array" | "string" | "number",
260
+ neighbors: IMetadataTag["kind"][],
261
+ ): void {
262
+ // TYPE CHECKING
263
+ if (type === "array") {
264
+ if (has_array(metadata) === false)
265
+ throw new Error(WRONG_TYPE(kind, "array", identifier));
266
+ } else if (has_atomic(metadata, type) === false)
267
+ throw new Error(WRONG_TYPE(kind, type, identifier));
268
+
269
+ // DUPLICATED TAG
270
+ if (output.some((tag) => tag.kind === kind))
271
+ throw new Error(
272
+ `${LABEL}: duplicated ${kind} tags on "${identifier()}".`,
273
+ );
274
+
275
+ // NEIGHBOR TAG
276
+ for (const name of neighbors)
277
+ if (output.some((tag) => tag.kind === name))
278
+ throw new Error(
279
+ `${LABEL}: ${kind} and ${name} tags on "${identifier()}".`,
280
+ );
281
+ }
282
+
283
+ function has_atomic(metadata: Metadata, type: "string" | "number"): boolean {
284
+ const valid =
285
+ type === "number"
286
+ ? (atom: string) => atom === type || atom === "bigint"
287
+ : (atom: string) => atom === type;
288
+ return (
289
+ metadata.atomics.find((atom) => valid(atom)) !== undefined ||
290
+ metadata.arrays.some((child) => has_atomic(child, type)) ||
291
+ metadata.tuples.some((tuple) =>
292
+ tuple.some((child) => has_atomic(child, type)),
293
+ )
294
+ );
295
+ }
296
+
297
+ function has_array(metadata: Metadata): boolean {
298
+ return (
299
+ metadata.arrays.length !== 0 ||
300
+ metadata.tuples.some((tuple) => tuple.some((child) => has_array(child)))
301
+ );
302
+ }
@@ -35,7 +35,16 @@ export namespace TypiaFileFactory {
35
35
  }
36
36
 
37
37
  // CREATE PROGRAM
38
- const { config } = ts.readConfigFile(props.project, ts.sys.readFile);
38
+ const { options: compilerOptions } = ts.parseJsonConfigFileContent(
39
+ ts.readConfigFile(props.project, ts.sys.readFile).config,
40
+ {
41
+ fileExists: ts.sys.fileExists,
42
+ readFile: ts.sys.readFile,
43
+ readDirectory: ts.sys.readDirectory,
44
+ useCaseSensitiveFileNames: ts.sys.useCaseSensitiveFileNames,
45
+ },
46
+ path.dirname(props.project),
47
+ );
39
48
 
40
49
  const program: ts.Program = ts.createProgram(
41
50
  await (async () => {
@@ -43,7 +52,7 @@ export namespace TypiaFileFactory {
43
52
  await gather(props)(container)(props.input)(props.output);
44
53
  return container;
45
54
  })(),
46
- config.compilerOptions,
55
+ compilerOptions,
47
56
  );
48
57
 
49
58
  // DO TRANSFORM
@@ -59,7 +68,7 @@ export namespace TypiaFileFactory {
59
68
  ImportTransformer.transform(props.input)(props.output),
60
69
  transform(
61
70
  program,
62
- (config.compilerOptions.plugins ?? []).find(
71
+ ((compilerOptions.plugins as any[]) ?? []).find(
63
72
  (p: any) =>
64
73
  p.transform === "typia/lib/transform" ||
65
74
  p.transform === "../src/transform.ts",
@@ -1,4 +1,4 @@
1
- export interface ICommentTag {
2
- name: string;
3
- value?: string;
4
- }
1
+ export interface ICommentTag {
2
+ name: string;
3
+ value?: string;
4
+ }