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
enum Btn { Hello = 123, } const test1 = Btn.Hello let test2: Btn.Hello
Gets autofixed to:
enum Button { Hello = 123, } const test1 = Button.Hello let test2: Btn.Hello function test3(testParameter: Btn): Btn { return Button.Hello }
Note how the value positions are fixed, but the type positions are not.
Same with classes:
class Btn {} const test1 = new Btn() let test2: Btn function test3(testParameter: Btn): Btn { return new Btn() }
fixed:
class Button {} const test1 = new Button() let test2: Btn function test3(testParameter: Btn): Btn { return new Button() }
Interfaces and type aliases do not get flagged at all:
interface Btn {} type Btn2 = {}
(no error)
The text was updated successfully, but these errors were encountered:
This one is more important than it might seem given how much traction typescript is gaining.
Sorry, something went wrong.
No branches or pull requests
Gets autofixed to:
Note how the value positions are fixed, but the type positions are not.
Same with classes:
fixed:
Interfaces and type aliases do not get flagged at all:
(no error)
The text was updated successfully, but these errors were encountered: