rename console replay plugin

This commit is contained in:
Yanzhen Yu
2021-07-01 11:01:42 +08:00
parent ab1bc47834
commit ea48910463
2 changed files with 4 additions and 4 deletions

View File

@@ -108,9 +108,9 @@ class LogReplayPlugin {
} }
} }
export const getLogReplayPlugin: (options?: LogReplayConfig) => ReplayPlugin = ( export const getReplayConsolePlugin: (
options, options?: LogReplayConfig,
) => { ) => ReplayPlugin = (options) => {
const replayLogger = const replayLogger =
options?.replayLogger || new LogReplayPlugin(options).getConsoleLogger(); options?.replayLogger || new LogReplayPlugin(options).getConsoleLogger();

View File

@@ -5,5 +5,5 @@ declare type LogReplayConfig = {
level?: LogLevel[] | undefined; level?: LogLevel[] | undefined;
replayLogger: ReplayLogger | undefined; replayLogger: ReplayLogger | undefined;
}; };
export declare const getLogReplayPlugin: (options?: LogReplayConfig) => ReplayPlugin; export declare const getReplayConsolePlugin: (options?: LogReplayConfig) => ReplayPlugin;
export {}; export {};