fix(producer): narrow extraction error shapes honestly

This commit is contained in:
James
2026-07-26 19:47:33 +00:00
parent 9b63646c8a
commit c01e1a5f96
3 changed files with 11 additions and 11 deletions
@@ -198,8 +198,8 @@ export function isVideoSourceExtractionError(error: unknown): error is VideoSour
return (
typeof error === "object" &&
error !== null &&
(error as { hyperframesVideoSourceExtractionError?: unknown })
.hyperframesVideoSourceExtractionError === true
"hyperframesVideoSourceExtractionError" in error &&
error.hyperframesVideoSourceExtractionError === true
);
}