@huolala-tech/page-spy-browser
Version:
A developer tool for debugging remote web page.
16 lines (15 loc) • 649 B
TypeScript
import type { SpyConsole, PageSpyPlugin, SpyBase, OnInitParams } from '@huolala-tech/page-spy-types';
import type { InitConfig } from '../config';
export default class ConsolePlugin implements PageSpyPlugin {
name: string;
static hasInitd: boolean;
proxyTypes: SpyConsole.ProxyType[];
console: Record<string, any>;
$pageSpyConfig: InitConfig | null;
onInit({ config }: OnInitParams<InitConfig>): Promise<void>;
init(): void;
reset(): void;
onReset(): void;
static handleDebugger({ source }: SpyBase.InteractiveEvent<string>, reply: (data: any) => void): void;
printLog(data: SpyConsole.DataItem): void;
}