mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* export videojs.Player so it can be augmented * lint * in order to be augmentable, the VideoJsPlayer interface must actually be exported * also export the PlayerOptions * lint * demonstrate augmentation actually works * make linter happy
11 lines
306 B
TypeScript
11 lines
306 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;
|
|
}
|
|
}
|