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

## Usage

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

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

## Overview

```ts
function from<TC extends Type<any> = Type<any>>(): JsonSchema<CtorToType<ObjectConstructor>>;
export function from<TC extends Type<any> = Type<any>>(type?: TC): JsonSchema<CtorToType<TC>>;
```

<!-- Description -->

## Description

Create a new model from the given type.

```typescript
from(String)
```

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