temp revert #81

This patch introduce a breaking change in rrweb-record's API, so
we will revert it in 0.7.x and release it in 0.8.
This commit is contained in:
Yanzhen Yu
2026-04-01 12:00:00 +08:00
parent 3d3a51b3de
commit 2be090cc0d
5 changed files with 4 additions and 36 deletions

4
typings/index.d.ts vendored
View File

@@ -1,5 +1,5 @@
import record, { addCustomEvent } from './record';
import record from './record';
import { Replayer } from './replay';
import { mirror } from './utils';
export { EventType, IncrementalSource, MouseInteractions, ReplayerEvents, } from './types';
export { record, addCustomEvent, Replayer, mirror };
export { record, Replayer, mirror };

View File

@@ -1,4 +1,3 @@
import { recordOptions, listenerHandler } from '../types';
export declare function addCustomEvent<T>(tag: string, payload: T): void;
declare function record(options?: recordOptions): listenerHandler | undefined;
export default record;