andywer / typed-emitter

🔩 Type-safe event emitter interface for TypeScript
MIT License
268 stars 24 forks source link

Add rawListeners field #6

Closed xamgore closed 4 years ago

xamgore commented 4 years ago

Hi! There is rawListeners field since Node.js v9.4.0. Typescript globals.d.ts definition:

  rawListeners(event: string | symbol): Function[];
  listeners(event: string | symbol): Function[];

So I just duplicated the listeners field from your typings.

andywer commented 4 years ago

Cool, thank you, @xamgore! 👍

andywer commented 4 years ago

Published as v1.2.0.