Generic EventEmitter Class
I am trying to make the eventEmitter class generic, however many type errors occur such as:
Property 'emit' in type 'TypedEventEmitter<T>' is not assignable to the same property in base type 'EventEmitter<string | symbol, any>'.Does anyone know how to fix this? TIA
0 Replies