---
url: /api/specs/schema/types/components/mappers/default/function-of-mapper.md
description: api documentation of ofMapper from @tsed/schema
---

## Usage

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

> See [/packages/specs/schema/src/components/mappers/default/ofMapper.ts](https://github.com/tsedio/tsed/blob/v8.37.1/packages/specs/schema/src/components/mappers/default/ofMapper.ts#L0-L0).

## Overview

```ts
function ofMapper(input: (any | JsonSchema)[], options: JsonSchemaOptions): any[];
```
