aboutsummaryrefslogtreecommitdiff
path: root/src/@types/web-ext-api
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2020-08-11 21:37:08 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2020-08-11 21:40:10 +0900
commitf497109ecc801660dc23bbad8445b120cd75561e (patch)
tree294242675d42468271336ca0f8d702838b73345f /src/@types/web-ext-api
parent1f10eac90011e6c3c1ad20ce91b358911dc74dcb (diff)
Enable @typescript-eslint/no-namespace
Diffstat (limited to 'src/@types/web-ext-api')
-rw-r--r--src/@types/web-ext-api/index.d.ts14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/@types/web-ext-api/index.d.ts b/src/@types/web-ext-api/index.d.ts
new file mode 100644
index 0000000..7eed334
--- /dev/null
+++ b/src/@types/web-ext-api/index.d.ts
@@ -0,0 +1,14 @@
+declare namespace browser.browserSettings.homepageOverride {
+ type BrowserSettings = {
+ value: string;
+ levelOfControl: LevelOfControlType;
+ };
+
+ type LevelOfControlType =
+ | "not_controllable"
+ | "controlled_by_other_extensions"
+ | "controllable_by_this_extension"
+ | "controlled_by_this_extension";
+
+ function get(param: { [key: string]: string }): Promise<BrowserSettings>;
+}