move all events to an enum and update guide

This commit is contained in:
Yanzhen Yu
2026-04-01 12:00:00 +08:00
parent 3c51f79229
commit e2bc867b2e
4 changed files with 55 additions and 9 deletions

11
typings/types.d.ts vendored
View File

@@ -198,4 +198,15 @@ export declare type actionWithDelay = {
doAction: () => void;
delay: number;
};
export declare enum ReplayerEvents {
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"
}
export {};