mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-08 19:06:15 -08:00
feat: allow custom properties in Setting and Selector interfaces
This commit is contained in:
1 parent
fb8975272c
commit
cf5057fa89
2 files changed
+13
-2
No files matched your search
Vendored
+9
-1
@@ -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
@@ -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
|
||||
}
|
||||
Reference in new issue
Block a user