0.0.3 • Published 11 months ago

@jvddavid/ts-events v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

@jvddavid/ts-events

This is a module where I added the EventMap type to the events library

Install

npm install @jvddavid/ts-events

Example

import { EventEmitter } from '@jvddavid/ts-events'

type TestEventMap = {
  test: [message: string]
}

const emitter = new EventEmitter<TestEventMap>()

emitter.on('test', (message) => {
  console.log(message)
})
0.0.3

11 months ago

0.0.2

1 year ago

0.0.1

1 year ago