* temp: plugin API * fix a bug in the replay handler and rename some type names. * update integration test * improve plugin types and handle legacy log data * use different naming in record and replay bundles * delete unreferenced types Co-authored-by: Lucky Feng <294889365@qq.com>
10 lines
387 B
TypeScript
10 lines
387 B
TypeScript
import { LogLevel, LogData } from '../record';
|
|
import { ReplayPlugin } from '../../../types';
|
|
declare type ReplayLogger = Partial<Record<LogLevel, (data: LogData) => void>>;
|
|
declare type LogReplayConfig = {
|
|
level?: LogLevel[] | undefined;
|
|
replayLogger: ReplayLogger | undefined;
|
|
};
|
|
export declare const getLogReplayPlugin: (options?: LogReplayConfig) => ReplayPlugin;
|
|
export {};
|