@tsed/schema
Version:
JsonSchema module for Ts.ED Framework
16 lines (15 loc) • 341 B
TypeScript
/**
* 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" }
* ```
*
* @schemaFunctional
*/
export declare function email(): import("../index.js").JsonSchema<string>;