fix: Make duration non-optional (#744)

and not limited to iOS. This PR fixes the types.
This commit is contained in:
Hirbod 2022-01-17 08:56:00 +01:00 committed by GitHub
parent 00fc39891a
commit 28fc6a68a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,10 +50,6 @@ export interface RecordVideoOptions {
export interface VideoFile extends TemporaryFile { export interface VideoFile extends TemporaryFile {
/** /**
* Represents the duration of the video, in seconds. * 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;
} }