mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-17 10:01:20 -08:00
Update artplayer.d.ts
This commit is contained in:
1 parent
84e8c23ad0
commit
26c2a63b55
1 file changed
+13
-3
Vendored
+13
-3
@@ -756,7 +756,9 @@ export type Option = {
|
||||
/**
|
||||
* Other video attribute
|
||||
*/
|
||||
moreVideoAttr?: Partial<HTMLVideoElement>;
|
||||
moreVideoAttr?: Partial<{
|
||||
[key in keyof HTMLVideoElement as HTMLVideoElement[key] extends Function ? never : key]: HTMLVideoElement[key];
|
||||
}>;
|
||||
|
||||
/**
|
||||
* Custom default icons
|
||||
@@ -1002,9 +1004,17 @@ export type Utils = {
|
||||
hasClass(target: HTMLElement, className: string): boolean;
|
||||
append(target: HTMLElement, className: HTMLElement): HTMLElement;
|
||||
remove(target: HTMLElement): void;
|
||||
setStyle(element: HTMLElement, key: string, value: string): HTMLElement;
|
||||
setStyle<T extends keyof CSSStyleDeclaration>(
|
||||
element: HTMLElement,
|
||||
key: T,
|
||||
value: CSSStyleDeclaration[T],
|
||||
): HTMLElement;
|
||||
setStyles(element: HTMLElement, styles: Partial<CSSStyleDeclaration>): HTMLElement;
|
||||
getStyle<T>(element: HTMLElement, key: string, numberType?: T): T extends true ? number : string;
|
||||
getStyle<T, K extends keyof CSSStyleDeclaration>(
|
||||
element: HTMLElement,
|
||||
key: K,
|
||||
numberType?: T,
|
||||
): T extends true ? number : string;
|
||||
sublings(target: HTMLElement): HTMLElement[];
|
||||
inverseClass(target: HTMLElement, className: string): void;
|
||||
tooltip(target: HTMLElement, msg: string, pos?: string): void;
|
||||
|
||||
Reference in new issue
Block a user