From 76ea6dd354fbad94df82920fd81d9a325916e1b3 Mon Sep 17 00:00:00 2001 From: Olivier Bouillet Date: Sat, 5 Oct 2024 18:26:34 +0200 Subject: [PATCH] chore: fix optionnal props --- src/specs/VideoNativeComponent.ts | 2 +- src/types/video.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/specs/VideoNativeComponent.ts b/src/specs/VideoNativeComponent.ts index 5bf0031ef2..22ae7a5300 100644 --- a/src/specs/VideoNativeComponent.ts +++ b/src/specs/VideoNativeComponent.ts @@ -49,7 +49,7 @@ export type VideoSrc = Readonly<{ cmcd?: NativeCmcdConfiguration; // android textTracksAllowChunklessPreparation?: boolean; // android textTracks?: TextTracks; - ad: AdsConfig; + ad?: AdsConfig; }>; type DRMType = WithDefault; diff --git a/src/types/video.ts b/src/types/video.ts index 558397cb71..5940d6c88f 100644 --- a/src/types/video.ts +++ b/src/types/video.ts @@ -38,7 +38,7 @@ export type ReactVideoSourceProperties = { cmcd?: Cmcd; // android textTracksAllowChunklessPreparation?: boolean; textTracks?: TextTracks; - ad: AdConfig; + ad?: AdConfig; }; export type ReactVideoSource = Readonly<