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:
meikidd
2018-09-15 00:08:17 +08:00
committed by Ryan Cavanaugh
parent d6387166ee
commit b4143a7b47
2 changed files with 3 additions and 2 deletions

View File

@@ -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 {

View File

@@ -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.