Types src/content
This commit is contained in:
parent
992b3ac65d
commit
d01db82c0d
62 changed files with 1411 additions and 468 deletions
|
@ -1,4 +1,4 @@
|
|||
import operations from '../../shared/operations';
|
||||
import * as operations from '../../shared/operations';
|
||||
import FindUseCase from '../usecases/FindUseCase';
|
||||
import ConsoleUseCase from '../usecases/ConsoleUseCase';
|
||||
import TabUseCase from '../usecases/TabUseCase';
|
||||
|
@ -25,7 +25,7 @@ export default class OperationController {
|
|||
}
|
||||
|
||||
// eslint-disable-next-line complexity, max-lines-per-function
|
||||
exec(operation: any): Promise<any> {
|
||||
exec(operation: operations.Operation): Promise<any> {
|
||||
switch (operation.type) {
|
||||
case operations.TAB_CLOSE:
|
||||
return this.tabUseCase.close(false);
|
||||
|
|
|
@ -7,7 +7,7 @@ export default class VersionController {
|
|||
this.versionUseCase = new VersionUseCase();
|
||||
}
|
||||
|
||||
notify(): void {
|
||||
notify(): Promise<void> {
|
||||
return this.versionUseCase.notify();
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue