mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-04 16:42:27 +00:00
fix(producer): narrow extraction error shapes honestly
This commit is contained in:
@@ -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
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user