Tonymif
TTCTheo's Typesafe Cult
•Created by Tonymif on 3/29/2024 in #questions
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
1 replies