@streamr/utils
Advanced tools
Comparing version 101.0.0-beta.1 to 101.0.0-beta.2
/// <reference types="node" /> | ||
import EventEmitter from 'eventemitter3'; | ||
type Events<T> = { | ||
[K in keyof T]: (...payloads: any[]) => void; | ||
}; | ||
export declare const addManagedEventListener: <E extends Events<E>, T extends EventEmitter.EventNames<E>>(emitter: Pick<EventEmitter<E>, 'on' | 'off'>, eventName: T, listener: EventEmitter.EventListener<E, T>, abortSignal: AbortSignal) => void; | ||
export {}; | ||
export declare const addManagedEventListener: <TEventName extends string, TListener extends (...payloads: any[]) => void>(emitter: { | ||
on: (eventName: TEventName, listener: TListener) => unknown; | ||
off: (eventName: TEventName, listener: TListener) => unknown; | ||
}, eventName: TEventName, listener: TListener, abortSignal: AbortSignal) => void; |
{ | ||
"name": "@streamr/utils", | ||
"version": "101.0.0-beta.1", | ||
"version": "101.0.0-beta.2", | ||
"description": "A collection of shared common utilities", | ||
@@ -5,0 +5,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
155596
2225