Skip to content
Myr

Fixing TypeScript usage. Fixes #60 (#67)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

* Fixing TypeScript usage * Removing extraneous formatting

authored by David Khourshid · committed by Jason Miller · parent 820ac6a · Browse files · 2 files+10 added−10 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+10 added−10 removed

  • other:+10 added−10 removed

2 files+10 added−10 removed

modified:mitt.d.ts+7 added-7 removed
modified:README.md+3 added-3 removed
55 unmodified lines
5657```js58import mitt from 'mitt'5960let emitter = mitt()60const emitter = mitt()6162// listen to an event63emitter.on('foo', e => console.log('foo', e) )64
11 unmodified lines
7677### Typescript7879```ts80import * as mitt from 'mitt';81let emitter: mitt.Emitter = new mitt();80import mitt from 'mitt';81const emitter: mitt.Emitter = mitt();82```8384## Examples & Demos85
83 unmodified lines