mirror of
https://github.com/luxfi/page-provider.git
synced 2026-10-30 15:22:37 +00:00
13 lines
420 B
TypeScript
13 lines
420 B
TypeScript
import { Runtime } from "webextension-polyfill";
|
|
import Message from "./index";
|
|
declare class PortMessage extends Message {
|
|
port: Runtime.Port | null;
|
|
listenCallback: any;
|
|
constructor(port?: Runtime.Port);
|
|
connect: (name?: string | undefined) => this;
|
|
listen: (listenCallback: any) => this | undefined;
|
|
send: (type: any, data: any) => void;
|
|
dispose: () => void;
|
|
}
|
|
export default PortMessage;
|