From 4f0bf98a9f3f0a6d3ffcf1300511023e48b1845b Mon Sep 17 00:00:00 2001 From: yunfeng0817 Date: Sun, 8 Dec 2024 23:46:01 -0800 Subject: [PATCH] fix rrweb-player dts bug --- packages/rrweb-player/src/main.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/rrweb-player/src/main.ts b/packages/rrweb-player/src/main.ts index 6d901732b3..712edf8042 100644 --- a/packages/rrweb-player/src/main.ts +++ b/packages/rrweb-player/src/main.ts @@ -1,6 +1,10 @@ import _Player from './Player.svelte'; import type { RRwebPlayerOptions } from './types'; -export class Player extends _Player { + +// Make sure generated Player type inherit all the props of _Player +type SvelteComponentProps = InstanceType; + +export class Player extends _Player implements SvelteComponentProps { constructor( options: { // for compatibility