@stoplight/lifecycle
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -0,3 +1,4 @@ | ||
import StrictEventEmitter from 'strict-event-emitter-types'; | ||
import { IDisposable } from '../disposable'; | ||
import { IEventEmitter } from './types'; | ||
import { IEventEmitter, IEventEmitterInstance } from './types'; | ||
export declare class EventEmitter<E extends object> implements IEventEmitter<E> { | ||
@@ -10,1 +11,2 @@ private _emitter; | ||
} | ||
export declare function createEventEmitter<T extends object>(): new () => StrictEventEmitter<IEventEmitterInstance, T, T, "addListener" | "addEventListener" | "removeListener" | "removeEventListener" | "once", "on" | "emit">; |
@@ -35,2 +35,7 @@ "use strict"; | ||
exports.EventEmitter = EventEmitter; | ||
function createEventEmitter() { | ||
const TypedEmitter = EventEmitter; | ||
return TypedEmitter; | ||
} | ||
exports.createEventEmitter = createEventEmitter; | ||
//# sourceMappingURL=emitter.js.map |
{ | ||
"name": "@stoplight/lifecycle", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Event and disposable helpers.", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
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
22392
136