Closed as not planned
Closed as not planned
Description
Page URL:
https://www.typescriptlang.org/docs/handbook/2/conditional-types.html
Issue:
The example showing use of return type conditional on argument type near
Recommended Fix:
I can see a few options, either:
- provide a type safe implementation (which is seemingly not possible)
- provide an implementation with one of the unsafe workarounds (returning
as any
, reinstating the overloads, possibly others) - remove the specific use of conditional types as a return type dependent on an argument type (preferably with a specific call out that this is not supported, for those who go looking)
Metadata
Metadata
Assignees
Labels
No labels