Is it possible for the code below to be typed correctly? Answer Managed to do it with Thank you all for your help!!
Tag: typescript-generics
Infer does not work in generics as second param
does anyone know why in the second case the infer does not display the desired type? playground Answer Cause Extending this answer, the type inference for generics in class is done based on properties of the class based on type inference from methods. The type of the first generic is inferred correctly inferred from the parameter of the method emit