Skip to content

Generics

@tsed/schema

Usage ​

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

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

Overview ​

ts
function Generics(...genericLabels: string[]): ClassDecorator;

Description ​

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

See GenericOf decorator for more details.

Released under the MIT License.