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

strict-event-emitter-types

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

strict-event-emitter-types - npm Package Compare versions

Comparing version 1.0.3 to 1.1.0

4

package.json
{
"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;
};
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