Socket
Socket
Sign inDemoInstall

eventemitter3

Package Overview
Dependencies
0
Maintainers
3
Versions
35
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.0.6 to 4.0.7

18

index.d.ts

@@ -94,2 +94,11 @@ /**

/**
* `object` should be in either of the following forms:
* ```
* interface EventTypes {
* 'event-with-parameters': any[]
* 'event-with-example-handler': (...args: any[]) => void
* }
* ```
*/
export type ValidEventTypes = string | symbol | object;

@@ -109,7 +118,2 @@

export type Arguments<
T extends object,
K extends keyof T | string | symbol
> = K extends keyof T ? ArgumentMap<T>[K] : any[];
export type EventListener<

@@ -120,3 +124,5 @@ T extends ValidEventTypes,

? (...args: any[]) => void
: (...args: Arguments<Exclude<T, string | symbol>, K>) => void;
: (
...args: ArgumentMap<Exclude<T, string | symbol>>[Extract<K, keyof T>]
) => void;

@@ -123,0 +129,0 @@ export type EventArgs<

{
"name": "eventemitter3",
"version": "4.0.6",
"version": "4.0.7",
"description": "EventEmitter3 focuses on performance while maintaining a Node.js AND browser compatible interface.",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc