Put everything in src directories
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import {EventEmitter} from 'events'
|
||||
|
||||
export class Emitter extends EventEmitter {
|
||||
emit(type: string | number, ...args: any[]) {
|
||||
const a = super.emit(type, ...args)
|
||||
const b = super.emit('*', type, ...args)
|
||||
|
||||
return a && b
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user