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:
committed by
GitHub
parent
4cff4225cf
commit
ea0ac76418
2
typings/index.d.ts
vendored
2
typings/index.d.ts
vendored
@@ -14,7 +14,7 @@ export default class rrwebPlayer extends SvelteComponent {
|
|||||||
speedOption?: number[];
|
speedOption?: number[];
|
||||||
showController?: boolean;
|
showController?: boolean;
|
||||||
tags?: Record<string, string>;
|
tags?: Record<string, string>;
|
||||||
} & playerConfig;
|
} & Partial<playerConfig>;
|
||||||
});
|
});
|
||||||
|
|
||||||
addEventListener(event: string, handler: (params: any) => unknown): void;
|
addEventListener(event: string, handler: (params: any) => unknown): void;
|
||||||
|
|||||||
Reference in New Issue
Block a user