Files
rrweb/packages/rrweb-player/src/main.ts
2026-04-01 12:00:00 +08:00

23 lines
431 B
TypeScript

import type { eventWithTime } from 'rrweb/typings/types';
import _Player from './Player.svelte';
type PlayerProps = {
events: eventWithTime[];
};
class Player extends _Player {
constructor(options: {
target: Element;
props: PlayerProps;
// for compatibility
data?: PlayerProps;
}) {
super({
target: options.target,
props: options.data || options.props,
});
}
}
export default Player;