From 271b8f20c0f31280f8a600d4889f1856e7c84fe6 Mon Sep 17 00:00:00 2001 From: Jonny Fairfull Date: Fri, 3 Aug 2018 19:05:49 +0100 Subject: [PATCH] fix: update autoplay types to boolean or string. (#27838) --- types/video.js/index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/video.js/index.d.ts b/types/video.js/index.d.ts index 8535cf4f16..8ac320d190 100644 --- a/types/video.js/index.d.ts +++ b/types/video.js/index.d.ts @@ -3760,9 +3760,9 @@ declare namespace videojs { * * @return The current value of autoplay when getting */ - autoplay(value?: boolean): void; + autoplay(value?: boolean | string): void; - autoplay(): boolean; + autoplay(): boolean | string; /** * Create a remote {@link TextTrack} and an {@link HTMLTrackElement}. It will @@ -4559,7 +4559,7 @@ declare namespace videojs { interface PlayerOptions extends ComponentOptions { aspectRatio?: string; - autoplay?: boolean; + autoplay?: boolean | string; controlBar?: ControlBarOptions | false; textTrackSettings?: TextTrackSettingsOptions; controls?: boolean;