修改d.ts

This commit is contained in:
Harvey Zack committed 2019-04-19 16:39:09 +08:00
1 parent 95bbe6f3b2
commit 94405a7240
4 files changed
+143 -10

No files matched your search

+4 -1
View File
@@ -28,6 +28,10 @@ let id = 0;
class Artplayer extends Emitter {
constructor(option) {
super();
utils.errorHandle(
this instanceof Artplayer,
'Artplayer is a constructor and should be called with the `new` keyword',
);
utils.errorHandle(typeof window.Promise === 'function', "Unsupported 'Promise' method");
this.option = utils.mergeDeep(Artplayer.DEFAULTS, option);
optionValidator(this.option, scheme);
@@ -66,7 +70,6 @@ class Artplayer extends Emitter {
title: '',
theme: '#f00',
volume: 0.7,
isLive: false,
muted: false,
autoplay: false,
autoSize: false,