How to use the @tsed/di.Inject function in @tsed/di

To help you get started, we’ve selected a few @tsed/di examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github TypedProject / ts-express-decorators / packages / common / src / mvc / services / ExpressRouter.ts View on Github external
export function ExpressRouter(target: Type, targetKey: string, descriptor: TypedPropertyDescriptor | number) {
  return Inject(ExpressRouter)(target, targetKey, descriptor);
}
github TypedProject / ts-express-decorators / packages / common / src / server / decorators / httpsServer.ts View on Github external
export function HttpsServer(target: Type, targetKey: string, descriptor: TypedPropertyDescriptor | number) {
  return Inject(HttpsServer)(target, targetKey, descriptor);
}
github TypedProject / ts-express-decorators / packages / common / src / server / decorators / expressApplication.ts View on Github external
export function ExpressApplication(target: Type, targetKey: string, descriptor: TypedPropertyDescriptor | number) {
  return Inject(ExpressApplication)(target, targetKey, descriptor);
}
github TypedProject / ts-express-decorators / packages / common / src / server / decorators / httpServer.ts View on Github external
export function HttpServer(target: Type, targetKey: string, descriptor: TypedPropertyDescriptor | number) {
  return Inject(HttpServer)(target, targetKey, descriptor);
}