Skip to content

Commit

Permalink
docs: update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
wfk007 committed Dec 24, 2024
1 parent 62bb188 commit cfb0dc7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
1 change: 0 additions & 1 deletion packages/rrweb/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,6 @@ export type MergeOptions = {
// row events to deal with
events: eventWithTime[];
// options for take fullsnapshot, and mirror is required
// snapshotOptions: Parameters<typeof snapshot>[1];
snapshotOptions: Parameters<typeof snapshot>[1] & { mirror: Mirror };
// startTimeStamp to generate from
startTimeStamp: number;
Expand Down
20 changes: 10 additions & 10 deletions packages/rrweb/test/events/merge-events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { eventWithTime } from '@rrweb/types';

const events: eventWithTime[] = [
{
type: 4,
type: EventType.Meta,
data: {
href: 'http://localhost',
width: 417,
Expand All @@ -12,7 +12,7 @@ const events: eventWithTime[] = [
timestamp: 1734952276181,
},
{
type: 2,
type: EventType.FullSnapshot,
data: {
node: {
type: 0,
Expand Down Expand Up @@ -314,39 +314,39 @@ const events: eventWithTime[] = [
timestamp: 1734952276197,
},
{
type: 3,
type: EventType.IncrementalSnapshot,
data: {
source: 5,
source: IncrementalSource.Input,
text: 'dog',
isChecked: false,
id: 15,
},
timestamp: 1734952277674,
},
{
type: 3,
type: EventType.IncrementalSnapshot,
data: {
source: 5,
source: IncrementalSource.Input,
text: 'cat',
isChecked: false,
id: 15,
},
timestamp: 1734952279091,
},
{
type: 3,
type: EventType.IncrementalSnapshot,
data: {
source: 5,
source: IncrementalSource.Input,
text: 'on',
isChecked: false,
id: 29,
},
timestamp: 1734952280046,
},
{
type: 3,
type: EventType.IncrementalSnapshot,
data: {
source: 5,
source: IncrementalSource.Input,
text: 'on',
isChecked: true,
id: 29,
Expand Down

0 comments on commit cfb0dc7

Please sign in to comment.