mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-25 08:01:20 -08:00
修改d.ts
This commit is contained in:
1 parent
95bbe6f3b2
commit
94405a7240
4 files changed
+143
-10
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user