improve config definition in the console plugin (#704)

One user encountered a type problem(https://rrweb.slack.com/archives/C01BYDC5C93/p1631683830050900). It turns out that definition of LogReplayConfig isn't perfect
This commit is contained in:
Lucky Feng
2021-09-15 19:25:19 +08:00
committed by GitHub
parent e630cfb88e
commit 875e3c5bd2
4 changed files with 6 additions and 6 deletions

View File

@@ -13,8 +13,8 @@ import {
type ReplayLogger = Partial<Record<LogLevel, (data: LogData) => void>>;
type LogReplayConfig = {
level?: LogLevel[] | undefined;
replayLogger: ReplayLogger | undefined;
level?: LogLevel[];
replayLogger?: ReplayLogger;
};
const ORIGINAL_ATTRIBUTE_NAME = '__rrweb_original__';