---
meta:
 - name: keywords
   description: api typescript node.js documentation integer function
---
# integer - @tsed/schema

## Usage

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

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

## Overview

```ts
function integer(): import("../index.js").JsonSchema<number>;
```

<!-- Description -->

## Description

Declare a new integer model.

See [JsonSchema](/ai/api/specs/schema/types/domain/class-json-schema.md) to discover available methods.
