mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
10 lines
274 B
TypeScript
10 lines
274 B
TypeScript
import dush = require('dush');
|
|
|
|
const emitter = dush(); // $ExpectType Emitter
|
|
|
|
emitter // $ExpectType Emitter
|
|
.on('hi', place => console.log(`hello ${place}!`))
|
|
.on('hi', place => console.log(`hi ${place}, yeah!`));
|
|
|
|
emitter.emit('hi', 'world'); // $ExpectType Emitter
|