DefinitelyTyped/types/video.js/video.js-some-plugin.d.ts
Joe Flateau ddb94b86a0 use a better type for plugin options, one that can be extended (#39218)
* use a better type for plugin options, one that can be extended

* fix lint issue and add a test case
2019-10-22 13:20:19 -07:00

15 lines
401 B
TypeScript

// this is not the actual definition file, just an example augmentation
/* tslint:disable:no-self-import no-declare-current-package */
import { VideoJsPlayer } from 'video.js';
declare module 'video.js' {
interface VideoJsPlayer {
somePluginDefinedInAugmentation(options?: {}): this;
}
interface VideoJsPlayerPluginOptions {
somePluginDefinedInAugmentation: {};
}
}