diff options
author | Max Baumann <[email protected]> | 2020-12-14 23:37:35 +0100 |
---|---|---|
committer | Max Baumann <[email protected]> | 2020-12-14 23:37:35 +0100 |
commit | 5d0559aebd4fead6c4e8ee9725ff25d859ef59c0 (patch) | |
tree | 2972ac68e51ba0af7f44f1d0ebe6d2d8677df71a /src/globals.d.ts | |
parent | 70667a43d74a3cbeea3dd8f2d66f8a23f6ad0ffe (diff) | |
download | SponsorBlock-5d0559aebd4fead6c4e8ee9725ff25d859ef59c0.tar.gz SponsorBlock-5d0559aebd4fead6c4e8ee9725ff25d859ef59c0.zip |
refactor: remove dead code, add more types
Diffstat (limited to 'src/globals.d.ts')
-rw-r--r-- | src/globals.d.ts | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/globals.d.ts b/src/globals.d.ts new file mode 100644 index 00000000..ed8547a0 --- /dev/null +++ b/src/globals.d.ts @@ -0,0 +1,19 @@ +import { SBObject } from "./config"; +declare global { + interface Window { SB: SBObject; } + // Remove this once the API becomes stable and types are shipped in @types/chrome + namespace chrome { + namespace declarativeContent { + export interface RequestContentScriptOptions { + allFrames?: boolean; + css?: string[]; + instanceType?: "declarativeContent.RequestContentScript"; + js?: string[]; + matchAboutBlanck?: boolean; + } + export class RequestContentScript { + constructor(options: RequestContentScriptOptions); + } + } + } +} |