Skip to content

Commit

Permalink
Update types
Browse files Browse the repository at this point in the history
  • Loading branch information
asamuzaK committed Oct 6, 2024
1 parent 435297c commit 08b818e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion types/src/mjs/exec-copy.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export function execCopy(opt?: object): void;
export function execCopy(opt?: object): Promise<void>;
12 changes: 6 additions & 6 deletions types/src/mjs/main.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ export function getAllTabsInfo(menuItemId: string): Promise<any[]>;
export function getOtherTabsInfo(menuItemId: string): Promise<any[]>;
export function getSelectedTabsInfo(menuItemId: string): Promise<any[]>;
export function getContextInfo(tabId?: number): Promise<object>;
export function sendContextInfo(): Promise<any> | null;
export function extractClickedData(info?: object, tab?: object): Promise<any[]>;
export function handleActiveTab(info?: object): Promise<any> | null;
export function handleUpdatedTab(tabId: number, info?: object, tab?: object): Promise<any> | null;
export function handleCmd(cmd: string, tab: object): Promise<any> | null;
export function sendContextInfo(): Promise<any>;
export function extractClickedData(info?: object, tab?: object): Promise<any>;
export function handleActiveTab(info?: object): Promise<any>;
export function handleUpdatedTab(tabId: number, info?: object, tab?: object): Promise<any>;
export function handleCmd(cmd: string, tab: object): Promise<any>;
export function handleMsg(msg?: object): Promise<any[]>;
export function setStorageValue(item: string, obj?: object, changed?: boolean): Promise<any[]>;
export function setStorageValue(item: string, obj?: object, changed?: boolean): Promise<any>;
export function handleStorage(data: object, area?: string, changed?: boolean): Promise<any[]>;
export function startup(): Promise<any>;
export { enabledFormats };
Expand Down
4 changes: 2 additions & 2 deletions types/src/mjs/popup-main.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ export namespace tabInfo {
let tab: any;
}
export function setTabInfo(tab?: object): Promise<void>;
export function createCopyData(evt?: object): Promise<any> | null;
export function createCopyData(evt?: object): Promise<any>;
export function closeWindow(): void;
export function openOptionsOnClick(): Promise<any>;
export function menuOnClick(evt?: object): Promise<any>;
export function addListenerToMenu(): Promise<void>;
export function toggleMenuItem(): Promise<void>;
export function updateMenu(data?: object): Promise<void>;
export function prepareTab(): Promise<any[]>;
export function prepareTab(): Promise<any>;
export function handleMsg(msg: object): Promise<any[]>;
export function setStorageValue(item: string, obj: object): void;
export function handleStorage(data?: object): Promise<any[]>;
Expand Down

0 comments on commit 08b818e

Please sign in to comment.