diff --git a/types/video.js/index.d.ts b/types/video.js/index.d.ts index 55b306271a..ec8a91ccdb 100644 --- a/types/video.js/index.d.ts +++ b/types/video.js/index.d.ts @@ -6719,7 +6719,7 @@ declare namespace videojs { nativeControlsForTouch?: boolean; notSupportedMessage?: string; playbackRates?: number[]; - plugins?: VideoJsPlayerPluginOptions; + plugins?: Partial; poster?: string; preload?: string; sourceOrder?: boolean; diff --git a/types/video.js/video.js-some-plugin.d.ts b/types/video.js/video.js-some-plugin.d.ts index 9c72907a12..46c1607eda 100644 --- a/types/video.js/video.js-some-plugin.d.ts +++ b/types/video.js/video.js-some-plugin.d.ts @@ -9,6 +9,8 @@ declare module 'video.js' { } interface VideoJsPlayerPluginOptions { - somePluginDefinedInAugmentation: {}; + somePluginDefinedInAugmentation: { + someRequiredProperty: boolean; + }; } } diff --git a/types/video.js/video.js-tests.ts b/types/video.js/video.js-tests.ts index 695fef14b3..31591efbba 100644 --- a/types/video.js/video.js-tests.ts +++ b/types/video.js/video.js-tests.ts @@ -122,12 +122,17 @@ function testPlugin(player: videojs.Player, options: {}) { function testAugmentation(player: videojs.Player) { player.somePluginDefinedInAugmentation(); - videojs("example_video_2", { - plugins: { - somePluginDefinedInAugmentation: {}, - someOtherPluginNotTyped: {} - } - }); + videojs('example_video_2', { + plugins: { + somePluginDefinedInAugmentation: { + someRequiredProperty: true + }, + someOtherPluginNotTyped: {}, + }, + }); + videojs('example_video_3', { + plugins: {} + }); } function testLogger() {