From b2722d3b67472cd72564ff8eea4c947fe9e26422 Mon Sep 17 00:00:00 2001 From: Akanksha Trehun Date: Sat, 15 Aug 2026 01:37:37 +0530 Subject: [PATCH] fix: import isValidRecipe in useVideoEditor MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Two PRs merged during the backlog triage were textually independent but semantically conflicting: one added an isValidRecipe(merged) guard to decodeRecipe, the other rewrote the @/lib/types import line in the same file without that symbol. Git merged both cleanly and main went red with TS2552. The function is exported from @/lib/types and the call site is correct — only the import was missing. Verified with tsc --noEmit and next build. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01NhT15Aq6XUyhZSHa2HAh57 --- src/hooks/useVideoEditor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/useVideoEditor.ts b/src/hooks/useVideoEditor.ts index 9a55089b..ab67dcf8 100644 --- a/src/hooks/useVideoEditor.ts +++ b/src/hooks/useVideoEditor.ts @@ -1,7 +1,7 @@ "use client"; import { useState, useCallback, useEffect, useRef, useMemo } from "react"; -import { EditRecipe, ExportResult, ExportStatus, MAX_FILE_SIZE, OverlayPosition, TimelineTrack, MultiTrackEditorState } from "@/lib/types"; +import { EditRecipe, ExportResult, ExportStatus, MAX_FILE_SIZE, OverlayPosition, TimelineTrack, MultiTrackEditorState, isValidRecipe } from "@/lib/types"; import { DEFAULT_RECIPE, SPEED_STEPS } from "@/lib/constants"; import { getPresetById } from "@/lib/presets"; import { loadFFmpeg, exportVideo, terminateFFmpeg, FFmpegLoadError } from "@/lib/ffmpeg";