@tsed/schema
Usage
typescript
import { email } from "@tsed/schema";Overview
ts
function email(): import("../index.js").JsonSchema<string>;Description
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" }