Fix lints
This commit is contained in:
parent
13def24f7e
commit
5ba7267164
5 changed files with 94 additions and 15 deletions
|
|
@ -24,7 +24,7 @@ import type {
|
|||
|
||||
// Shortcut for registering a listener on an EventTarget
|
||||
export const useEventTarget = <T extends Event>(
|
||||
target: EventTarget,
|
||||
target: EventTarget | null | undefined,
|
||||
eventType: string,
|
||||
listener: (event: T) => void,
|
||||
options?: AddEventListenerOptions
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue