typedi#Inject TypeScript Examples
The following examples show how to use
typedi#Inject.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SaveTxs.ts From TXQ with MIT License | 6 votes |
constructor(
@Inject('eventService') private eventService,
@Inject('updatelogService') private updatelogService,
@Inject('txoutgroupService') private txoutgroupService,
@Inject('queueService') private queueService,
@Inject('txsyncService') private txsyncService,
@Inject('txService') private txService,
@Inject('getTx') private getTx,
@Inject('txinService') private txinService,
@Inject('txmetaService') private txmetaService,
@Inject('txoutService') private txoutService,
@Inject('spendService') private spendService,
@Inject('logger') private logger
) {
super();
}
Example #2
Source File: cookie.ts From ql with MIT License | 5 votes |
constructor(@Inject('logger') private logger: winston.Logger) {
this.cronDb.loadDatabase((err) => {
if (err) throw err;
});
}
Example #3
Source File: auth.ts From nodejs-typescript-graphql-starter with MIT License | 5 votes |
constructor(
@Inject('userModel') private userModel: Models.UserModel,
private mailer: MailerService,
@Inject('logger') private logger,
@EventDispatcher() private eventDispatcher: EventDispatcherInterface,
) {}
Example #4
Source File: index.ts From TXQ with MIT License | 5 votes |
constructor(@Inject('db') private db: ContextFactory) {}
Example #5
Source File: CashTransactionService.ts From cashcash-desktop with MIT License | 5 votes |
@Inject((type) => CashSplitSumService)
private cashSplitSumService: CashSplitSumService;
Example #6
Source File: index.ts From TXQ with MIT License | 5 votes |
constructor(@Inject('txmetaModel') private txmetaModel, @Inject('logger') private logger) {}