Files
rrweb/packages/rrweb-player/src/main.ts
Justin Halsall 905ac51afb Chore: Move most types from rrweb to @rrweb/types package (#1031)
* Chore: Add move most types from rrweb to @rrweb/types package

* Split off type imports

* Split off type import to its own line

* Get vite to generate type definitions

* Apply formatting changes

* noEmit not allowed in tsconfig, moved it to build step

* Align version of @rrweb/types with main rrweb package

Based on @mark-fenng's comments https://github.com/rrweb-io/rrweb/pull/1031/files#r1002298176

* Move up keywords
2026-04-01 12:00:00 +08:00

23 lines
424 B
TypeScript

import type { eventWithTime } from '@rrweb/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;