Skip to content
Advertisement

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

Advertisement