aboutsummaryrefslogtreecommitdiff
path: root/src/@types/web-ext-api/index.d.ts
blob: c2ffbb291bd7d104a99a9bc3011855f38d4689f6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
declare namespace browser.tabs {
  function toggleReaderMode(tabId?: number): Promise<void>;
}

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>;
}