From deed1aa33feca50297536e8d34310ddb678cec48 Mon Sep 17 00:00:00 2001 From: Bruno Rodrigues Date: Fri, 17 May 2024 17:58:22 +0100 Subject: [PATCH] chore(web): types on _vidoe var --- apps/web/hooks/useUserMedia.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/hooks/useUserMedia.ts b/apps/web/hooks/useUserMedia.ts index 69a5b42..cbf73e8 100644 --- a/apps/web/hooks/useUserMedia.ts +++ b/apps/web/hooks/useUserMedia.ts @@ -14,7 +14,7 @@ export const useUserMedia = (video: HTMLVideoElement) => { const updateUserMedia = useCallback( async (video: HTMLVideoElement, constraints: MediaConstraints) => { - let _video = false; + let _video: MediaTrackConstraints | boolean = false; if (constraints.video !== "off") { _video = constraints.video