Update rrwebPlayer types (#46)

Without this change, the following fails to compile in typescript:

```js
new rrwebPlayer({
                target: document.body,
                props: {
                    width: 900,
                    events,
                    autoPlay: true,
                },
            })
```
This commit is contained in:
Karl-Aksel Puulmann
2026-04-01 12:00:00 +08:00
committed by GitHub
parent e3c93f261d
commit b06005cf40

2
typings/index.d.ts vendored
View File

@@ -14,7 +14,7 @@ export default class rrwebPlayer extends SvelteComponent {
speedOption?: number[];
showController?: boolean;
tags?: Record<string, string>;
} & playerConfig;
} & Partial<playerConfig>;
});
addEventListener(event: string, handler: (params: any) => unknown): void;