From 008232ea147e00f5a93e3ecf6e8885b884ce6f31 Mon Sep 17 00:00:00 2001 From: Harvey Zack Date: Fri, 19 Apr 2019 16:51:12 +0800 Subject: [PATCH] Update artplayer.d.ts --- packages/artplayer/types/artplayer.d.ts | 26 ++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/packages/artplayer/types/artplayer.d.ts b/packages/artplayer/types/artplayer.d.ts index cbd1bb9d5..71ba9b4f9 100644 --- a/packages/artplayer/types/artplayer.d.ts +++ b/packages/artplayer/types/artplayer.d.ts @@ -103,42 +103,48 @@ export default class Artplayer { /** * Initialize the custom layer */ - layers?: any[]; + layers?: object[]; /** * Initialize the custom contextmenu */ - contextmenu?: any[]; + contextmenu?: object[]; /** * Initialize the custom quality */ - quality?: any[]; + quality?: object[]; /** * Initialize the custom controls */ - controls?: any[]; + controls?: object[]; /** * Initialize the custom highlight */ - highlight?: any[]; + highlight?: object[]; /** * Initialize the custom plugins */ - plugins?: any[]; + plugins?: Function[]; /** * Initialize the custom whitelist */ - whitelist?: any[]; + whitelist?: [string, Function, regexp]; /** * Thumbnails option */ - thumbnails?: object; + thumbnails?: { + url: string; + number?: number; + width?: number; + height?: number; + column?: number; + }; /** * Subtitle option @@ -164,6 +170,8 @@ export default class Artplayer { /** * Custom video type */ - customType?: object; + customType?: { + [propName: string]: Function; + }; }); }