Skip to content
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

Isolated declarations: if class property type is inferred to literal, it should remain a value #4036

Closed
escaton opened this issue Jul 2, 2024 · 0 comments · Fixed by #4106
Assignees
Labels
A-isolated-declarations Isolated Declarations C-bug Category - Bug

Comments

@escaton
Copy link
Contributor

escaton commented Jul 2, 2024

export class A {
  readonly prop = 1
}

is currently transformed to

export declare class A {
  readonly prop: 1
}

but TSC emits

export declare class A {
  readonly prop = 1
}

#4027 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-isolated-declarations Isolated Declarations C-bug Category - Bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants