Update artplayer.d.ts

This commit is contained in:
Harvey Zack committed 2019-04-19 16:51:12 +08:00
1 parent 94405a7240
commit 008232ea14
1 file changed
+17 -9
+17 -9
View File
@@ -103,42 +103,48 @@ export default class Artplayer {
/** /**
* Initialize the custom layer * Initialize the custom layer
*/ */
layers?: any[]; layers?: object[];
/** /**
* Initialize the custom contextmenu * Initialize the custom contextmenu
*/ */
contextmenu?: any[]; contextmenu?: object[];
/** /**
* Initialize the custom quality * Initialize the custom quality
*/ */
quality?: any[]; quality?: object[];
/** /**
* Initialize the custom controls * Initialize the custom controls
*/ */
controls?: any[]; controls?: object[];
/** /**
* Initialize the custom highlight * Initialize the custom highlight
*/ */
highlight?: any[]; highlight?: object[];
/** /**
* Initialize the custom plugins * Initialize the custom plugins
*/ */
plugins?: any[]; plugins?: Function[];
/** /**
* Initialize the custom whitelist * Initialize the custom whitelist
*/ */
whitelist?: any[]; whitelist?: [string, Function, regexp];
/** /**
* Thumbnails option * Thumbnails option
*/ */
thumbnails?: object; thumbnails?: {
url: string;
number?: number;
width?: number;
height?: number;
column?: number;
};
/** /**
* Subtitle option * Subtitle option
@@ -164,6 +170,8 @@ export default class Artplayer {
/** /**
* Custom video type * Custom video type
*/ */
customType?: object; customType?: {
[propName: string]: Function;
};
}); });
} }