Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The problem with the return type in the conditional type in TypeScript is that it cannot depend on the values of the type parameters of the conditional type. This means that if the return type of the conditional type depends on the values of the type parameters, it may not be correctly inferred by the compiler. This can lead to unexpected or incorrect behavior in the code.