UNPKG

@lastos/page-spy-react-native

Version:

An SDK of PageSpy for debugging react native app

16 lines (15 loc) 643 B
import type { SpyConsole, PageSpyPlugin, OnInitParams, SpyBase } from '@lastos/page-spy-types'; import type { InitConfig } from '../config'; export default class ConsolePlugin implements PageSpyPlugin { name: string; console: Record<string, any>; static hasInitd: boolean; proxyTypes: SpyConsole.ProxyType[]; $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; }