typia 9.0.1 → 9.1.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/functional.js +19 -27
- package/lib/functional.js.map +1 -1
- package/lib/functional.mjs +20 -27
- package/lib/http.js +27 -32
- package/lib/http.js.map +1 -1
- package/lib/http.mjs +28 -32
- package/lib/json.d.mts +66 -4
- package/lib/json.d.ts +66 -4
- package/lib/json.js +23 -21
- package/lib/json.js.map +1 -1
- package/lib/json.mjs +24 -22
- package/lib/llm.js +4 -9
- package/lib/llm.js.map +1 -1
- package/lib/llm.mjs +5 -9
- package/lib/misc.js +27 -23
- package/lib/misc.js.map +1 -1
- package/lib/misc.mjs +28 -23
- package/lib/module.d.mts +1 -0
- package/lib/module.d.ts +1 -0
- package/lib/module.js +20 -24
- package/lib/module.js.map +1 -1
- package/lib/module.mjs +19 -24
- package/lib/notations.js +25 -30
- package/lib/notations.js.map +1 -1
- package/lib/notations.mjs +26 -30
- package/lib/programmers/json/JsonSchemaProgrammer.d.mts +9 -0
- package/lib/programmers/json/JsonSchemaProgrammer.d.ts +9 -0
- package/lib/programmers/json/JsonSchemaProgrammer.js +20 -0
- package/lib/programmers/json/JsonSchemaProgrammer.js.map +1 -0
- package/lib/programmers/json/JsonSchemaProgrammer.mjs +20 -0
- package/lib/programmers/json/JsonSchemaProgrammer.mjs.map +1 -0
- package/lib/programmers/json/JsonSchemasProgrammer.js +1 -1
- package/lib/programmers/json/JsonSchemasProgrammer.js.map +1 -1
- package/lib/programmers/json/JsonSchemasProgrammer.mjs +1 -1
- package/lib/protobuf.js +18 -23
- package/lib/protobuf.js.map +1 -1
- package/lib/protobuf.mjs +19 -23
- package/lib/reflect.js +3 -8
- package/lib/reflect.js.map +1 -1
- package/lib/reflect.mjs +4 -8
- package/lib/schemas/json/IJsonSchemaUnit.d.mts +26 -0
- package/lib/schemas/json/IJsonSchemaUnit.d.ts +26 -0
- package/lib/schemas/json/IJsonSchemaUnit.js +3 -0
- package/lib/schemas/json/IJsonSchemaUnit.js.map +1 -0
- package/lib/schemas/json/IJsonSchemaUnit.mjs +2 -0
- package/lib/schemas/json/IJsonSchemaUnit.mjs.map +1 -0
- package/lib/transformers/CallExpressionTransformer.js +2 -2
- package/lib/transformers/CallExpressionTransformer.js.map +1 -1
- package/lib/transformers/CallExpressionTransformer.mjs +2 -2
- package/lib/transformers/NoTransformConfigurationError.d.mts +1 -0
- package/lib/transformers/NoTransformConfigurationError.d.ts +1 -0
- package/lib/transformers/NoTransformConfigurationError.js +20 -0
- package/lib/transformers/NoTransformConfigurationError.js.map +1 -0
- package/lib/transformers/NoTransformConfigurationError.mjs +19 -0
- package/lib/transformers/NoTransformConfigurationError.mjs.map +1 -0
- package/lib/transformers/features/json/JsonSchemaTransformer.d.mts +5 -0
- package/lib/transformers/features/json/JsonSchemaTransformer.d.ts +5 -0
- package/lib/transformers/features/json/JsonSchemaTransformer.js +108 -0
- package/lib/transformers/features/json/JsonSchemaTransformer.js.map +1 -0
- package/lib/transformers/features/json/JsonSchemaTransformer.mjs +104 -0
- package/lib/transformers/features/json/JsonSchemaTransformer.mjs.map +1 -0
- package/lib/transformers/features/json/JsonSchemasTransformer.js +9 -9
- package/lib/transformers/features/json/JsonSchemasTransformer.js.map +1 -1
- package/lib/transformers/features/json/JsonSchemasTransformer.mjs +9 -9
- package/package.json +1 -1
- package/src/functional.ts +20 -30
- package/src/http.ts +28 -35
- package/src/json.ts +73 -73
- package/src/llm.ts +5 -12
- package/src/misc.ts +19 -26
- package/src/module.ts +21 -27
- package/src/notations.ts +26 -33
- package/src/programmers/json/JsonSchemaProgrammer.ts +26 -0
- package/src/programmers/json/JsonSchemasProgrammer.ts +1 -1
- package/src/protobuf.ts +19 -26
- package/src/reflect.ts +4 -11
- package/src/schemas/json/IJsonSchemaUnit.ts +32 -0
- package/src/transformers/CallExpressionTransformer.ts +2 -2
- package/src/transformers/NoTransformConfigurationError.ts +18 -0
- package/src/transformers/features/json/JsonSchemaTransformer.ts +135 -0
- package/src/transformers/features/json/JsonSchemasTransformer.ts +9 -9
package/src/http.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { NoTransformConfigurationError } from "./transformers/NoTransformConfigurationError";
|
|
2
|
+
|
|
1
3
|
import { Atomic } from "./typings/Atomic";
|
|
2
4
|
|
|
3
5
|
import { IReadableURLSearchParams } from "./IReadableURLSearchParams";
|
|
@@ -48,7 +50,7 @@ export function formData<T extends object>(input: FormData): Resolved<T>;
|
|
|
48
50
|
* @internal
|
|
49
51
|
*/
|
|
50
52
|
export function formData(): never {
|
|
51
|
-
|
|
53
|
+
NoTransformConfigurationError("http.formData");
|
|
52
54
|
}
|
|
53
55
|
|
|
54
56
|
/**
|
|
@@ -89,7 +91,7 @@ export function assertFormData<T extends object>(
|
|
|
89
91
|
* @internal
|
|
90
92
|
*/
|
|
91
93
|
export function assertFormData(): never {
|
|
92
|
-
|
|
94
|
+
NoTransformConfigurationError("http.assertFormData");
|
|
93
95
|
}
|
|
94
96
|
|
|
95
97
|
/**
|
|
@@ -127,7 +129,7 @@ export function isFormData<T extends object>(
|
|
|
127
129
|
* @internal
|
|
128
130
|
*/
|
|
129
131
|
export function isFormData(): never {
|
|
130
|
-
|
|
132
|
+
NoTransformConfigurationError("http.isFormData");
|
|
131
133
|
}
|
|
132
134
|
|
|
133
135
|
/**
|
|
@@ -167,7 +169,7 @@ export function validateFormData<T extends object>(
|
|
|
167
169
|
* @internal
|
|
168
170
|
*/
|
|
169
171
|
export function validateFormData(): never {
|
|
170
|
-
|
|
172
|
+
NoTransformConfigurationError("http.validateFormData");
|
|
171
173
|
}
|
|
172
174
|
|
|
173
175
|
/* -----------------------------------------------------------
|
|
@@ -212,7 +214,7 @@ export function query<T extends object>(
|
|
|
212
214
|
* @internal
|
|
213
215
|
*/
|
|
214
216
|
export function query(): never {
|
|
215
|
-
|
|
217
|
+
NoTransformConfigurationError("http.query");
|
|
216
218
|
}
|
|
217
219
|
|
|
218
220
|
/**
|
|
@@ -253,7 +255,7 @@ export function assertQuery<T extends object>(
|
|
|
253
255
|
* @internal
|
|
254
256
|
*/
|
|
255
257
|
export function assertQuery(): never {
|
|
256
|
-
|
|
258
|
+
NoTransformConfigurationError("http.assertQuery");
|
|
257
259
|
}
|
|
258
260
|
|
|
259
261
|
/**
|
|
@@ -291,7 +293,7 @@ export function isQuery<T extends object>(
|
|
|
291
293
|
* @internal
|
|
292
294
|
*/
|
|
293
295
|
export function isQuery(): never {
|
|
294
|
-
|
|
296
|
+
NoTransformConfigurationError("http.isQuery");
|
|
295
297
|
}
|
|
296
298
|
|
|
297
299
|
/**
|
|
@@ -330,7 +332,7 @@ export function validateQuery<T extends object>(
|
|
|
330
332
|
* @internal
|
|
331
333
|
*/
|
|
332
334
|
export function validateQuery(): never {
|
|
333
|
-
|
|
335
|
+
NoTransformConfigurationError("http.validateQuery");
|
|
334
336
|
}
|
|
335
337
|
|
|
336
338
|
/* -----------------------------------------------------------
|
|
@@ -396,7 +398,7 @@ export function headers<T extends object>(
|
|
|
396
398
|
* @internal
|
|
397
399
|
*/
|
|
398
400
|
export function headers(): never {
|
|
399
|
-
|
|
401
|
+
NoTransformConfigurationError("http.headers");
|
|
400
402
|
}
|
|
401
403
|
|
|
402
404
|
/**
|
|
@@ -459,7 +461,7 @@ export function assertHeaders<T extends object>(
|
|
|
459
461
|
* @internal
|
|
460
462
|
*/
|
|
461
463
|
export function assertHeaders(): never {
|
|
462
|
-
|
|
464
|
+
NoTransformConfigurationError("http.assertHeaders");
|
|
463
465
|
}
|
|
464
466
|
|
|
465
467
|
/**
|
|
@@ -521,7 +523,7 @@ export function isHeaders<T extends object>(
|
|
|
521
523
|
* @internal
|
|
522
524
|
*/
|
|
523
525
|
export function isHeaders(): never {
|
|
524
|
-
|
|
526
|
+
NoTransformConfigurationError("http.isHeaders");
|
|
525
527
|
}
|
|
526
528
|
|
|
527
529
|
/**
|
|
@@ -582,7 +584,7 @@ export function validateHeaders<T extends object>(
|
|
|
582
584
|
* @internal
|
|
583
585
|
*/
|
|
584
586
|
export function validateHeaders(): never {
|
|
585
|
-
|
|
587
|
+
NoTransformConfigurationError("http.validateHeaders");
|
|
586
588
|
}
|
|
587
589
|
|
|
588
590
|
/* -----------------------------------------------------------
|
|
@@ -611,7 +613,7 @@ export function parameter<T extends Atomic.Type | null>(
|
|
|
611
613
|
* @internal
|
|
612
614
|
*/
|
|
613
615
|
export function parameter(): never {
|
|
614
|
-
|
|
616
|
+
NoTransformConfigurationError("http.parameter");
|
|
615
617
|
}
|
|
616
618
|
|
|
617
619
|
/* -----------------------------------------------------------
|
|
@@ -642,7 +644,7 @@ export function createFormData<T extends object>(): (input: FormData) => T;
|
|
|
642
644
|
* @internal
|
|
643
645
|
*/
|
|
644
646
|
export function createFormData<T>(): (input: FormData) => T {
|
|
645
|
-
|
|
647
|
+
NoTransformConfigurationError("http.createFormData");
|
|
646
648
|
}
|
|
647
649
|
|
|
648
650
|
/**
|
|
@@ -676,7 +678,7 @@ export function createAssertFormData<T extends object>(
|
|
|
676
678
|
* @internal
|
|
677
679
|
*/
|
|
678
680
|
export function createAssertFormData<T>(): (input: FormData) => T {
|
|
679
|
-
|
|
681
|
+
NoTransformConfigurationError("http.createAssertFormData");
|
|
680
682
|
}
|
|
681
683
|
|
|
682
684
|
/**
|
|
@@ -706,7 +708,7 @@ export function createIsFormData<T extends object>(): (
|
|
|
706
708
|
* @internal
|
|
707
709
|
*/
|
|
708
710
|
export function createIsFormData<T>(): (input: FormData) => T | null {
|
|
709
|
-
|
|
711
|
+
NoTransformConfigurationError("http.createIsFormData");
|
|
710
712
|
}
|
|
711
713
|
|
|
712
714
|
/**
|
|
@@ -738,7 +740,7 @@ export function createValidateFormData<T extends object>(): (
|
|
|
738
740
|
export function createValidateFormData<T>(): (
|
|
739
741
|
input: FormData,
|
|
740
742
|
) => IValidation<Resolved<T>> {
|
|
741
|
-
|
|
743
|
+
NoTransformConfigurationError("http.createValidateFormData");
|
|
742
744
|
}
|
|
743
745
|
|
|
744
746
|
/**
|
|
@@ -770,7 +772,7 @@ export function createQuery<T extends object>(): (
|
|
|
770
772
|
export function createQuery<T>(): (
|
|
771
773
|
input: string | IReadableURLSearchParams,
|
|
772
774
|
) => T {
|
|
773
|
-
|
|
775
|
+
NoTransformConfigurationError("http.createQuery");
|
|
774
776
|
}
|
|
775
777
|
|
|
776
778
|
/**
|
|
@@ -806,7 +808,7 @@ export function createAssertQuery<T extends object>(
|
|
|
806
808
|
export function createAssertQuery<T>(): (
|
|
807
809
|
input: string | IReadableURLSearchParams,
|
|
808
810
|
) => T {
|
|
809
|
-
|
|
811
|
+
NoTransformConfigurationError("http.createAssertQuery");
|
|
810
812
|
}
|
|
811
813
|
|
|
812
814
|
/**
|
|
@@ -838,7 +840,7 @@ export function createIsQuery<T extends object>(): (
|
|
|
838
840
|
export function createIsQuery<T>(): (
|
|
839
841
|
input: string | IReadableURLSearchParams,
|
|
840
842
|
) => T | null {
|
|
841
|
-
|
|
843
|
+
NoTransformConfigurationError("http.createIsQuery");
|
|
842
844
|
}
|
|
843
845
|
|
|
844
846
|
/**
|
|
@@ -870,7 +872,7 @@ export function createValidateQuery<T extends object>(): (
|
|
|
870
872
|
export function createValidateQuery<T>(): (
|
|
871
873
|
input: string | IReadableURLSearchParams,
|
|
872
874
|
) => IValidation<Resolved<T>> {
|
|
873
|
-
|
|
875
|
+
NoTransformConfigurationError("http.createValidateQuery");
|
|
874
876
|
}
|
|
875
877
|
|
|
876
878
|
/**
|
|
@@ -902,7 +904,7 @@ export function createHeaders<T extends object>(): (
|
|
|
902
904
|
export function createHeaders<T>(): (
|
|
903
905
|
input: Record<string, string | string[] | undefined>,
|
|
904
906
|
) => T {
|
|
905
|
-
|
|
907
|
+
NoTransformConfigurationError("http.createHeaders");
|
|
906
908
|
}
|
|
907
909
|
|
|
908
910
|
/**
|
|
@@ -938,7 +940,7 @@ export function createAssertHeaders<T extends object>(
|
|
|
938
940
|
export function createAssertHeaders<T>(): (
|
|
939
941
|
input: Record<string, string | string[] | undefined>,
|
|
940
942
|
) => T {
|
|
941
|
-
|
|
943
|
+
NoTransformConfigurationError("http.createAssertHeaders");
|
|
942
944
|
}
|
|
943
945
|
|
|
944
946
|
/**
|
|
@@ -970,7 +972,7 @@ export function createIsHeaders<T extends object>(): (
|
|
|
970
972
|
export function createIsHeaders<T>(): (
|
|
971
973
|
input: Record<string, string | string[] | undefined>,
|
|
972
974
|
) => T | null {
|
|
973
|
-
|
|
975
|
+
NoTransformConfigurationError("http.createIsHeaders");
|
|
974
976
|
}
|
|
975
977
|
|
|
976
978
|
/**
|
|
@@ -1002,7 +1004,7 @@ export function createValidateHeaders<T extends object>(): (
|
|
|
1002
1004
|
export function createValidateHeaders<T>(): (
|
|
1003
1005
|
input: Record<string, string | string[] | undefined>,
|
|
1004
1006
|
) => IValidation<Resolved<T>> {
|
|
1005
|
-
|
|
1007
|
+
NoTransformConfigurationError("http.createValidateHeaders");
|
|
1006
1008
|
}
|
|
1007
1009
|
|
|
1008
1010
|
/**
|
|
@@ -1034,14 +1036,5 @@ export function createParameter<T extends Atomic.Type | null>(): (
|
|
|
1034
1036
|
export function createParameter<T extends Atomic.Type | null>(): (
|
|
1035
1037
|
input: string,
|
|
1036
1038
|
) => T {
|
|
1037
|
-
|
|
1038
|
-
}
|
|
1039
|
-
|
|
1040
|
-
/**
|
|
1041
|
-
* @internal
|
|
1042
|
-
*/
|
|
1043
|
-
function halt(name: string): never {
|
|
1044
|
-
throw new Error(
|
|
1045
|
-
`Error on typia.http.${name}(): no transform has been configured. Read and follow https://typia.io/docs/setup please.`,
|
|
1046
|
-
);
|
|
1039
|
+
NoTransformConfigurationError("http.createParameter");
|
|
1047
1040
|
}
|
package/src/json.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { IJsonSchemaCollection } from "./schemas/json/IJsonSchemaCollection";
|
|
2
|
+
import { IJsonSchemaUnit } from "./schemas/json/IJsonSchemaUnit";
|
|
3
|
+
|
|
4
|
+
import { NoTransformConfigurationError } from "./transformers/NoTransformConfigurationError";
|
|
2
5
|
|
|
3
6
|
import { IValidation } from "./IValidation";
|
|
4
7
|
import { Primitive } from "./Primitive";
|
|
@@ -16,7 +19,7 @@ import { TypeGuardError } from "./TypeGuardError";
|
|
|
16
19
|
/**
|
|
17
20
|
* > You must configure the generic argument `Types`.
|
|
18
21
|
*
|
|
19
|
-
* JSON Schemas
|
|
22
|
+
* JSON Schemas Generator.
|
|
20
23
|
*
|
|
21
24
|
* Creates a JSON schema list which contains both main JSON schemas
|
|
22
25
|
* and components. Note that, all of the named types are stored in the
|
|
@@ -28,14 +31,14 @@ import { TypeGuardError } from "./TypeGuardError";
|
|
|
28
31
|
*
|
|
29
32
|
* @template Types Tuple of target types
|
|
30
33
|
* @template Version Version of OpenAPI specification. Default is 3.1
|
|
31
|
-
* @return JSON schema
|
|
34
|
+
* @return JSON schema collection
|
|
32
35
|
*
|
|
33
36
|
* @author Jeongho Nam - https://github.com/samchon
|
|
34
37
|
*/
|
|
35
38
|
export function schemas(): never;
|
|
36
39
|
|
|
37
40
|
/**
|
|
38
|
-
* JSON Schemas
|
|
41
|
+
* JSON Schemas Generator.
|
|
39
42
|
*
|
|
40
43
|
* Creates a JSON schema list which contains both main JSON schemas
|
|
41
44
|
* and components. Note that, all of the named types are stored in the
|
|
@@ -47,7 +50,7 @@ export function schemas(): never;
|
|
|
47
50
|
*
|
|
48
51
|
* @template Types Tuple of target types
|
|
49
52
|
* @template Version Version of OpenAPI specification. Default is 3.1
|
|
50
|
-
* @return JSON schema
|
|
53
|
+
* @return JSON schema collection
|
|
51
54
|
*
|
|
52
55
|
* @author Jeongho Nam - https://github.com/samchon
|
|
53
56
|
*/
|
|
@@ -60,54 +63,60 @@ export function schemas<
|
|
|
60
63
|
* @internal
|
|
61
64
|
*/
|
|
62
65
|
export function schemas(): never {
|
|
63
|
-
|
|
66
|
+
NoTransformConfigurationError("json.schemas");
|
|
64
67
|
}
|
|
65
68
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
69
|
+
/**
|
|
70
|
+
* > You must configure the generic argument `Type`.
|
|
71
|
+
*
|
|
72
|
+
* JSON schema generator.
|
|
73
|
+
*
|
|
74
|
+
* Creates a JSON schema unit which contains a main JSON schema and
|
|
75
|
+
* its components. Note that, all of the named types are stored in the
|
|
76
|
+
* {@link IJsonSchemaUnit.components} property for the `$ref` referencing.
|
|
77
|
+
*
|
|
78
|
+
* Also, you can specify the OpenAPI version by configuring the second
|
|
79
|
+
* generic argument `Version`. For reference, the default version is `"3.1"`,
|
|
80
|
+
* and key different of `"3.0"` and `"3.1"` is whether supporting the
|
|
81
|
+
* tuple type or not.
|
|
82
|
+
*
|
|
83
|
+
* @template Type Target type
|
|
84
|
+
* @template Version Version of OpenAPI specification. Default is 3.1
|
|
85
|
+
* @return JSON schema unit
|
|
86
|
+
*
|
|
87
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
88
|
+
*/
|
|
89
|
+
export function schema(): never;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* JSON schema generator.
|
|
93
|
+
*
|
|
94
|
+
* Creates a JSON schema unit which contains a main JSON schema and
|
|
95
|
+
* its components. Note that, all of the named types are stored in the
|
|
96
|
+
* {@link IJsonSchemaUnit.components} property for the `$ref` referencing.
|
|
97
|
+
*
|
|
98
|
+
* Also, you can specify the OpenAPI version by configuring the second
|
|
99
|
+
* generic argument `Version`. For reference, the default version is `"3.1"`,
|
|
100
|
+
* and key different of `"3.0"` and `"3.1"` is whether supporting the
|
|
101
|
+
* tuple type or not.
|
|
102
|
+
*
|
|
103
|
+
* @template Type Target type
|
|
104
|
+
* @template Version Version of OpenAPI specification. Default is 3.1
|
|
105
|
+
* @return JSON schema unit
|
|
106
|
+
*
|
|
107
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
108
|
+
*/
|
|
109
|
+
export function schema<
|
|
110
|
+
Type extends unknown,
|
|
111
|
+
Version extends "3.0" | "3.1" = "3.1",
|
|
112
|
+
>(): IJsonSchemaUnit<Version, Type>;
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* @internal
|
|
116
|
+
*/
|
|
117
|
+
export function schema(): never {
|
|
118
|
+
NoTransformConfigurationError("json.schema");
|
|
119
|
+
}
|
|
111
120
|
|
|
112
121
|
/* -----------------------------------------------------------
|
|
113
122
|
PARSE
|
|
@@ -165,7 +174,7 @@ export function assertParse<T>(
|
|
|
165
174
|
* @internal
|
|
166
175
|
*/
|
|
167
176
|
export function assertParse<T>(): Primitive<T> {
|
|
168
|
-
|
|
177
|
+
NoTransformConfigurationError("json.assertParse");
|
|
169
178
|
}
|
|
170
179
|
|
|
171
180
|
/**
|
|
@@ -212,7 +221,7 @@ export function isParse<T>(input: string): Primitive<T> | null;
|
|
|
212
221
|
* @internal
|
|
213
222
|
*/
|
|
214
223
|
export function isParse<T>(): Primitive<T> | null {
|
|
215
|
-
|
|
224
|
+
NoTransformConfigurationError("json.isParse");
|
|
216
225
|
}
|
|
217
226
|
|
|
218
227
|
/**
|
|
@@ -261,7 +270,7 @@ export function validateParse<T>(input: string): IValidation<Primitive<T>>;
|
|
|
261
270
|
* @internal
|
|
262
271
|
*/
|
|
263
272
|
export function validateParse<T>(): IValidation<Primitive<T>> {
|
|
264
|
-
|
|
273
|
+
NoTransformConfigurationError("json.validateParse");
|
|
265
274
|
}
|
|
266
275
|
|
|
267
276
|
/* -----------------------------------------------------------
|
|
@@ -295,7 +304,7 @@ export function stringify<T>(input: T): string;
|
|
|
295
304
|
* @internal
|
|
296
305
|
*/
|
|
297
306
|
export function stringify(): never {
|
|
298
|
-
|
|
307
|
+
NoTransformConfigurationError("json.stringify");
|
|
299
308
|
}
|
|
300
309
|
|
|
301
310
|
/**
|
|
@@ -356,7 +365,7 @@ export function assertStringify<T>(
|
|
|
356
365
|
* @internal
|
|
357
366
|
*/
|
|
358
367
|
export function assertStringify(): string {
|
|
359
|
-
|
|
368
|
+
NoTransformConfigurationError("json.assertStringify");
|
|
360
369
|
}
|
|
361
370
|
|
|
362
371
|
/**
|
|
@@ -409,7 +418,7 @@ export function isStringify<T>(input: unknown): string | null;
|
|
|
409
418
|
* @internal
|
|
410
419
|
*/
|
|
411
420
|
export function isStringify(): string | null {
|
|
412
|
-
|
|
421
|
+
NoTransformConfigurationError("json.isStringify");
|
|
413
422
|
}
|
|
414
423
|
|
|
415
424
|
/**
|
|
@@ -464,7 +473,7 @@ export function validateStringify<T>(input: unknown): IValidation<string>;
|
|
|
464
473
|
* @internal
|
|
465
474
|
*/
|
|
466
475
|
export function validateStringify(): IValidation<string> {
|
|
467
|
-
|
|
476
|
+
NoTransformConfigurationError("json.validateStringify");
|
|
468
477
|
}
|
|
469
478
|
|
|
470
479
|
/* -----------------------------------------------------------
|
|
@@ -495,7 +504,7 @@ export function createIsParse<T>(): (input: string) => Primitive<T> | null;
|
|
|
495
504
|
* @internal
|
|
496
505
|
*/
|
|
497
506
|
export function createIsParse<T>(): (input: string) => Primitive<T> | null {
|
|
498
|
-
|
|
507
|
+
NoTransformConfigurationError("json.createIsParse");
|
|
499
508
|
}
|
|
500
509
|
|
|
501
510
|
/**
|
|
@@ -529,7 +538,7 @@ export function createAssertParse<T>(
|
|
|
529
538
|
* @internal
|
|
530
539
|
*/
|
|
531
540
|
export function createAssertParse<T>(): (input: string) => Primitive<T> {
|
|
532
|
-
|
|
541
|
+
NoTransformConfigurationError("json.createAssertParse");
|
|
533
542
|
}
|
|
534
543
|
|
|
535
544
|
/**
|
|
@@ -561,7 +570,7 @@ export function createValidateParse<T>(): (
|
|
|
561
570
|
export function createValidateParse<T>(): (
|
|
562
571
|
input: string,
|
|
563
572
|
) => IValidation<Primitive<T>> {
|
|
564
|
-
|
|
573
|
+
NoTransformConfigurationError("json.createValidateParse");
|
|
565
574
|
}
|
|
566
575
|
|
|
567
576
|
/**
|
|
@@ -589,7 +598,7 @@ export function createStringify<T>(): (input: T) => string;
|
|
|
589
598
|
* @internal
|
|
590
599
|
*/
|
|
591
600
|
export function createStringify<T>(): (input: T) => string {
|
|
592
|
-
|
|
601
|
+
NoTransformConfigurationError("json.createStringify");
|
|
593
602
|
}
|
|
594
603
|
|
|
595
604
|
/**
|
|
@@ -623,7 +632,7 @@ export function createAssertStringify<T>(
|
|
|
623
632
|
* @internal
|
|
624
633
|
*/
|
|
625
634
|
export function createAssertStringify(): (input: unknown) => string {
|
|
626
|
-
|
|
635
|
+
NoTransformConfigurationError("json.createAssertStringify");
|
|
627
636
|
}
|
|
628
637
|
|
|
629
638
|
/**
|
|
@@ -651,7 +660,7 @@ export function createIsStringify<T>(): (input: unknown) => string | null;
|
|
|
651
660
|
* @internal
|
|
652
661
|
*/
|
|
653
662
|
export function createIsStringify(): (input: unknown) => string | null {
|
|
654
|
-
|
|
663
|
+
NoTransformConfigurationError("json.createIsStringify");
|
|
655
664
|
}
|
|
656
665
|
|
|
657
666
|
/**
|
|
@@ -683,14 +692,5 @@ export function createValidateStringify<T>(): (
|
|
|
683
692
|
export function createValidateStringify(): (
|
|
684
693
|
input: unknown,
|
|
685
694
|
) => IValidation<string> {
|
|
686
|
-
|
|
687
|
-
}
|
|
688
|
-
|
|
689
|
-
/**
|
|
690
|
-
* @internal
|
|
691
|
-
*/
|
|
692
|
-
function halt(name: string): never {
|
|
693
|
-
throw new Error(
|
|
694
|
-
`Error on typia.json.${name}(): no transform has been configured. Read and follow https://typia.io/docs/setup please.`,
|
|
695
|
-
);
|
|
695
|
+
NoTransformConfigurationError("json.createValidateStringify");
|
|
696
696
|
}
|
package/src/llm.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { ILlmApplication, ILlmSchema } from "@samchon/openapi";
|
|
2
2
|
|
|
3
|
+
import { NoTransformConfigurationError } from "./transformers/NoTransformConfigurationError";
|
|
4
|
+
|
|
3
5
|
/**
|
|
4
6
|
* > You must configure the generic argument `App`.
|
|
5
7
|
*
|
|
@@ -120,7 +122,7 @@ export function application<
|
|
|
120
122
|
* @internal
|
|
121
123
|
*/
|
|
122
124
|
export function application(): never {
|
|
123
|
-
|
|
125
|
+
NoTransformConfigurationError("llm.application");
|
|
124
126
|
}
|
|
125
127
|
|
|
126
128
|
/**
|
|
@@ -213,7 +215,7 @@ export function parameters<
|
|
|
213
215
|
* @internal
|
|
214
216
|
*/
|
|
215
217
|
export function parameters(): never {
|
|
216
|
-
|
|
218
|
+
NoTransformConfigurationError("llm.parameters");
|
|
217
219
|
}
|
|
218
220
|
|
|
219
221
|
/**
|
|
@@ -329,14 +331,5 @@ export function schema<
|
|
|
329
331
|
* @internal
|
|
330
332
|
*/
|
|
331
333
|
export function schema(): never {
|
|
332
|
-
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
/**
|
|
336
|
-
* @internal
|
|
337
|
-
*/
|
|
338
|
-
function halt(name: string): never {
|
|
339
|
-
throw new Error(
|
|
340
|
-
`Error on typia.llm.${name}(): no transform has been configured. Read and follow https://typia.io/docs/setup please.`,
|
|
341
|
-
);
|
|
334
|
+
NoTransformConfigurationError("llm.schema");
|
|
342
335
|
}
|