typia
Version:
Superfast runtime validators with only one line
58 lines • 1.82 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
// export interface IJsonApplication<
// Version extends "3.0" | "3.1" = "3.1",
// App extends any = object,
// > {
// version: Version;
// components: IJsonApplication.IComponents<IJsonApplication.Schema<Version>>;
// functions: IJsonApplication.IFunction<IJsonApplication.Schema<Version>>[];
// __application?: App | undefined;
// }
// export namespace IJsonApplication {
// export type Schema<Version extends "3.0" | "3.1"> = Version extends "3.1"
// ? OpenApi.IJsonSchema
// : OpenApiV3.IJsonSchema;
// export interface IComponents<
// Schema extends
// | OpenApi.IJsonSchema
// | OpenApiV3.IJsonSchema = OpenApi.IJsonSchema,
// > {
// schemas?: Record<string, Schema>;
// }
// export interface IFunction<
// Schema extends
// | OpenApi.IJsonSchema
// | OpenApiV3.IJsonSchema = OpenApi.IJsonSchema,
// > {
// async: boolean;
// name: string;
// parameters: IParameter<Schema>[];
// output: IOutput<Schema> | undefined;
// summary?: string | undefined;
// description?: string | undefined;
// deprecated?: boolean;
// tags?: string[];
// }
// export interface IParameter<
// Schema extends
// | OpenApi.IJsonSchema
// | OpenApiV3.IJsonSchema = OpenApi.IJsonSchema,
// > {
// name: string;
// required: boolean;
// schema: Schema;
// title?: string | undefined;
// description?: string | undefined;
// }
// export interface IOutput<
// Schema extends
// | OpenApi.IJsonSchema
// | OpenApiV3.IJsonSchema = OpenApi.IJsonSchema,
// > {
// schema: Schema;
// required: boolean;
// description?: string | undefined;
// }
// }
//# sourceMappingURL=IJsonApplication.js.map