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
Destructuing is not handled correctly (either object literal or array binding pattern) in during declaration emit.
Eg.
TypeScript var { a, b } = { a: "10", b: 10 };
TypeScript
Generates ``` TypeScript``` declare var { a, b }: any;
Expected:
TypeScript declare var a: string, b: number;
The text was updated successfully, but these errors were encountered:
Declaration emit fixes for binding pattern in variable statements
649cd3b
Handles #2023
var a1 = [1, "hello"]; var [x] = a1; var [x, y] = a1; var [x, y, z] = a1
Generates
declare var [x]: any; declare var [x, y]: any;
declare var x: string|number; declare var x: string|number, y:string|number;
Sorry, something went wrong.
This #2025 has fixed the issue
No branches or pull requests
Destructuing is not handled correctly (either object literal or array binding pattern) in during declaration emit.
Eg.
TypeScript
var { a, b } = { a: "10", b: 10 };
Expected:
TypeScript
declare var a: string, b: number;
The text was updated successfully, but these errors were encountered: