aboutsummaryrefslogtreecommitdiff
path: root/src/background/controllers/AddonEnabledController.ts
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2019-05-01 11:04:24 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2019-05-02 22:07:53 +0900
commit678020a3a27713e77ec8d74483122b4258fbc829 (patch)
tree6c84d0965f05918e6fd58a0a155c15035474d563 /src/background/controllers/AddonEnabledController.ts
parent0cffb09e249832291be73be039dc1b9bb38115f9 (diff)
Types on src/background
Diffstat (limited to 'src/background/controllers/AddonEnabledController.ts')
-rw-r--r--src/background/controllers/AddonEnabledController.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/background/controllers/AddonEnabledController.ts b/src/background/controllers/AddonEnabledController.ts
index 9a3a521..251af25 100644
--- a/src/background/controllers/AddonEnabledController.ts
+++ b/src/background/controllers/AddonEnabledController.ts
@@ -1,11 +1,13 @@
import AddonEnabledUseCase from '../usecases/AddonEnabledUseCase';
export default class AddonEnabledController {
+ private addonEnabledUseCase: AddonEnabledUseCase;
+
constructor() {
this.addonEnabledUseCase = new AddonEnabledUseCase();
}
- indicate(enabled) {
+ indicate(enabled: boolean): Promise<any> {
return this.addonEnabledUseCase.indicate(enabled);
}
}