fix(ci): fix type errors and lint issues for Phase 3
- Fix RightPanel import paths and prop types to match hooks - Fix TopBar currentTemplate type (null vs undefined) - Fix useTemplateManagement: replace typeof ClipData.prototype with TrimConfig
This commit is contained in:
Regular → Executable
+1
-1
@@ -2,7 +2,7 @@ import React from "react"
|
||||
import type { EditingTemplate } from "@/api/editing-planner"
|
||||
|
||||
interface TopBarProps {
|
||||
currentTemplate: EditingTemplate | undefined
|
||||
currentTemplate: EditingTemplate | null
|
||||
canUndo: boolean
|
||||
canRedo: boolean
|
||||
onUndo: () => void
|
||||
|
||||
Regular → Executable
+2
-1
@@ -20,6 +20,7 @@ import type {
|
||||
ClipType,
|
||||
TtsConfig,
|
||||
TtsMode,
|
||||
TrimConfig,
|
||||
WatermarkConfig,
|
||||
IntroOutroConfig,
|
||||
PipConfig,
|
||||
@@ -289,7 +290,7 @@ export const useTemplateManagement = (params: UseTemplateManagementParams) => {
|
||||
? { rate: clip.playback_speed, pitchCorrection: true }
|
||||
: undefined,
|
||||
tts_config: (clip.config?.tts_config as TtsConfig) || undefined,
|
||||
trim_config: (clip.config?.trim_config as typeof ClipData.prototype.trim_config) || undefined,
|
||||
trim_config: (clip.config?.trim_config as TrimConfig) || undefined,
|
||||
}))
|
||||
setTimeout(() => resetClips(mapped), 100)
|
||||
} else if (cfg.segments && cfg.segments.length > 0) {
|
||||
|
||||
Reference in New Issue
Block a user