Skip to content

email

@tsed/schema

Usage

typescript
import { email } from "@tsed/schema";

See /packages/specs/schema/src/types/fn/email.ts.

Overview

ts
function email(): JsonSchema;

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" }

Released under the MIT License.