# Decorator Generics
Decorator validation swagger schema input genericsModule | import { Generics } from "@tsed/schema" |
---|---|
Source | /packages/schema/src/decorators/generics/generics.ts |
# Overview
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.
Other topics
- Session & cookies
- Passport.js
- TypeORM
- Mongoose
- GraphQL
- Socket.io
- Swagger
- AJV
- Multer
- Serve static files
- Templating
- Throw HTTP Exceptions
- Customize 404
- AWS
- Seq
- OIDC
- Stripe
- Controllers
- Providers
- Model
- JsonMapper
- Middlewares
- Pipes
- Interceptors
- Authentication
- Hooks
- Exceptions
- Hooks
- Response Filter
- Injection scopes
- Custom providers
- Custom endpoint decorator
- Testing