From df5e54cd870b3b0eb559ebc0654df93d6e0b3d03 Mon Sep 17 00:00:00 2001 From: jeda Date: Tue, 3 Mar 2026 14:39:39 +0000 Subject: [PATCH] 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 --- src/web/frontend/src/components/SessionReplay.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/web/frontend/src/components/SessionReplay.tsx b/src/web/frontend/src/components/SessionReplay.tsx index c475160..9145651 100644 --- a/src/web/frontend/src/components/SessionReplay.tsx +++ b/src/web/frontend/src/components/SessionReplay.tsx @@ -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 */