typia 9.6.1 → 9.7.0
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/CamelCase.d.mts +1 -1
- package/lib/CamelCase.d.ts +1 -1
- package/lib/IRandomGenerator.d.mts +240 -0
- package/lib/IRandomGenerator.d.ts +240 -0
- package/lib/PascalCase.d.mts +1 -1
- package/lib/PascalCase.d.ts +1 -1
- package/lib/Primitive.d.mts +8 -8
- package/lib/Primitive.d.ts +8 -8
- package/lib/Resolved.d.mts +9 -9
- package/lib/Resolved.d.ts +9 -9
- package/lib/SnakeCase.d.mts +1 -1
- package/lib/SnakeCase.d.ts +1 -1
- package/lib/factories/TypeFactory.d.mts +1 -0
- package/lib/factories/TypeFactory.d.ts +1 -0
- package/lib/factories/TypeFactory.js +1 -1
- package/lib/factories/TypeFactory.js.map +1 -1
- package/lib/factories/TypeFactory.mjs +1 -1
- package/lib/factories/internal/metadata/iterate_metadata_map.js +2 -3
- package/lib/factories/internal/metadata/iterate_metadata_map.js.map +1 -1
- package/lib/factories/internal/metadata/iterate_metadata_map.mjs +2 -3
- package/lib/factories/internal/metadata/iterate_metadata_set.js +2 -3
- package/lib/factories/internal/metadata/iterate_metadata_set.js.map +1 -1
- package/lib/factories/internal/metadata/iterate_metadata_set.mjs +2 -3
- package/lib/functional.js +1 -1
- package/lib/functional.js.map +1 -1
- package/lib/functional.mjs +1 -1
- package/lib/http.d.mts +23 -23
- package/lib/http.d.ts +23 -23
- package/lib/internal/_llmApplicationFinalize.d.mts +1 -1
- package/lib/internal/_llmApplicationFinalize.d.ts +1 -1
- package/lib/internal/_llmApplicationFinalize.js +14 -11
- package/lib/internal/_llmApplicationFinalize.js.map +1 -1
- package/lib/internal/_llmApplicationFinalize.mjs +13 -9
- package/lib/json.d.mts +16 -16
- package/lib/json.d.ts +16 -16
- package/lib/llm.d.mts +18 -18
- package/lib/llm.d.ts +18 -18
- package/lib/llm.js.map +1 -1
- package/lib/misc.d.mts +23 -23
- package/lib/misc.d.ts +23 -23
- package/lib/module.d.mts +75 -75
- package/lib/module.d.ts +75 -75
- package/lib/module.js.map +1 -1
- package/lib/transformers/features/llm/LlmApplicationTransformer.js +8 -9
- package/lib/transformers/features/llm/LlmApplicationTransformer.js.map +1 -1
- package/lib/transformers/features/llm/LlmApplicationTransformer.mjs +8 -9
- package/package.json +2 -2
- package/src/CamelCase.ts +1 -1
- package/src/IRandomGenerator.ts +284 -6
- package/src/PascalCase.ts +1 -1
- package/src/Primitive.ts +8 -8
- package/src/Resolved.ts +9 -9
- package/src/SnakeCase.ts +1 -1
- package/src/factories/TypeFactory.ts +5 -3
- package/src/factories/internal/metadata/iterate_metadata_map.ts +3 -3
- package/src/factories/internal/metadata/iterate_metadata_set.ts +2 -3
- package/src/functional.ts +1 -1
- package/src/http.ts +23 -23
- package/src/internal/_llmApplicationFinalize.ts +25 -11
- package/src/json.ts +16 -16
- package/src/llm.ts +26 -18
- package/src/misc.ts +23 -23
- package/src/module.ts +76 -75
- package/src/transformers/features/llm/LlmApplicationTransformer.ts +18 -22
package/lib/module.d.ts
CHANGED
|
@@ -30,24 +30,24 @@ export * from "./IReadableURLSearchParams";
|
|
|
30
30
|
/**
|
|
31
31
|
* Asserts a value type.
|
|
32
32
|
*
|
|
33
|
-
* Asserts a parametric value type and throws a {@link TypeGuardError} with detailed
|
|
34
|
-
* reason, if the parametric value is not following the type `T`. Otherwise, the
|
|
35
|
-
* value is following the type `T`,
|
|
33
|
+
* Asserts a parametric value type and throws a {@link TypeGuardError} with a detailed
|
|
34
|
+
* reason, if the parametric value is not following the type `T`. Otherwise, if the
|
|
35
|
+
* value is following the type `T`, the input parameter will be returned.
|
|
36
36
|
*
|
|
37
37
|
* If what you want is not asserting but just knowing whether the parametric value is
|
|
38
38
|
* following the type `T` or not, you can choose the {@link is} function instead.
|
|
39
|
-
* Otherwise you want to know all the errors, {@link validate} is the way to go.
|
|
39
|
+
* Otherwise, if you want to know all the errors, {@link validate} is the way to go.
|
|
40
40
|
* Also, if you want to automatically cast the parametric value to the type `T`
|
|
41
|
-
* when no problem (perform the assertion guard of type).
|
|
41
|
+
* when there is no problem (perform the assertion guard of type).
|
|
42
42
|
*
|
|
43
|
-
* On the other
|
|
43
|
+
* On the other hand, if you don't want to allow any superfluous property that is not
|
|
44
44
|
* enrolled to the type `T`, you can use {@link assertEquals} function instead.
|
|
45
45
|
*
|
|
46
46
|
* @template T Type of the input value
|
|
47
47
|
* @param input A value to be asserted
|
|
48
48
|
* @param errorFactory Custom error factory. Default is `TypeGuardError`
|
|
49
49
|
* @returns Parametric input value
|
|
50
|
-
* @throws A {@link TypeGuardError} instance with detailed reason
|
|
50
|
+
* @throws A {@link TypeGuardError} instance with a detailed reason
|
|
51
51
|
*
|
|
52
52
|
* @author Jeongho Nam - https://github.com/samchon
|
|
53
53
|
*/
|
|
@@ -55,22 +55,22 @@ export declare function assert<T>(input: T, errorFactory?: undefined | ((props:
|
|
|
55
55
|
/**
|
|
56
56
|
* Asserts a value type.
|
|
57
57
|
*
|
|
58
|
-
* Asserts a parametric value type and throws a {@link TypeGuardError} with detailed
|
|
59
|
-
* reason, if the parametric value is not following the type `T`. Otherwise, the
|
|
60
|
-
* value is following the type `T`,
|
|
58
|
+
* Asserts a parametric value type and throws a {@link TypeGuardError} with a detailed
|
|
59
|
+
* reason, if the parametric value is not following the type `T`. Otherwise, if the
|
|
60
|
+
* value is following the type `T`, the input parameter will be returned.
|
|
61
61
|
*
|
|
62
62
|
* If what you want is not asserting but just knowing whether the parametric value is
|
|
63
63
|
* following the type `T` or not, you can choose the {@link is} function instead.
|
|
64
|
-
* Otherwise, you want to know all the errors, {@link validate} is the way to go.
|
|
64
|
+
* Otherwise, if you want to know all the errors, {@link validate} is the way to go.
|
|
65
65
|
*
|
|
66
|
-
* On the other
|
|
66
|
+
* On the other hand, if you don't want to allow any superfluous property that is not
|
|
67
67
|
* enrolled to the type `T`, you can use {@link assertEquals} function instead.
|
|
68
68
|
*
|
|
69
69
|
* @template T Type of the input value
|
|
70
70
|
* @param input A value to be asserted
|
|
71
71
|
* @param errorFactory Custom error factory. Default is `TypeGuardError`
|
|
72
72
|
* @returns Parametric input value casted as `T`
|
|
73
|
-
* @throws A {@link TypeGuardError} instance with detailed reason
|
|
73
|
+
* @throws A {@link TypeGuardError} instance with a detailed reason
|
|
74
74
|
*
|
|
75
75
|
* @author Jeongho Nam - https://github.com/samchon
|
|
76
76
|
*/
|
|
@@ -78,25 +78,25 @@ export declare function assert<T>(input: unknown, errorFactory?: undefined | ((p
|
|
|
78
78
|
/**
|
|
79
79
|
* Assertion guard of a value type.
|
|
80
80
|
*
|
|
81
|
-
* Asserts a parametric value type and throws a {@link TypeGuardError} with detailed
|
|
82
|
-
* reason, if the parametric value is not following the type `T`. Otherwise, the
|
|
83
|
-
* value is following the type `T`, nothing
|
|
84
|
-
*
|
|
81
|
+
* Asserts a parametric value type and throws a {@link TypeGuardError} with a detailed
|
|
82
|
+
* reason, if the parametric value is not following the type `T`. Otherwise, if the
|
|
83
|
+
* value is following the type `T`, nothing will be returned, but the input value
|
|
84
|
+
* will be automatically casted to the type `T`. This is the concept of
|
|
85
85
|
* "Assertion Guard" of a value type.
|
|
86
86
|
*
|
|
87
87
|
* If what you want is not asserting but just knowing whether the parametric value is
|
|
88
88
|
* following the type `T` or not, you can choose the {@link is} function instead.
|
|
89
|
-
* Otherwise you want to know all the errors, {@link validate} is the way to go.
|
|
90
|
-
* Also, if you want to
|
|
89
|
+
* Otherwise, if you want to know all the errors, {@link validate} is the way to go.
|
|
90
|
+
* Also, if you want to return the parametric value when there is no problem, you can use
|
|
91
91
|
* {@link assert} function instead.
|
|
92
92
|
*
|
|
93
|
-
* On the other
|
|
93
|
+
* On the other hand, if you don't want to allow any superfluous property that is not
|
|
94
94
|
* enrolled to the type `T`, you can use {@link assertGuardEquals} function instead.
|
|
95
95
|
*
|
|
96
96
|
* @template T Type of the input value
|
|
97
97
|
* @param input A value to be asserted
|
|
98
98
|
* @param errorFactory Custom error factory. Default is `TypeGuardError`
|
|
99
|
-
* @throws A {@link TypeGuardError} instance with detailed reason
|
|
99
|
+
* @throws A {@link TypeGuardError} instance with a detailed reason
|
|
100
100
|
*
|
|
101
101
|
* @author Jeongho Nam - https://github.com/samchon
|
|
102
102
|
*/
|
|
@@ -104,25 +104,25 @@ export declare function assertGuard<T>(input: T, errorFactory?: undefined | ((pr
|
|
|
104
104
|
/**
|
|
105
105
|
* Assertion guard of a value type.
|
|
106
106
|
*
|
|
107
|
-
* Asserts a parametric value type and throws a {@link TypeGuardError} with detailed
|
|
108
|
-
* reason, if the parametric value is not following the type `T`. Otherwise, the
|
|
109
|
-
* value is following the type `T`, nothing
|
|
110
|
-
*
|
|
107
|
+
* Asserts a parametric value type and throws a {@link TypeGuardError} with a detailed
|
|
108
|
+
* reason, if the parametric value is not following the type `T`. Otherwise, if the
|
|
109
|
+
* value is following the type `T`, nothing will be returned, but the input value
|
|
110
|
+
* will be automatically casted to the type `T`. This is the concept of
|
|
111
111
|
* "Assertion Guard" of a value type.
|
|
112
112
|
*
|
|
113
113
|
* If what you want is not asserting but just knowing whether the parametric value is
|
|
114
114
|
* following the type `T` or not, you can choose the {@link is} function instead.
|
|
115
|
-
* Otherwise you want to know all the errors, {@link validate} is the way to go.
|
|
116
|
-
* Also, if you want to
|
|
115
|
+
* Otherwise, if you want to know all the errors, {@link validate} is the way to go.
|
|
116
|
+
* Also, if you want to return the parametric value when there is no problem, you can use
|
|
117
117
|
* {@link assert} function instead.
|
|
118
118
|
*
|
|
119
|
-
* On the other
|
|
119
|
+
* On the other hand, if you don't want to allow any superfluous property that is not
|
|
120
120
|
* enrolled to the type `T`, you can use {@link assertGuardEquals} function instead.
|
|
121
121
|
*
|
|
122
122
|
* @template T Type of the input value
|
|
123
123
|
* @param input A value to be asserted
|
|
124
124
|
* @param errorFactory Custom error factory. Default is `TypeGuardError`
|
|
125
|
-
* @throws A {@link TypeGuardError} instance with detailed reason
|
|
125
|
+
* @throws A {@link TypeGuardError} instance with a detailed reason
|
|
126
126
|
*
|
|
127
127
|
* @author Jeongho Nam - https://github.com/samchon
|
|
128
128
|
*/
|
|
@@ -131,16 +131,16 @@ export declare function assertGuard<T>(input: unknown, errorFactory?: undefined
|
|
|
131
131
|
* Tests a value type.
|
|
132
132
|
*
|
|
133
133
|
* Tests a parametric value type and returns whether it's following the type `T` or not.
|
|
134
|
-
* If the parametric value is matched with the type `T`, `true` value
|
|
135
|
-
* Otherwise, the parametric value is not following the type `T`, `false` value
|
|
134
|
+
* If the parametric value is matched with the type `T`, `true` value will be returned.
|
|
135
|
+
* Otherwise, if the parametric value is not following the type `T`, `false` value will be
|
|
136
136
|
* returned.
|
|
137
137
|
*
|
|
138
138
|
* If what you want is not just knowing whether the parametric value is following the
|
|
139
|
-
* type `T` or not, but throwing an exception with detailed reason, you can choose
|
|
139
|
+
* type `T` or not, but throwing an exception with a detailed reason, you can choose
|
|
140
140
|
* {@link assert} function instead. Also, if you want to know all the errors with
|
|
141
|
-
* detailed reasons, {@link validate} function
|
|
141
|
+
* detailed reasons, {@link validate} function will be useful.
|
|
142
142
|
*
|
|
143
|
-
* On the other
|
|
143
|
+
* On the other hand, if you don't want to allow any superfluous property that is not
|
|
144
144
|
* enrolled to the type `T`, you can use {@link equals} function instead.
|
|
145
145
|
*
|
|
146
146
|
* @template T Type of the input value
|
|
@@ -155,16 +155,16 @@ export declare function is<T>(input: T): input is T;
|
|
|
155
155
|
* Tests a value type.
|
|
156
156
|
*
|
|
157
157
|
* Tests a parametric value type and returns whether it's following the type `T` or not.
|
|
158
|
-
* If the parametric value is matched with the type `T`, `true` value
|
|
159
|
-
* Otherwise, the parametric value is not following the type `T`, `false` value
|
|
158
|
+
* If the parametric value is matched with the type `T`, `true` value will be returned.
|
|
159
|
+
* Otherwise, if the parametric value is not following the type `T`, `false` value will be
|
|
160
160
|
* returned.
|
|
161
161
|
*
|
|
162
162
|
* If what you want is not just knowing whether the parametric value is following the
|
|
163
|
-
* type `T` or not, but throwing an exception with detailed reason, you can choose
|
|
163
|
+
* type `T` or not, but throwing an exception with a detailed reason, you can choose
|
|
164
164
|
* {@link assert} function instead. Also, if you want to know all the errors with
|
|
165
|
-
* detailed reasons, {@link validate} function
|
|
165
|
+
* detailed reasons, {@link validate} function will be useful.
|
|
166
166
|
*
|
|
167
|
-
* On the other
|
|
167
|
+
* On the other hand, if you don't want to allow any superfluous property that is not
|
|
168
168
|
* enrolled to the type `T`, you can use {@link equals} function instead.
|
|
169
169
|
*
|
|
170
170
|
* @template T Type of the input value
|
|
@@ -180,18 +180,18 @@ export declare function is<T>(input: unknown): input is T;
|
|
|
180
180
|
* Validates a parametric value type and archives all the type errors into an
|
|
181
181
|
* {@link IValidation.errors} array, if the parametric value is not following the
|
|
182
182
|
* type `T`. Of course, if the parametric value is following the type `T`, the
|
|
183
|
-
* {@link IValidation.errors} array
|
|
184
|
-
*
|
|
183
|
+
* {@link IValidation.errors} array will be empty and {@link IValidation.success}
|
|
184
|
+
* will have the `true` value.
|
|
185
185
|
*
|
|
186
|
-
* If what you want is not finding all the
|
|
186
|
+
* If what you want is not finding all the errors, but asserting the parametric value
|
|
187
187
|
* type with exception throwing, you can choose {@link assert} function instead.
|
|
188
|
-
* Otherwise, you just want to know whether the parametric value is matched with the
|
|
188
|
+
* Otherwise, if you just want to know whether the parametric value is matched with the
|
|
189
189
|
* type `T`, {@link is} function is the way to go.
|
|
190
190
|
*
|
|
191
|
-
* On the other
|
|
191
|
+
* On the other hand, if you don't want to allow any superfluous property that is not
|
|
192
192
|
* enrolled to the type `T`, you can use {@link validateEquals} function instead.
|
|
193
193
|
*
|
|
194
|
-
* @template Type of the input value
|
|
194
|
+
* @template T Type of the input value
|
|
195
195
|
* @param input A value to be validated
|
|
196
196
|
* @returns Validation result
|
|
197
197
|
*
|
|
@@ -204,18 +204,18 @@ export declare function validate<T>(input: T): IValidation<T>;
|
|
|
204
204
|
* Validates a parametric value type and archives all the type errors into an
|
|
205
205
|
* {@link IValidation.errors} array, if the parametric value is not following the
|
|
206
206
|
* type `T`. Of course, if the parametric value is following the type `T`, the
|
|
207
|
-
* {@link IValidation.errors} array
|
|
208
|
-
*
|
|
207
|
+
* {@link IValidation.errors} array will be empty and {@link IValidation.success}
|
|
208
|
+
* will have the `true` value.
|
|
209
209
|
*
|
|
210
|
-
* If what you want is not finding all the
|
|
210
|
+
* If what you want is not finding all the errors, but asserting the parametric value
|
|
211
211
|
* type with exception throwing, you can choose {@link assert} function instead.
|
|
212
|
-
* Otherwise, you just want to know whether the parametric value is matched with the
|
|
212
|
+
* Otherwise, if you just want to know whether the parametric value is matched with the
|
|
213
213
|
* type `T`, {@link is} function is the way to go.
|
|
214
214
|
*
|
|
215
|
-
* On the other
|
|
215
|
+
* On the other hand, if you don't want to allow any superfluous property that is not
|
|
216
216
|
* enrolled to the type `T`, you can use {@link validateEquals} function instead.
|
|
217
217
|
*
|
|
218
|
-
* @template Type of the input value
|
|
218
|
+
* @template T Type of the input value
|
|
219
219
|
* @param input A value to be validated
|
|
220
220
|
* @returns Validation result
|
|
221
221
|
*
|
|
@@ -233,7 +233,7 @@ export declare function validate<T>(input: unknown): IValidation<T>;
|
|
|
233
233
|
*
|
|
234
234
|
* If what you want is not asserting but just knowing whether the parametric value is
|
|
235
235
|
* following the type `T` or not, you can choose the {@link equals} function instead.
|
|
236
|
-
* Otherwise, you want to know all the errors, {@link validateEquals} is the way to go.
|
|
236
|
+
* Otherwise, if you want to know all the errors, {@link validateEquals} is the way to go.
|
|
237
237
|
*
|
|
238
238
|
* On the other hand, if you want to allow superfluous property that is not enrolled
|
|
239
239
|
* to the type `T`, you can use {@link assert} function instead.
|
|
@@ -242,7 +242,7 @@ export declare function validate<T>(input: unknown): IValidation<T>;
|
|
|
242
242
|
* @param input A value to be asserted
|
|
243
243
|
* @param errorFactory Custom error factory. Default is `TypeGuardError`
|
|
244
244
|
* @returns Parametric input value
|
|
245
|
-
* @throws A {@link TypeGuardError} instance with detailed reason
|
|
245
|
+
* @throws A {@link TypeGuardError} instance with a detailed reason
|
|
246
246
|
*
|
|
247
247
|
* @author Jeongho Nam - https://github.com/samchon
|
|
248
248
|
*/
|
|
@@ -258,7 +258,7 @@ export declare function assertEquals<T>(input: T, errorFactory?: undefined | ((p
|
|
|
258
258
|
*
|
|
259
259
|
* If what you want is not asserting but just knowing whether the parametric value is
|
|
260
260
|
* following the type `T` or not, you can choose the {@link equals} function instead.
|
|
261
|
-
* Otherwise, you want to know all the errors, {@link validateEquals} is the way to go.
|
|
261
|
+
* Otherwise, if you want to know all the errors, {@link validateEquals} is the way to go.
|
|
262
262
|
*
|
|
263
263
|
* On the other hand, if you want to allow superfluous property that is not enrolled
|
|
264
264
|
* to the type `T`, you can use {@link assert} function instead.
|
|
@@ -267,7 +267,7 @@ export declare function assertEquals<T>(input: T, errorFactory?: undefined | ((p
|
|
|
267
267
|
* @param input A value to be asserted
|
|
268
268
|
* @param errorFactory Custom error factory. Default is `TypeGuardError`
|
|
269
269
|
* @returns Parametric input value casted as `T`
|
|
270
|
-
* @throws A {@link TypeGuardError} instance with detailed reason
|
|
270
|
+
* @throws A {@link TypeGuardError} instance with a detailed reason
|
|
271
271
|
*
|
|
272
272
|
* @author Jeongho Nam - https://github.com/samchon
|
|
273
273
|
*/
|
|
@@ -280,12 +280,12 @@ export declare function assertEquals<T>(input: unknown, errorFactory?: undefined
|
|
|
280
280
|
* property that is not listed on the type `T` has been found.
|
|
281
281
|
*
|
|
282
282
|
* Otherwise, the value is following the type `T` without any superfluous property,
|
|
283
|
-
* nothing
|
|
283
|
+
* nothing will be returned, but the input value would be automatically casted to
|
|
284
284
|
* the type `T`. This is the concept of "Assertion Guard" of a value type.
|
|
285
285
|
*
|
|
286
286
|
* If what you want is not asserting but just knowing whether the parametric value is
|
|
287
287
|
* following the type `T` or not, you can choose the {@link equals} function instead.
|
|
288
|
-
* Otherwise, you want to know all the errors, {@link validateEquals} is the way to go.
|
|
288
|
+
* Otherwise, if you want to know all the errors, {@link validateEquals} is the way to go.
|
|
289
289
|
* Also, if you want to returns the parametric value when no problem, you can use
|
|
290
290
|
* {@link assert} function instead.
|
|
291
291
|
*
|
|
@@ -296,7 +296,7 @@ export declare function assertEquals<T>(input: unknown, errorFactory?: undefined
|
|
|
296
296
|
* @param input A value to be asserted
|
|
297
297
|
* @param errorFactory Custom error factory. Default is `TypeGuardError`
|
|
298
298
|
* @returns Parametric input value casted as `T`
|
|
299
|
-
* @throws A {@link TypeGuardError} instance with detailed reason
|
|
299
|
+
* @throws A {@link TypeGuardError} instance with a detailed reason
|
|
300
300
|
*
|
|
301
301
|
* @author Jeongho Nam - https://github.com/samchon
|
|
302
302
|
*/
|
|
@@ -309,12 +309,12 @@ export declare function assertGuardEquals<T>(input: T, errorFactory?: undefined
|
|
|
309
309
|
* property that is not listed on the type `T` has been found.
|
|
310
310
|
*
|
|
311
311
|
* Otherwise, the value is following the type `T` without any superfluous property,
|
|
312
|
-
* nothing
|
|
312
|
+
* nothing will be returned, but the input value would be automatically casted to
|
|
313
313
|
* the type `T`. This is the concept of "Assertion Guard" of a value type.
|
|
314
314
|
*
|
|
315
315
|
* If what you want is not asserting but just knowing whether the parametric value is
|
|
316
316
|
* following the type `T` or not, you can choose the {@link equals} function instead.
|
|
317
|
-
* Otherwise, you want to know all the errors, {@link validateEquals} is the way to go.
|
|
317
|
+
* Otherwise, if you want to know all the errors, {@link validateEquals} is the way to go.
|
|
318
318
|
* Also, if you want to returns the parametric value when no problem, you can use
|
|
319
319
|
* {@link assertEquals} function instead.
|
|
320
320
|
*
|
|
@@ -325,7 +325,7 @@ export declare function assertGuardEquals<T>(input: T, errorFactory?: undefined
|
|
|
325
325
|
* @param input A value to be asserted
|
|
326
326
|
* @param errorFactory Custom error factory. Default is `TypeGuardError`
|
|
327
327
|
* @returns Parametric input value casted as `T`
|
|
328
|
-
* @throws A {@link TypeGuardError} instance with detailed reason
|
|
328
|
+
* @throws A {@link TypeGuardError} instance with a detailed reason
|
|
329
329
|
*
|
|
330
330
|
* @author Jeongho Nam - https://github.com/samchon
|
|
331
331
|
*/
|
|
@@ -335,14 +335,14 @@ export declare function assertGuardEquals<T>(input: unknown, errorFactory?: unde
|
|
|
335
335
|
*
|
|
336
336
|
* Tests a parametric value type and returns whether it's equivalent to the type `T`
|
|
337
337
|
* or not. If the parametric value is matched with the type `T` and there's not any
|
|
338
|
-
* superfluous property that is not listed on the type `T`, `true` value
|
|
339
|
-
* returned. Otherwise, the parametric value is not following the type `T` or some
|
|
340
|
-
* superfluous property exists, `false` value
|
|
338
|
+
* superfluous property that is not listed on the type `T`, `true` value will be
|
|
339
|
+
* returned. Otherwise, if the parametric value is not following the type `T` or some
|
|
340
|
+
* superfluous property exists, `false` value will be returned.
|
|
341
341
|
*
|
|
342
342
|
* If what you want is not just knowing whether the parametric value is following the
|
|
343
|
-
* type `T` or not, but throwing an exception with detailed reason, you can choose
|
|
343
|
+
* type `T` or not, but throwing an exception with a detailed reason, you can choose
|
|
344
344
|
* {@link assertEquals} function instead. Also, if you want to know all the errors with
|
|
345
|
-
* detailed reasons, {@link validateEquals} function
|
|
345
|
+
* detailed reasons, {@link validateEquals} function will be useful.
|
|
346
346
|
*
|
|
347
347
|
* On the other hand, if you want to allow superfluous property that is not enrolled
|
|
348
348
|
* to the type `T`, you can use {@link is} function instead.
|
|
@@ -359,14 +359,14 @@ export declare function equals<T>(input: T): input is T;
|
|
|
359
359
|
*
|
|
360
360
|
* Tests a parametric value type and returns whether it's equivalent to the type `T`
|
|
361
361
|
* or not. If the parametric value is matched with the type `T` and there's not any
|
|
362
|
-
* superfluous property that is not listed on the type `T`, `true` value
|
|
363
|
-
* returned. Otherwise, the parametric value is not following the type `T` or some
|
|
364
|
-
* superfluous property exists, `false` value
|
|
362
|
+
* superfluous property that is not listed on the type `T`, `true` value will be
|
|
363
|
+
* returned. Otherwise, if the parametric value is not following the type `T` or some
|
|
364
|
+
* superfluous property exists, `false` value will be returned.
|
|
365
365
|
*
|
|
366
366
|
* If what you want is not just knowing whether the parametric value is following the
|
|
367
|
-
* type `T` or not, but throwing an exception with detailed reason, you can choose
|
|
367
|
+
* type `T` or not, but throwing an exception with a detailed reason, you can choose
|
|
368
368
|
* {@link assertEquals} function instead. Also, if you want to know all the errors with
|
|
369
|
-
* detailed reasons, {@link validateEquals} function
|
|
369
|
+
* detailed reasons, {@link validateEquals} function will be useful.
|
|
370
370
|
*
|
|
371
371
|
* On the other hand, if you want to allow superfluous property that is not enrolled
|
|
372
372
|
* to the type `T`, you can use {@link is} function instead.
|
|
@@ -393,7 +393,7 @@ export declare function equals<T>(input: unknown): input is T;
|
|
|
393
393
|
* Otherwise, you just want to know whether the parametric value is matched with the
|
|
394
394
|
* type `T`, {@link is} function is the way to go.
|
|
395
395
|
*
|
|
396
|
-
* On the other
|
|
396
|
+
* On the other hand, if you don't want to allow any superfluous property that is not
|
|
397
397
|
* enrolled to the type `T`, you can use {@link validateEquals} function instead.
|
|
398
398
|
*
|
|
399
399
|
* @template Type of the input value
|
|
@@ -418,7 +418,7 @@ export declare function validateEquals<T>(input: T): IValidation<T>;
|
|
|
418
418
|
* Otherwise, you just want to know whether the parametric value is matched with the
|
|
419
419
|
* type `T`, {@link is} function is the way to go.
|
|
420
420
|
*
|
|
421
|
-
* On the other
|
|
421
|
+
* On the other hand, if you don't want to allow any superfluous property that is not
|
|
422
422
|
* enrolled to the type `T`, you can use {@link validateEquals} function instead.
|
|
423
423
|
*
|
|
424
424
|
* @template Type of the input value
|
|
@@ -438,7 +438,7 @@ export declare function validateEquals<T>(input: unknown): IValidation<T>;
|
|
|
438
438
|
* For reference, this `typia.random()` function generates only primitive type.
|
|
439
439
|
* If there're some methods in the type `T` or its nested instances, those would
|
|
440
440
|
* be ignored. Also, when the type `T` has a `toJSON()` method, its return type
|
|
441
|
-
*
|
|
441
|
+
* will be generated instead.
|
|
442
442
|
*
|
|
443
443
|
* @template T Type of data to generate
|
|
444
444
|
* @param generator Random data generator
|
|
@@ -455,7 +455,7 @@ export declare function random(generator?: Partial<IRandomGenerator>): never;
|
|
|
455
455
|
* For reference, this `typia.random()` function generates only primitive type.
|
|
456
456
|
* If there're some methods in the type `T` or its nested instances, those would
|
|
457
457
|
* be ignored. Also, when the type `T` has a `toJSON()` method, its return type
|
|
458
|
-
*
|
|
458
|
+
* will be generated instead.
|
|
459
459
|
*
|
|
460
460
|
* @template T Type of data to generate
|
|
461
461
|
* @param generator Random data generator
|
package/lib/module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.js","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"module.js","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkGA,wBAEC;AAiED,kCAEC;AAsDD,gBAEC;AAuDD,4BAEC;AAkED,oCAEC;AAuED,8CAEC;AAuDD,wBAEC;AAyDD,wCAEC;AA8CD,wBAEC;AAmCD,oCAEC;AA8DD,8CAEC;AA0BD,4BAEC;AA2BD,wCAGC;AAgCD,gDAEC;AA8DD,0DAIC;AA0BD,oCAEC;AA6BD,oDAGC;AA8BD,oCAEC;AAt6BD,gGAA6F;AAQ7F,2DAA2C;AAC3C,+CAA+B;AAC/B,6CAA6B;AAC7B,+CAA+B;AAC/B,+CAA+B;AAC/B,yDAAyC;AACzC,uDAAuC;AACvC,qDAAqC;AACrC,+CAA+B;AAE/B,mEAAiD;AACjD,kEAAgD;AAChD,uEAAqD;AACrD,iEAA+C;AAC/C,mDAAiC;AACjC,qDAAmC;AACnC,gDAA8B;AAC9B,mDAAiC;AAEjC,8CAA4B;AAC5B,6CAA2B;AAC3B,8CAA4B;AAC5B,+CAA6B;AAC7B,8CAA4B;AAC5B,6DAA2C;AA6D3C;;GAEG;AACH,SAAgB,MAAM;IACpB,IAAA,6DAA6B,EAAC,QAAQ,CAAC,CAAC;AA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BAAuB;IAGrC,IAAA,6DAA6B,EAAC,yBAAyB,CAAC,CAAC;AAC3D,CAAC;AAuBD;;GAEG;AACH,SAAgB,YAAY;IAC1B,IAAA,6DAA6B,EAAC,cAAc,CAAC,CAAC;AAChD,CAAC;AA0BD;;GAEG;AACH,SAAgB,oBAAoB;IAElC,IAAA,6DAA6B,EAAC,sBAAsB,CAAC,CAAC;AACxD,CAAC;AA2BD;;GAEG;AACH,SAAgB,YAAY;IAC1B,IAAA,6DAA6B,EAAC,cAAc,CAAC,CAAC;AAChD,CAAC"}
|
|
@@ -122,20 +122,19 @@ var LlmApplicationTransformer;
|
|
|
122
122
|
typescript_1.default.factory.createImportTypeNode(typescript_1.default.factory.createLiteralTypeNode(typescript_1.default.factory.createStringLiteral("@samchon/openapi")), undefined, typescript_1.default.factory.createQualifiedName(typescript_1.default.factory.createIdentifier("ILlmApplication"), typescript_1.default.factory.createIdentifier("IOptions")), [
|
|
123
123
|
typescript_1.default.factory.createLiteralTypeNode(typescript_1.default.factory.createStringLiteral(props.model)),
|
|
124
124
|
], false),
|
|
125
|
-
typescript_1.default.factory.
|
|
125
|
+
typescript_1.default.factory.createUnionTypeNode([
|
|
126
|
+
typescript_1.default.factory.createLiteralTypeNode(typescript_1.default.factory.createStringLiteral("separate")),
|
|
127
|
+
typescript_1.default.factory.createLiteralTypeNode(typescript_1.default.factory.createStringLiteral("validate")),
|
|
128
|
+
]),
|
|
126
129
|
]),
|
|
127
130
|
]);
|
|
128
131
|
return typescript_1.default.factory.createCallExpression(props.context.importer.internal("llmApplicationFinalize"), undefined, [
|
|
129
132
|
props.value,
|
|
130
133
|
typescript_1.default.factory.createObjectLiteralExpression([
|
|
131
|
-
typescript_1.default.factory.
|
|
132
|
-
|
|
133
|
-
?
|
|
134
|
-
|
|
135
|
-
? typescript_1.default.factory.createTrue()
|
|
136
|
-
: typescript_1.default.factory.createFalse()),
|
|
137
|
-
]
|
|
138
|
-
: []),
|
|
134
|
+
typescript_1.default.factory.createSpreadAssignment(typescript_1.default.factory.createSatisfiesExpression(props.argument, satisfiesTypeNode)),
|
|
135
|
+
typescript_1.default.factory.createPropertyAssignment("equals", props.equals === true
|
|
136
|
+
? typescript_1.default.factory.createTrue()
|
|
137
|
+
: typescript_1.default.factory.createFalse()),
|
|
139
138
|
], true),
|
|
140
139
|
]);
|
|
141
140
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LlmApplicationTransformer.js","sourceRoot":"","sources":["../../../../src/transformers/features/llm/LlmApplicationTransformer.ts"],"names":[],"mappings":";;;;;;AACA,4DAA4B;AAE5B,4EAAyE;AACzE,sEAAmE;AACnE,8EAA2E;AAC3E,wEAAqE;AACrE,0EAAuE;AAIvE,gGAA6F;AAC7F,oFAAiF;AAMjF,6DAA0D;AAE1D,IAAiB,yBAAyB,
|
|
1
|
+
{"version":3,"file":"LlmApplicationTransformer.js","sourceRoot":"","sources":["../../../../src/transformers/features/llm/LlmApplicationTransformer.ts"],"names":[],"mappings":";;;;;;AACA,4DAA4B;AAE5B,4EAAyE;AACzE,sEAAmE;AACnE,8EAA2E;AAC3E,wEAAqE;AACrE,0EAAuE;AAIvE,gGAA6F;AAC7F,oFAAiF;AAMjF,6DAA0D;AAE1D,IAAiB,yBAAyB,CA6MzC;AA7MD,WAAiB,yBAAyB;IAC3B,mCAAS,GAAG,CAAC,KAAsB,EAAiB,EAAE;;QACjE,MAAM,GAAG,GAAG,0BAAA,SAAS,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC;QAC5C,IAAI,GAAG,KAAK,IAAI;YAAE,OAAO,KAAK,CAAC,UAAU,CAAC;QAE1C,MAAM,OAAO,GAAkB,oBAAE,CAAC,OAAO,CAAC,kBAAkB,CAC1D,+BAAc,CAAC,KAAK,CAAC,GAAG,CAAC,WAAW,CAAC,EACrC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC;YAC1B,IAAI,EAAE,kBAAkB;YACxB,IAAI,EAAE,iBAAiB;Y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factory.createStringLiteral("@samchon/openapi")), undefined, ts.factory.createQualifiedName(ts.factory.createIdentifier("ILlmApplication"), ts.factory.createIdentifier("IOptions")), [
|
|
116
116
|
ts.factory.createLiteralTypeNode(ts.factory.createStringLiteral(props.model)),
|
|
117
117
|
], false),
|
|
118
|
-
ts.factory.
|
|
118
|
+
ts.factory.createUnionTypeNode([
|
|
119
|
+
ts.factory.createLiteralTypeNode(ts.factory.createStringLiteral("separate")),
|
|
120
|
+
ts.factory.createLiteralTypeNode(ts.factory.createStringLiteral("validate")),
|
|
121
|
+
]),
|
|
119
122
|
]),
|
|
120
123
|
]);
|
|
121
124
|
return ts.factory.createCallExpression(props.context.importer.internal("llmApplicationFinalize"), undefined, [
|
|
122
125
|
props.value,
|
|
123
126
|
ts.factory.createObjectLiteralExpression([
|
|
124
|
-
ts.factory.
|
|
125
|
-
|
|
126
|
-
?
|
|
127
|
-
|
|
128
|
-
? ts.factory.createTrue()
|
|
129
|
-
: ts.factory.createFalse()),
|
|
130
|
-
]
|
|
131
|
-
: []),
|
|
127
|
+
ts.factory.createSpreadAssignment(ts.factory.createSatisfiesExpression(props.argument, satisfiesTypeNode)),
|
|
128
|
+
ts.factory.createPropertyAssignment("equals", props.equals === true
|
|
129
|
+
? ts.factory.createTrue()
|
|
130
|
+
: ts.factory.createFalse()),
|
|
132
131
|
], true),
|
|
133
132
|
]);
|
|
134
133
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "typia",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.7.0",
|
|
4
4
|
"description": "Superfast runtime validators with only one line",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
},
|
|
42
42
|
"homepage": "https://typia.io",
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@samchon/openapi": "^4.
|
|
44
|
+
"@samchon/openapi": "^4.7.1",
|
|
45
45
|
"@standard-schema/spec": "^1.0.0",
|
|
46
46
|
"commander": "^10.0.0",
|
|
47
47
|
"comment-json": "^4.2.3",
|
package/src/CamelCase.ts
CHANGED
|
@@ -8,7 +8,7 @@ import { ValueOf } from "./typings/ValueOf";
|
|
|
8
8
|
*
|
|
9
9
|
* `CamelCase` type is a type that all keys of an object are camelized.
|
|
10
10
|
*
|
|
11
|
-
* It also
|
|
11
|
+
* It also erases every method property like {@link Resolved} type.
|
|
12
12
|
*
|
|
13
13
|
* @template T Target type to be camelized
|
|
14
14
|
* @author Jeongho Nam - https://github.com/samchon
|