From f8f9d24c5c1c12797890f91a0e0b0536cbb7154c Mon Sep 17 00:00:00 2001 From: Federico Date: Mon, 28 Oct 2024 14:50:15 +0700 Subject: [PATCH 1/2] Support readonly arrays --- delegate.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/delegate.ts b/delegate.ts index c3cc363..7e995cf 100644 --- a/delegate.ts +++ b/delegate.ts @@ -73,7 +73,7 @@ function delegate< TElement extends Element = ParseSelector, TEventType extends EventType = EventType, >( - selector: Selector | Selector[], + selector: Selector | readonly Selector[], type: TEventType, callback: DelegateEventHandler, options?: DelegateOptions @@ -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, options?: DelegateOptions @@ -94,7 +94,7 @@ function delegate< TElement extends Element, TEventType extends EventType = EventType, >( - selector: string | string[], + selector: string | readonly string[], type: TEventType, callback: DelegateEventHandler, options: DelegateOptions = {}, From 6986acff4ba6b5a1c288d14a7e6407e8b9108f33 Mon Sep 17 00:00:00 2001 From: Federico Date: Mon, 28 Oct 2024 14:50:24 +0700 Subject: [PATCH 2/2] 6.2.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 7dbf544..4389a95 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "delegate-it", - "version": "6.2.0", + "version": "6.2.1", "description": "Lightweight and modern event delegation in the browser", "keywords": [ "delegate",