blob: 9e77124dd8a2b127b748949f7a9b57015c0d8709 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
import { inject, injectable } from "tsyringe";
import FindPresenter from "../presenters/FindPresenter";
@injectable()
export default class FindUseCase {
constructor(
@inject("FindPresenter")
private readonly findPresenter: FindPresenter
) {}
findNext(keyword: string): boolean {
return this.findPresenter.find(keyword, false);
}
findPrev(keyword: string): boolean {
return this.findPresenter.find(keyword, true);
}
clearSelection() {
this.findPresenter.clearSelection();
}
}
|