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
Bug report
Input code
function func(): unknown { const b = { value: 321 } as unknown; const c = { int: 222 } as unknown as InternalInterface; return { foo: 1, bar: b, baz: 3, c: c, }; } function func2(): any { const b = { value: 321 } as any; const c = { field: 222 } as any as InternalInterface; return { foo: 1, bar: b, baz: 3, c: c, }; }
Expected output
function func() { var b = { value: 321 }; var c = { _internal_int: 222 }; return { foo: 1, bar: b, baz: 3, c: c, }; } function func2() { var b = { value: 321 }; var c = { _internal_field: 222 }; return { foo: 1, bar: b, baz: 3, c: c, }; }
Actual output
function func() { var b = { _internal_value: 321 }; var c = { _internal_int: 222 }; return { _internal_foo: 1, _internal_bar: b, _internal_baz: 3, _internal_c: c, }; } function func2() { var b = { _internal_value: 321 }; var c = { _internal_field: 222 }; return { _internal_foo: 1, _internal_bar: b, _internal_baz: 3, _internal_c: c, }; }
The text was updated successfully, but these errors were encountered:
Added handling casting of object literals
6c4e995
Fixes #25
Successfully merging a pull request may close this issue.
Bug report
Input code
Expected output
Actual output
The text was updated successfully, but these errors were encountered: