@huolala-tech/page-spy-browser
Version:
A developer tool for debugging remote web page.
17 lines (16 loc) • 716 B
TypeScript
import type { SpyConsole, PageSpyPlugin, OnInitParams } from '@huolala-tech/page-spy-types';
import { InitConfig } from '../config';
export default class ErrorPlugin implements PageSpyPlugin {
name: string;
static hasInitd: boolean;
$pageSpyConfig: InitConfig | null;
onInit({ config }: OnInitParams<InitConfig>): void;
onReset(): void;
onUncaughtError(): void;
onResourceLoadError(): void;
onUnhandledRejectionError(): void;
uncaughtErrorListener: (e: ErrorEvent) => void;
resourceLoadErrorListener: (evt: Event) => void;
rejectionListener: (evt: PromiseRejectionEvent) => void;
sendMessage(data: any, errorDetail: SpyConsole.DataItem['errorDetail'] | null): void;
}