move all events to an enum and update guide
This commit is contained in:
13
src/types.ts
13
src/types.ts
@@ -249,3 +249,16 @@ export type actionWithDelay = {
|
||||
doAction: () => void;
|
||||
delay: number;
|
||||
};
|
||||
|
||||
export enum ReplayerEvents {
|
||||
Start = 'start',
|
||||
Pause = 'pause',
|
||||
Resume = 'resume',
|
||||
Resize = 'resize',
|
||||
Finish = 'finish',
|
||||
FullsnapshotRebuilded = 'fullsnapshot-rebuilded',
|
||||
LoadStylesheetStart = 'load-stylesheet-start',
|
||||
LoadStylesheetEnd = 'load-stylesheet-end',
|
||||
SkipStart = 'skip-start',
|
||||
SkipEnd = 'skip-end',
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user