@lastos/page-spy-plugin-mp-eval
Version:
Used for code evaluation in mini program.
17 lines (16 loc) • 698 B
TypeScript
import { Interpreter } from '@huolala-tech/eval5';
import type { OnInitParams, PageSpyPlugin, SpyBase } from '@lastos/page-spy-types';
import type { Atom, SocketStoreBase } from '@lastos/page-spy-base';
export default class MPEvalPlugin implements PageSpyPlugin {
name: string;
static hasInitd: boolean;
protected static interpreter: Interpreter | null;
protected static socketStore: SocketStoreBase | null;
protected static atom: Atom | null;
onInit({ socketStore, atom }: OnInitParams<any>): void;
onReset(): void;
static handleDebugger({ source, }: SpyBase.InteractiveEvent<{
code: string;
nodes: any;
}>, reply: (data: any) => void): void;
}