webext-schema 5.6.1 → 7.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20,7 +20,7 @@ export function getManifestIcons(): object | string;
20
20
  export function getManifestVersion(): number;
21
21
  export function getOs(): Promise<string>;
22
22
  export function makeConnection(id?: number | string, info?: object | boolean): Promise<object>;
23
- export function sendMessage(id: number | string, msg: any, opt: object): Promise<object>;
23
+ export function sendMessage(id: number | string, msg: string | any[] | object, opt: object): Promise<object>;
24
24
  export function isScriptingAvailable(): Promise<boolean>;
25
25
  export function executeScriptToTab(opt?: object): Promise<Array<object> | null>;
26
26
  export function searchInNewTab(text: string, opt: object): Promise<object>;
@@ -31,15 +31,15 @@ export function restoreSession(sessionId: string): Promise<object>;
31
31
  export function setSessionWindowValue(key: string, value: string | object, windowId?: number): Promise<void>;
32
32
  export function clearStorage(area?: string): Promise<void>;
33
33
  export function getAllStorage(area?: string): Promise<object>;
34
- export function getStorage(key: any, area?: string): Promise<object>;
35
- export function removeStorage(key: any, area?: string): Promise<void>;
34
+ export function getStorage(key: string | any[] | object, area?: string): Promise<object>;
35
+ export function removeStorage(key: string | any[] | object, area?: string): Promise<void>;
36
36
  export function setStorage(obj: object, area?: string): Promise<void>;
37
37
  export function createTab(opt?: object): Promise<object>;
38
38
  export function duplicateTab(tabId: number, opt: object): Promise<object>;
39
39
  export function queryTabs(opt: object): Promise<Array<object>>;
40
40
  export function execScriptToTab(tabId: number | object, opt?: object): Promise<(any[] | boolean) | null>;
41
41
  export function execScriptToTabs(opt?: object): Promise<any[]>;
42
- export function execScriptsToTabInOrder(tabId: number | any[], opts?: any[]): Promise<any>;
42
+ export function execScriptsToTabInOrder(tabId: number | any[], opts?: any[]): Promise<(any[] | boolean) | null>;
43
43
  export function getActiveTab(windowId?: number): Promise<object>;
44
44
  export function getActiveTabId(windowId?: number): Promise<number | null>;
45
45
  export function getAllTabsInWindow(windowId?: number): Promise<Array<object>>;
@@ -52,7 +52,7 @@ export function removeTab(arg: number | any[]): Promise<void>;
52
52
  export function updateTab(tabId: number, opt: object): Promise<object>;
53
53
  export function warmupTab(tabId: number): Promise<void>;
54
54
  export function captureVisibleTab(windowId: number, opt: object): Promise<string | null>;
55
- export function isTab(tabId: any): Promise<boolean>;
55
+ export function isTab(tabId: number): Promise<boolean>;
56
56
  export function getCurrentTheme(windowId?: number): Promise<object>;
57
57
  export function createNewWindow(opt: object): Promise<object>;
58
58
  export function getAllNormalWindows(populate?: boolean): Promise<Array<object>>;
@@ -1,7 +1,7 @@
1
1
  export function throwErr(e: object): never;
2
2
  export function logErr(e: object): boolean;
3
- export function logWarn(msg: any): boolean;
4
- export function logMsg(msg: any): any;
5
- export function getType(o: any): string;
6
- export function isObjectNotEmpty(o: any): boolean;
7
- export function isString(o: any): boolean;
3
+ export function logWarn(msg: string | object): boolean;
4
+ export function logMsg(msg: string | object): string | object;
5
+ export function getType(o: object): string;
6
+ export function isObjectNotEmpty(o: object): boolean;
7
+ export function isString(o: object): boolean;
@@ -1,4 +1,3 @@
1
- export const ESR_VER: 115;
2
1
  export function fetchText(url: string): Promise<string>;
3
2
  export function getChannelUrl(channel: string): string;
4
3
  export function getSchemaData(file: string, baseUrl: string): Promise<object>;