Types on src/background
This commit is contained in:
parent
0cffb09e24
commit
678020a3a2
48 changed files with 446 additions and 431 deletions
|
@ -1,15 +1,19 @@
|
|||
import LinkUseCase from '../usecases/LinkUseCase';
|
||||
|
||||
export default class LinkController {
|
||||
private linkUseCase: LinkUseCase;
|
||||
|
||||
constructor() {
|
||||
this.linkUseCase = new LinkUseCase();
|
||||
}
|
||||
|
||||
openToTab(url, tabId) {
|
||||
this.linkUseCase.openToTab(url, tabId);
|
||||
openToTab(url: string, tabId: number): Promise<void> {
|
||||
return this.linkUseCase.openToTab(url, tabId);
|
||||
}
|
||||
|
||||
openNewTab(url, openerId, background) {
|
||||
this.linkUseCase.openNewTab(url, openerId, background);
|
||||
openNewTab(
|
||||
url: string, openerId: number, background: boolean,
|
||||
): Promise<void> {
|
||||
return this.linkUseCase.openNewTab(url, openerId, background);
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue