UNPKG

@tsed/schema

Version:
14 lines (13 loc) 485 B
import type { JsonSchema } from "../domain/JsonSchema.js"; import type { Infer } from "../domain/types.js"; /** * Declare a model with any type (By default: `integer`, `number`, `string`, `boolean`, `array`, `object`, `null`) * * See @@JsonSchema@@ to discover available methods. * * @schemaFunctional */ export declare function any(): JsonSchema<any>; export declare function any<S extends Array<JsonSchema<any>>>(...types: S): JsonSchema<{ [K in keyof S]: Infer<S[K]>; }>;