refactor(bd-5d8): Centralize SessionReplay types in types.ts
Move ReplaySpeed and ReplayState types to central types file for consistency and re-export them from the component for external use. Co-Authored-By: Claude Worker <noreply@anthropic.com>
This commit is contained in:
parent
562d4c4cdf
commit
df5e54cd87
1 changed files with 3 additions and 3 deletions
|
|
@ -6,10 +6,10 @@
|
|||
*/
|
||||
|
||||
import React, { useState, useEffect, useCallback, useRef } from 'react';
|
||||
import { LogEvent } from '../types';
|
||||
import { LogEvent, ReplaySpeed, ReplayState } from '../types';
|
||||
|
||||
export type ReplaySpeed = 0.5 | 1 | 2 | 5 | 10;
|
||||
export type ReplayState = 'idle' | 'playing' | 'paused' | 'ended';
|
||||
// Re-export types for external use
|
||||
export type { ReplaySpeed, ReplayState };
|
||||
|
||||
interface SessionReplayProps {
|
||||
/** Events to replay */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue