init the repo and integrate rrweb-snapshot

This commit is contained in:
Yanzhen Yu
2026-04-01 12:00:00 +08:00
commit e2fbecea96
9 changed files with 126 additions and 0 deletions

12
src/types.ts Normal file
View File

@@ -0,0 +1,12 @@
export enum EventType {
DomContentLoaded,
Load,
FullSnapshot,
IncrementalSnapshot,
}
export type event = {
type: EventType;
timestamp: number;
data: any;
};