@tsed/schema
Version:
JsonSchema module for Ts.ED Framework
15 lines (14 loc) • 346 B
TypeScript
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;