typia 6.9.0 → 6.10.0-dev.20240823
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/json.d.ts +1 -1
- package/lib/schemas/json/IJsonApplication.d.ts +5 -3
- package/package.json +1 -1
- package/src/factories/MetadataCommentTagFactory.ts +534 -534
- package/src/json.ts +738 -738
- package/src/schemas/json/IJsonApplication.ts +22 -16
- package/src/utils/Escaper.ts +46 -46
package/lib/json.d.ts
CHANGED
|
@@ -40,7 +40,7 @@ export declare function application(): never;
|
|
|
40
40
|
*
|
|
41
41
|
* @author Jeongho Nam - https://github.com/samchon
|
|
42
42
|
*/
|
|
43
|
-
export declare function application<Types extends unknown[], Version extends "3.0" | "3.1" = "3.1">(): IJsonApplication<Version>;
|
|
43
|
+
export declare function application<Types extends unknown[], Version extends "3.0" | "3.1" = "3.1">(): IJsonApplication<Version, Types>;
|
|
44
44
|
/**
|
|
45
45
|
* > You must configure the generic argument `T`.
|
|
46
46
|
*
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import type { OpenApi, OpenApiV3 } from "@samchon/openapi";
|
|
2
|
-
export type IJsonApplication<Version extends "3.0" | "3.1" = "3.1"> = Version extends "3.0" ? IJsonApplication.IV3_0 : IJsonApplication.IV3_1
|
|
2
|
+
export type IJsonApplication<Version extends "3.0" | "3.1" = "3.1", Types = unknown[]> = Version extends "3.0" ? IJsonApplication.IV3_0<Types> : IJsonApplication.IV3_1<Types>;
|
|
3
3
|
export declare namespace IJsonApplication {
|
|
4
|
-
interface IV3_0 {
|
|
4
|
+
interface IV3_0<Types = unknown[]> {
|
|
5
5
|
version: "3.0";
|
|
6
6
|
schemas: OpenApiV3.IJsonSchema[];
|
|
7
7
|
components: OpenApiV3.IComponents;
|
|
8
|
+
__types?: Types | undefined;
|
|
8
9
|
}
|
|
9
|
-
interface IV3_1 {
|
|
10
|
+
interface IV3_1<Types = unknown[]> {
|
|
10
11
|
version: "3.1";
|
|
11
12
|
components: OpenApi.IComponents;
|
|
12
13
|
schemas: OpenApi.IJsonSchema[];
|
|
14
|
+
__types?: Types | undefined;
|
|
13
15
|
}
|
|
14
16
|
}
|