Use TSyringe on background script

This commit is contained in:
Shin'ya Ueoka 2019-05-19 21:34:08 +09:00
parent c7803e7c29
commit cdfd54ed99
37 changed files with 212 additions and 202 deletions

View file

@ -1,10 +1,11 @@
import { injectable } from 'tsyringe';
import FindUseCase from '../usecases/FindUseCase';
@injectable()
export default class FindController {
private findUseCase: FindUseCase;
constructor() {
this.findUseCase = new FindUseCase();
constructor(
private findUseCase: FindUseCase,
) {
}
getKeyword(): Promise<string> {