diff --git a/docs/assets/ts/artplayer.d.ts b/docs/assets/ts/artplayer.d.ts index 8894db103..516878efe 100644 --- a/docs/assets/ts/artplayer.d.ts +++ b/docs/assets/ts/artplayer.d.ts @@ -216,7 +216,10 @@ export interface Setting { */ onClick?: (this: Artplayer, item: SettingOption, element: HTMLDivElement, event: Event) => void - [key: string]: unknown + /** + * Allow custom properties + */ + [key: string]: any } export interface Quality { @@ -994,6 +997,11 @@ export interface Selector { * Html string of selector */ html: string | HTMLElement + + /** + * Allow custom properties + */ + [key: string]: any } export interface Component { diff --git a/packages/artplayer/types/setting.d.ts b/packages/artplayer/types/setting.d.ts index 0ee4054a0..d605a604f 100644 --- a/packages/artplayer/types/setting.d.ts +++ b/packages/artplayer/types/setting.d.ts @@ -90,5 +90,8 @@ export interface Setting { */ onClick?: (this: Artplayer, item: SettingOption, element: HTMLDivElement, event: Event) => void - [key: string]: unknown + /** + * Allow custom properties + */ + [key: string]: any }