-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathshim.d.ts
More file actions
30 lines (29 loc) · 694 Bytes
/
shim.d.ts
File metadata and controls
30 lines (29 loc) · 694 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import { ProtocolWithReturn } from 'webext-bridge';
// type GetBannerRequest = {
// key: string;
// };
// type GetBannerResponse = {data: number};
declare module 'webext-bridge' {
export interface ProtocolMap {
// define message protocol types
// see https://github.com/antfu/webext-bridge#type-safe-protocols
'tab-prev': { title: string | undefined };
'get-current-tab': ProtocolWithReturn<
{ tabId: number },
{ title: string }
>;
'upload-banner': {
key: string;
data: string;
};
'get-banner': ProtocolWithReturn<
{
key: string;
},
string | null
>;
'mv3-upload-racetrack': string;
'mv2-rebuild-racetrack': {};
'mv3-update-adblock': {};
}
}