# RegistryHook Interface
Module | import { RegistryHook } from "@tsed/core" |
---|---|
Source | /packages/core/src/class/Registry.ts |
# Overview
interface RegistryHook<T> {
/**
*
* @param {RegistryKey} key
* @param {T} item
*/
onCreate?(key: RegistryKey, item: T): void;
}
# Members
onCreate?(key: RegistryKey, item: T): void;
- 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