mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-28 10:31:20 -08:00
update d.ts
This commit is contained in:
1 parent
0aa9189d17
commit
4bd67b5b87
2 files changed
+4
-4
No files matched your search
Vendored
+2
-2
@@ -748,10 +748,10 @@ declare class Artplayer extends Player {
|
|||||||
};
|
};
|
||||||
|
|
||||||
readonly events: {
|
readonly events: {
|
||||||
proxy<K extends keyof WindowEventMap, T extends HTMLElement = HTMLDivElement>(
|
proxy<K extends keyof Event, T extends HTMLElement = HTMLDivElement>(
|
||||||
target: T,
|
target: T,
|
||||||
name: K,
|
name: K,
|
||||||
callback: (event: WindowEventMap[K]) => void,
|
callback: (event: Event[K]) => void,
|
||||||
options?: boolean | AddEventListenerOptions,
|
options?: boolean | AddEventListenerOptions,
|
||||||
): Function;
|
): Function;
|
||||||
hover(target: HTMLElement, mouseenter?: EventCallback, mouseleave?: EventCallback): Function;
|
hover(target: HTMLElement, mouseenter?: EventCallback, mouseleave?: EventCallback): Function;
|
||||||
|
|||||||
+2
-2
@@ -748,10 +748,10 @@ declare class Artplayer extends Player {
|
|||||||
};
|
};
|
||||||
|
|
||||||
readonly events: {
|
readonly events: {
|
||||||
proxy<K extends keyof WindowEventMap, T extends HTMLElement = HTMLDivElement>(
|
proxy<K extends keyof Event, T extends HTMLElement = HTMLDivElement>(
|
||||||
target: T,
|
target: T,
|
||||||
name: K,
|
name: K,
|
||||||
callback: (event: WindowEventMap[K]) => void,
|
callback: (event: Event[K]) => void,
|
||||||
options?: boolean | AddEventListenerOptions,
|
options?: boolean | AddEventListenerOptions,
|
||||||
): Function;
|
): Function;
|
||||||
hover(target: HTMLElement, mouseenter?: EventCallback, mouseleave?: EventCallback): Function;
|
hover(target: HTMLElement, mouseenter?: EventCallback, mouseleave?: EventCallback): Function;
|
||||||
|
|||||||
Reference in new issue
Block a user