mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-29 11:11:20 -08:00
Update artplayer.d.ts
This commit is contained in:
1 parent
86d7b380d5
commit
b6254f41bc
1 file changed
+3
-3
+3
-3
@@ -172,9 +172,9 @@ type Component = {
|
|||||||
add(option: ComponentOption): HTMLElement;
|
add(option: ComponentOption): HTMLElement;
|
||||||
};
|
};
|
||||||
|
|
||||||
type PluginFunction = (art: Artplayer) => any;
|
type PluginFunction = (art: Artplayer) => any | ((option: any) => (art: Artplayer) => any);
|
||||||
type WhitelistFunction = (ua: string) => Boolean;
|
|
||||||
type CustomType = (video: HTMLVideoElement, url: string, art: Artplayer) => any;
|
type CustomType = (video: HTMLVideoElement, url: string, art: Artplayer) => any;
|
||||||
|
type WhitelistFunction = (ua: string) => Boolean;
|
||||||
type EventCallback = (event: Event) => any;
|
type EventCallback = (event: Event) => any;
|
||||||
|
|
||||||
type SubtitleOption = {
|
type SubtitleOption = {
|
||||||
@@ -375,7 +375,7 @@ type Option = {
|
|||||||
/**
|
/**
|
||||||
* Custom plugin list
|
* Custom plugin list
|
||||||
*/
|
*/
|
||||||
plugins?: PluginFunction[] | (() => any);
|
plugins?: PluginFunction[];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Custom mobile whitelist
|
* Custom mobile whitelist
|
||||||
|
|||||||
Reference in new issue
Block a user