Skip to content

Commit

Permalink
Support readonly arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante committed Oct 28, 2024
1 parent 5a73bde commit f8f9d24
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions delegate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function delegate<
TElement extends Element = ParseSelector<Selector, HTMLElement>,
TEventType extends EventType = EventType,
>(
selector: Selector | Selector[],
selector: Selector | readonly Selector[],
type: TEventType,
callback: DelegateEventHandler<GlobalEventHandlersEventMap[TEventType], TElement>,
options?: DelegateOptions
Expand All @@ -83,7 +83,7 @@ function delegate<
TElement extends Element = HTMLElement,
TEventType extends EventType = EventType,
>(
selector: string | string[],
selector: string | readonly string[],
type: TEventType,
callback: DelegateEventHandler<GlobalEventHandlersEventMap[TEventType], TElement>,
options?: DelegateOptions
Expand All @@ -94,7 +94,7 @@ function delegate<
TElement extends Element,
TEventType extends EventType = EventType,
>(
selector: string | string[],
selector: string | readonly string[],
type: TEventType,
callback: DelegateEventHandler<GlobalEventHandlersEventMap[TEventType], TElement>,
options: DelegateOptions = {},
Expand Down

0 comments on commit f8f9d24

Please sign in to comment.