diff --git a/CHANGELOG.md b/CHANGELOG.md index ee341c3848..5870c0f031 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -371,4 +371,4 @@ - Add cookie support for ExoPlayer [#922](https://github.com/react-native-community/react-native-video/pull/922) - Remove ExoPlayer onMetadata that wasn't being used [#1040](https://github.com/react-native-community/react-native-video/pull/1040) - Fix bug where setting the progress interval on iOS didn't work [#800](https://github.com/react-native-community/react-native-video/pull/800) -- Support setting the poster resize mode [#595](https://github.com/react-native-community/react-native-video/pull/595) \ No newline at end of file +- Support setting the poster resize mode [#595](https://github.com/react-native-community/react-native-video/pull/595) diff --git a/src/types/video.ts b/src/types/video.ts index e3b03bc0ed..65e7cf7d23 100644 --- a/src/types/video.ts +++ b/src/types/video.ts @@ -6,22 +6,24 @@ import type FilterType from './FilterType'; export type Headers = Record; -export type ReactVideoSource = Readonly<{ - uri?: string; - isNetwork?: boolean; - isAsset?: boolean; - shouldCache?: boolean; - type?: string; - mainVer?: number; - patchVer?: number; - headers?: Headers; - startTime?: number; - endTime?: number; - title?: string; - subtitle?: string; - description?: string; - customImageUri?: string; -}>; +export type ReactVideoSource = + | Readonly<{ + uri?: string; + isNetwork?: boolean; + isAsset?: boolean; + shouldCache?: boolean; + type?: string; + mainVer?: number; + patchVer?: number; + headers?: Headers; + startTime?: number; + endTime?: number; + title?: string; + subtitle?: string; + description?: string; + customImageUri?: string; + }> + | NodeRequire; export type DebugConfig = Readonly<{ enable?: boolean;