diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2020-08-11 21:37:08 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2020-08-11 21:40:10 +0900 |
commit | f497109ecc801660dc23bbad8445b120cd75561e (patch) | |
tree | 294242675d42468271336ca0f8d702838b73345f /src/content/presenters/FindPresenter.ts | |
parent | 1f10eac90011e6c3c1ad20ce91b358911dc74dcb (diff) |
Enable @typescript-eslint/no-namespace
Diffstat (limited to 'src/content/presenters/FindPresenter.ts')
-rw-r--r-- | src/content/presenters/FindPresenter.ts | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/content/presenters/FindPresenter.ts b/src/content/presenters/FindPresenter.ts index 117142c..b25190c 100644 --- a/src/content/presenters/FindPresenter.ts +++ b/src/content/presenters/FindPresenter.ts @@ -4,26 +4,6 @@ export default interface FindPresenter { clearSelection(): void; } -// window.find(aString, aCaseSensitive, aBackwards, aWrapAround, -// aWholeWord, aSearchInFrames); -// -// NOTE: window.find is not standard API -// https://developer.mozilla.org/en-US/docs/Web/API/Window/find -interface MyWindow extends Window { - find( - aString: string, - aCaseSensitive?: boolean, - aBackwards?: boolean, - aWrapAround?: boolean, - aWholeWord?: boolean, - aSearchInFrames?: boolean, - aShowDialog?: boolean - ): boolean; -} - -// eslint-disable-next-line no-var, vars-on-top, init-declarations -declare var window: MyWindow; - export class FindPresenterImpl implements FindPresenter { find(keyword: string, backwards: boolean): boolean { const caseSensitive = false; |