We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
A value being destructed by [] must be iterable. A value being destructed by {} must be non-nullable.
[]
{}
TypeScript Version: master
Search Terms:
Code
const [] = {}; // should be error const {} = undefined; // error correctly (([]) => 0)({}); // should be error (({}) => 0)(undefined); // should be error
Expected behavior:
Actual behavior:
Playground Link:
Related Issues:
The text was updated successfully, but these errors were encountered:
some case
function foo({}: undefined) { return 0 } function bar([]: {}) { return 0 } const { }: undefined = 1 const []: {} = {}
Sorry, something went wrong.
#20873
Successfully merging a pull request may close this issue.
A value being destructed by
[]
must be iterable.A value being destructed by
{}
must be non-nullable.TypeScript Version: master
Search Terms:
Code
Expected behavior:
Actual behavior:
Playground Link:
Related Issues:
The text was updated successfully, but these errors were encountered: