-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Deep nested object type inference #34922
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
Comments
This is fixed in the Nightly build |
Duplicate of #34619 Did that fix not make it into 3.7? |
The fix missed 3.7; it will be in 3.8 |
I'm still getting a version of this error in 3.8 nightly:
|
I'm a bit concerned about the "depth limiter" that only allows five recursive instantiations of a type; what does that mean for type design? I am designing some recursive types that keep their full structure in their type parameters, basically a DSL that is fully reflected in the type structure. |
TypeScript Version: 3.6.4
Search Terms: Deep nested object type inference
Code
Expected behavior: Show error for unknown property 'f'
Actual behavior: Doesn't show error for unknown property 'f'
Playground Link:
http://www.typescriptlang.org/play/?ts=3.7-Beta#code/KYDwDg9gTgLgBASwHY2FAZgQwMbDgQTgG8AoASACMAuOAIQG0BdAbhIF8STRJZEU0suOsXLYaAYSasOXcNHjJUGHHnEiyAExoARKe07d5fJYLzb1wGgFE9HQ70UCVcK+oQaA-DQDOMKMgBzaQM5XmwIJF84TABGGnwmOABeOHpyUjJKGjTMsgzcsVTyXLzikq0iktz8qrJLVKI4dBoAcnQWuDZGABoykrZe2p6+sgG+4dyxzImxlhCeeHDI+EwAJnjk9WpK0oLsvprMipyqw9z6+kbmuDaOrsGqqZKJyYeyF6nhtlYgA
Related Issues:
The text was updated successfully, but these errors were encountered: