mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* use a better type for plugin options, one that can be extended * fix lint issue and add a test case
15 lines
401 B
TypeScript
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: {};
|
|
}
|
|
}
|