From ea0ac76418ccaa45522fc35cbbdb63ea3bd452a7 Mon Sep 17 00:00:00 2001 From: Karl-Aksel Puulmann Date: Sat, 10 Oct 2020 03:05:10 +0200 Subject: [PATCH] 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, }, }) ``` --- typings/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typings/index.d.ts b/typings/index.d.ts index a518fb2c..9a34d330 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -14,7 +14,7 @@ export default class rrwebPlayer extends SvelteComponent { speedOption?: number[]; showController?: boolean; tags?: Record; - } & playerConfig; + } & Partial; }); addEventListener(event: string, handler: (params: any) => unknown): void;