feat: allow custom properties in Setting and Selector interfaces

This commit is contained in:
Harvey Zack committed 2025-08-23 12:12:46 +08:00
1 parent fb8975272c
commit cf5057fa89
2 files changed
+13 -2

No files matched your search

+9 -1
View File
@@ -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 {
+4 -1
View File
@@ -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
}