@lastos/page-spy-plugin-rrweb
Version:
Record the DOM mutation within PageSpy.
18 lines (17 loc) • 629 B
TypeScript
import { OnInitParams, PageSpyPlugin } from '@lastos/page-spy-types';
import { InitConfigBase } from '@lastos/page-spy-base';
import type { recordOptions } from 'rrweb';
import type { eventWithTime, listenerHandler } from '@rrweb/types';
interface Options extends recordOptions<eventWithTime> {
allowOnline?: true;
}
export default class RRWebPlugin implements PageSpyPlugin {
options: Options;
name: string;
stopListener: listenerHandler | null;
static hasInited: boolean;
constructor(options?: Options);
onInit({ socketStore }: OnInitParams<InitConfigBase>): void;
onReset(): void;
}
export {};