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
interface Foo { field: string; field2: number; } type ReadonlyFoo = Readonly<Foo>; function bar(foo: ReadonlyFoo): void { console.log(foo.field, foo.field2); } function baz(): void { const foo: Foo = { field: '', field2: 0, }; bar(foo); bar({ field: '', field2: 0, }); }
Expected output
function bar(foo) { console.log(foo._internal_field, foo._internal_field2); } function baz() { var foo = { _internal_field: '', _internal_field2: 0, }; bar(foo); bar({ _internal_field: '', _internal_field2: 0, }); }
Actual output
function bar(foo) { console.log(foo.field, foo.field2); } function baz() { var foo = { _internal_field: '', _internal_field2: 0, }; bar(foo); bar({ field: '', field2: 0, }); }
Additional context
Broken in #15
The text was updated successfully, but these errors were encountered:
5594a03
No branches or pull requests
Bug report
Input code
Expected output
Actual output
Additional context
Broken in #15
The text was updated successfully, but these errors were encountered: