From 28fc6a68a5744efc85b532a338e2ab1bc8fa45fe Mon Sep 17 00:00:00 2001 From: Hirbod Date: Mon, 17 Jan 2022 08:56:00 +0100 Subject: [PATCH] fix: Make `duration` non-optional (#744) and not limited to iOS. This PR fixes the types. --- src/VideoFile.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/VideoFile.ts b/src/VideoFile.ts index 56d003d..a58eb2e 100644 --- a/src/VideoFile.ts +++ b/src/VideoFile.ts @@ -50,10 +50,6 @@ export interface RecordVideoOptions { export interface VideoFile extends TemporaryFile { /** * Represents the duration of the video, in seconds. - * - * This is `undefined` on Android, see [issue #77](https://github.com/mrousavy/react-native-vision-camera/issues/77) - * - * @platform iOS */ - duration?: number; + duration: number; }