UNPKG
@guruhotel/aura-hooks
Version:
latest (2.0.0)
2.0.0
1.3.0
1.2.0
1.1.0
1.0.0
0.3.0
0.2.2
0.2.1
0.2.0
0.1.2
0.1.1
🪝 Hooks library designed by the Guruhotel team for Aura UI
gitlab.com/guruhotel/aura-hooks
@guruhotel/aura-hooks
/
types
/
use-window-event
/
use-window-event.d.ts
2 lines
(1 loc)
•
250 B
TypeScript
View Raw
1
2
export
declare
function
useWindowEvent<K
extends
string
>(
type
: K,
listener
: K
extends
keyof
WindowEventMap
?
(
this
:
Window
,
ev
:
WindowEventMap
[K]
) =>
void
:
(
this
:
Window
,
ev
:
CustomEvent
) =>
void
,
options
?:
boolean
|
AddEventListenerOptions
):
void
;