mirror of
https://github.com/primedigitaltech/azon_seeker.git
synced 2026-01-19 13:13:22 +08:00
20 lines
449 B
TypeScript
20 lines
449 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 }
|
|
>;
|
|
}
|
|
}
|