-
Notifications
You must be signed in to change notification settings - Fork 12.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
extends
within dt function is not safe?
#46779
Comments
try |
@JeroenoBoy
The problem is 🤔 |
Duplicate of #23182 (comment) |
Your conditional type distributes over the type arguments. But since https://www.typescriptlang.org/docs/handbook/2/conditional-types.html#distributive-conditional-types |
You guys are awesome!!!!!!!! 😘 |
Bug Report
🔎 Search Terms
extends
dt function
🕗 Version & Regression Information
⏯ Playground Link
Playground link with relevant code
💻 Code
🙁 Actual behavior
never extends never
istrue
.But
_dtExtends<never, never>
is nottrue
, butnever
.🙂 Expected behavior
never extends never
istrue
._dtExtends<never, never>
istrue
.The text was updated successfully, but these errors were encountered: