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

Open
escaton opened this issue Jul 2, 2024 · 0 comments
Labels
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)

@escaton escaton added the C-bug Category - Bug label Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category - Bug
Projects
None yet
Development

No branches or pull requests

1 participant