mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-24 14:41:20 -08:00
fix d.ts
This commit is contained in:
1 parent
57f22a2fcb
commit
09d1c2ed08
3 files changed
+8
-2
No files matched your search
Vendored
+1
-1
@@ -547,7 +547,7 @@ declare class Player {
|
|||||||
}
|
}
|
||||||
|
|
||||||
declare class Artplayer extends Player {
|
declare class Artplayer extends Player {
|
||||||
constructor(option: Option, readyCallback: (this: Artplayer) => void);
|
constructor(option: Option, readyCallback?: (this: Artplayer) => void);
|
||||||
|
|
||||||
static instances: Artplayer[];
|
static instances: Artplayer[];
|
||||||
static version: string;
|
static version: string;
|
||||||
|
|||||||
+1
-1
@@ -547,7 +547,7 @@ declare class Player {
|
|||||||
}
|
}
|
||||||
|
|
||||||
declare class Artplayer extends Player {
|
declare class Artplayer extends Player {
|
||||||
constructor(option: Option, readyCallback: (this: Artplayer) => void);
|
constructor(option: Option, readyCallback?: (this: Artplayer) => void);
|
||||||
|
|
||||||
static instances: Artplayer[];
|
static instances: Artplayer[];
|
||||||
static version: string;
|
static version: string;
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
import Artplayer from '../packages/artplayer/types/artplayer';
|
||||||
|
|
||||||
|
const art = new Artplayer({
|
||||||
|
container: '.artplayer-app',
|
||||||
|
url: './assets/sample/video.mp4',
|
||||||
|
});
|
||||||
Reference in new issue
Block a user