---
url: /api/specs/schema/types/fn/function-email.md
description: api documentation of email from @tsed/schema
---

## Usage

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

> See [/packages/specs/schema/src/fn/email.ts](https://github.com/tsedio/tsed/blob/v8.38.7/packages/specs/schema/src/fn/email.ts#L0-L0).

## Overview

```ts
function email(): import("@tsed/schema").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" }
```
