Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

delegate-it

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

delegate-it - npm Package Compare versions

Comparing version 1.1.0-4 to 1.1.0-5

8

index.d.ts

@@ -5,9 +5,9 @@ export declare type EventType = keyof GlobalEventHandlersEventMap;

};
export declare type DelegateEventHandler<T extends Event> = (event: DelegateEvent<T>) => any;
export declare type DelegateEventHandler<TElement extends Element, T extends Event> = (event: DelegateEvent<T, TElement>) => any;
export declare type DelegateEvent<T extends Event = Event, E extends Element = Element> = T & {
delegateTarget: E;
};
declare function delegate<TElement extends Element = Element, TEvent extends Event = Event>(selector: string, type: EventType, callback: DelegateEventHandler<TEvent>, useCapture?: boolean | AddEventListenerOptions): DelegateSubscription;
declare function delegate<TElement extends Element = Element, TEvent extends Event = Event>(elements: EventTarget | Document, selector: string, type: EventType, callback: DelegateEventHandler<TEvent>, useCapture?: boolean | AddEventListenerOptions): DelegateSubscription;
declare function delegate<TElement extends Element = Element, TEvent extends Event = Event>(elements: NodeListOf<Element> | EventTarget[] | string, selector: string, type: EventType, callback: DelegateEventHandler<TEvent>, useCapture?: boolean | AddEventListenerOptions): DelegateSubscription[];
declare function delegate<TElement extends Element = Element, TEvent extends Event = Event>(selector: string, type: EventType, callback: DelegateEventHandler<TElement, TEvent>, useCapture?: boolean | AddEventListenerOptions): DelegateSubscription;
declare function delegate<TElement extends Element = Element, TEvent extends Event = Event>(elements: EventTarget | Document, selector: string, type: EventType, callback: DelegateEventHandler<TElement, TEvent>, useCapture?: boolean | AddEventListenerOptions): DelegateSubscription;
declare function delegate<TElement extends Element = Element, TEvent extends Event = Event>(elements: NodeListOf<Element> | EventTarget[] | string, selector: string, type: EventType, callback: DelegateEventHandler<TElement, TEvent>, useCapture?: boolean | AddEventListenerOptions): DelegateSubscription[];
export default delegate;
{
"name": "delegate-it",
"description": "Lightweight event delegation",
"version": "1.1.0-4",
"version": "1.1.0-5",
"repository": "bfred-it/delegate-it",

@@ -6,0 +6,0 @@ "license": "MIT",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc