UNPKG

@tsed/schema

Version:
15 lines (14 loc) 326 B
import { Type } from "@tsed/core"; import { JsonSchema } from "../domain/JsonSchema.js"; /** * Create a new model from the given type. * * ```typescript * from(String) * ``` * * * See @@JsonSchema@@ to discover available methods. * * @schemaFunctional */ export declare function from(type?: Type<any>): JsonSchema;