strict-event-emitter-types
Advanced tools
Comparing version 1.0.3 to 1.1.0
{ | ||
"name": "strict-event-emitter-types", | ||
"version": "1.0.3", | ||
"version": "1.1.0", | ||
"description": "Strictly and safely type any EventEmitter-like interface on any object", | ||
@@ -35,2 +35,2 @@ "main": "dist/src/index.js", | ||
} | ||
} | ||
} |
@@ -26,4 +26,4 @@ export declare type MatchingKeys<TRecord, TMatch, K extends keyof TRecord = keyof TRecord> = K extends (TRecord[K] extends TMatch ? K : never) ? K : never; | ||
export declare type StrictBroadcast<TEmitter extends TypeRecord<any, any, any>, TEmitRecord extends NoUndefined<TEmitter[' _emitType']> = NoUndefined<TEmitter[' _emitType']>, VK extends VoidKeys<TEmitRecord> = VoidKeys<TEmitRecord>, NVK extends Exclude<keyof TEmitRecord, VK> = Exclude<keyof TEmitRecord, VK>> = { | ||
<E extends NVK>(event: E, request: TEmitRecord[E]): void; | ||
<E extends VK>(event: E): void; | ||
<E extends NVK>(event: E, request: TEmitRecord[E]): any; | ||
<E extends VK>(event: E): any; | ||
}; |
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
6768