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