aboutsummaryrefslogtreecommitdiff
path: root/src/background/controllers/MarkController.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/background/controllers/MarkController.ts')
-rw-r--r--src/background/controllers/MarkController.ts10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/background/controllers/MarkController.ts b/src/background/controllers/MarkController.ts
index 0478369..419a08b 100644
--- a/src/background/controllers/MarkController.ts
+++ b/src/background/controllers/MarkController.ts
@@ -1,15 +1,17 @@
import MarkUseCase from '../usecases/MarkUseCase';
export default class MarkController {
+ private markUseCase: MarkUseCase;
+
constructor() {
this.markUseCase = new MarkUseCase();
}
- setGlobal(key, x, y) {
- this.markUseCase.setGlobal(key, x, y);
+ setGlobal(key: string, x: number, y: number): Promise<any> {
+ return this.markUseCase.setGlobal(key, x, y);
}
- jumpGlobal(key) {
- this.markUseCase.jumpGlobal(key);
+ jumpGlobal(key: string): Promise<any> {
+ return this.markUseCase.jumpGlobal(key);
}
}