From 79c30767fcf67e75e70ceb64a17736b5e3de63c6 Mon Sep 17 00:00:00 2001 From: YangJH Date: Mon, 15 Jul 2024 17:15:44 +0900 Subject: [PATCH] fix(ts): make multiDrm prop optional type (#3999) --- 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 b5f392b9..546bf97d 100644 --- a/src/specs/VideoNativeComponent.ts +++ b/src/specs/VideoNativeComponent.ts @@ -58,7 +58,7 @@ type Drm = Readonly<{ certificateUrl?: string; // ios base64Certificate?: boolean; // ios default: false useExternalGetLicense?: boolean; // ios - multiDrm?: boolean; // android + multiDrm?: WithDefault; // android }>; type TextTracks = ReadonlyArray< diff --git a/src/types/video.ts b/src/types/video.ts index 15c2dfd8..1dbdc9f1 100644 --- a/src/types/video.ts +++ b/src/types/video.ts @@ -61,7 +61,7 @@ export type Drm = Readonly<{ contentId?: string; // ios certificateUrl?: string; // ios base64Certificate?: boolean; // ios default: false - multiDrm: boolean; // android + multiDrm?: boolean; // android /* eslint-disable @typescript-eslint/no-unused-vars */ getLicense?: ( spcBase64: string,