Skip to content

Commit

Permalink
fix rrweb-player dts bug
Browse files Browse the repository at this point in the history
  • Loading branch information
YunFeng0817 committed Dec 9, 2024
1 parent 6483853 commit 4f0bf98
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/rrweb-player/src/main.ts
Original file line number Diff line number Diff line change
@@ -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<typeof _Player>;

export class Player extends _Player implements SvelteComponentProps {
constructor(
options: {
// for compatibility
Expand Down

0 comments on commit 4f0bf98

Please sign in to comment.