Skip to content

Generics

@tsed/schema

Usage

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

See /packages/specs/schema/src/types/decorators/generics/generics.ts.

Overview

ts
function Generics(...generics: string[]): (target: any) => void;

Description

Define generics list. This list is used by GenericOf and the getJsonSchema function to build the correct JsonSchema.

See GenericOf decorator for more details.

Released under the MIT License.