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
2020-10-10 03:05:10 +02:00
committed by GitHub
parent 4cff4225cf
commit ea0ac76418

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;