@overload
doesn't check implementation against overload signatures
#52367
Labels
@overload
doesn't check implementation against overload signatures
#52367
Uh oh!
There was an error while loading. Please reload this page.
#51234 introduced a new
@overload
tag, but it doesn't have the same type-checking rules as TypeScript's overloads.Namely that we ensure that for each overload, the implementation signature is assignable to that overload, allowing the return type to be bidirectionally assignable.
If we want the same results in
checkJs
, then the following should error:The text was updated successfully, but these errors were encountered: