mirror of
https://github.com/primedigitaltech/azon_seeker.git
synced 2026-01-24 07:53:13 +08:00
24 lines
514 B
TypeScript
24 lines
514 B
TypeScript
import type { ProtocolWithReturn } from 'webext-bridge';
|
|
|
|
declare module 'webext-bridge' {
|
|
export interface ProtocolMap {
|
|
// define message protocol types
|
|
// see https://github.com/antfu/webext-bridge#type-safe-protocols
|
|
'html-to-image': ProtocolWithReturn<
|
|
| {
|
|
type: 'CSS';
|
|
selector: string;
|
|
}
|
|
| {
|
|
type: 'XPath';
|
|
xpath: string;
|
|
},
|
|
{ b64: string }
|
|
>;
|
|
}
|
|
}
|
|
|
|
declare global {
|
|
type AppContext = 'options' | 'sidepanel';
|
|
}
|