Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix(replay): Ensure rrweb types are properly published
rrweb only exposes `typings/entries/all` in it's package.json, so we need to import from there. For this, we need another patch to ensure the things we need are actually re-exported from there.
  • Loading branch information
mydea committed Dec 7, 2022
commit 3a8416772516a39f995182a7701ffe6a14162122
2 changes: 1 addition & 1 deletion packages/replay/src/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { eventWithTime, recordOptions } from 'rrweb/typings/types';
import type { eventWithTime, recordOptions } from 'rrweb/typings/entries/all';

export type RecordingEvent = eventWithTime;
export type RecordingOptions = recordOptions<eventWithTime>;
Expand Down
13 changes: 13 additions & 0 deletions patches/rrweb+1.1.3.patch
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,16 @@ index 8091399..48e8321 100644
});
var init_1 = function () {
takeFullSnapshot();
diff --git a/node_modules/rrweb/typings/index.d.ts b/node_modules/rrweb/typings/index.d.ts
index 6b6d18d..31456a0 100644
--- a/node_modules/rrweb/typings/index.d.ts
+++ b/node_modules/rrweb/typings/index.d.ts
@@ -2,7 +2,7 @@ import record from './record';
import { Replayer } from './replay';
import { _mirror } from './utils';
import * as utils from './utils';
-export { EventType, IncrementalSource, MouseInteractions, ReplayerEvents, } from './types';
+export { EventType, IncrementalSource, MouseInteractions, ReplayerEvents, eventWithTime, recordOptions } from './types';
declare const addCustomEvent: <T>(tag: string, payload: T) => void;
declare const freezePage: () => void;
export { record, addCustomEvent, freezePage, Replayer, _mirror as mirror, utils, };