mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-13 08:57:26 +08:00
fix: @types/video.js has no default export (#28776)
* fix: @types/video.js has no default export related #28418 * change video.js version back to 7.2
This commit is contained in:
3
types/video.js/index.d.ts
vendored
3
types/video.js/index.d.ts
vendored
@@ -8,6 +8,7 @@
|
||||
// Grzegorz Błaszczyk <https://github.com/gjanblaszczyk>
|
||||
// Stéphane Roucheray <https://github.com/sroucheray>
|
||||
// Adam Eisenreich <https://github.com/AkxeOne>
|
||||
// Mei Qingguang <https://github.com/meikidd>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.1
|
||||
|
||||
@@ -32,7 +33,7 @@
|
||||
* @return A player instance
|
||||
*/
|
||||
declare function videojs(id: any, options?: videojs.PlayerOptions, ready?: () => void): videojs.Player;
|
||||
export = videojs;
|
||||
export default videojs;
|
||||
export as namespace videojs;
|
||||
|
||||
declare namespace videojs {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import * as videojs from 'video.js';
|
||||
import videojs from 'video.js';
|
||||
|
||||
videojs("example_video_1").ready(function() {
|
||||
// EXAMPLE: Start playing the video.
|
||||
|
||||
Reference in New Issue
Block a user