move all events to an enum and update guide

This commit is contained in:
Yanzhen Yu
2019-01-25 17:18:51 +08:00
parent 079880be1e
commit 6abf4fd4a0
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 {};