# StoreFn Decorator
Module | import { StoreFn } from "@tsed/core" |
---|---|
Source | /packages/core/src/decorators/storeFn.ts |
# Overview
function StoreFn(fn: (store: Store, parameters: DecoratorParameters) => void): Function;
# Description
Create a store correctly configured from the parameters given by the decorator.
The fn
can return a decorator that will be initialized with the parameters (target, propertyKey, descriptor).
- Session & cookies
- Passport.js
- TypeORM
- Mongoose
- GraphQL
- Socket.io
- Swagger
- AJV
- Multer
- Serve static files
- Templating
- Throw HTTP Exceptions
- Customize 404
- AWS
- Jest
- Seq
- Controllers
- Providers
- Model
- Converters
- Middlewares
- Pipes
- Interceptors
- Authentication
- Hooks
- Injection scopes
- Custom providers
- Custom endpoint decorator
- Testing