Use TSyringe on content script
This commit is contained in:
parent
71f3a1ea2d
commit
1666e626b0
35 changed files with 398 additions and 433 deletions
|
@ -1,13 +1,12 @@
|
|||
import NavigationPresenter, { NavigationPresenterImpl }
|
||||
from '../presenters/NavigationPresenter';
|
||||
import { injectable, inject } from 'tsyringe';
|
||||
import NavigationPresenter from '../presenters/NavigationPresenter';
|
||||
|
||||
@injectable()
|
||||
export default class NavigateUseCase {
|
||||
private navigationPresenter: NavigationPresenter;
|
||||
|
||||
constructor({
|
||||
navigationPresenter = new NavigationPresenterImpl(),
|
||||
} = {}) {
|
||||
this.navigationPresenter = navigationPresenter;
|
||||
constructor(
|
||||
@inject('NavigationPresenter')
|
||||
private navigationPresenter: NavigationPresenter,
|
||||
) {
|
||||
}
|
||||
|
||||
openHistoryPrev(): void {
|
||||
|
|
Reference in a new issue