UNPKG

@tsed/schema

Version:
15 lines (14 loc) 346 B
import type { JsonSchema } from "../domain/JsonSchema.js"; /** * Declare a new string model with `format: email`. * * See @@JsonSchema@@ to discover available methods. * * ### Example * * ```typescript * const schema = email(); * // Results in: { type: "string", format: "email" } * ``` */ export declare function email(): JsonSchema;