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

fix(typescript): interface properties can be keywords followed by a type #1120

Merged

Conversation

ruipserra
Copy link
Contributor

This fixes an E0054 (unexpected token) error that was reported whenever an interface property matched a keyword followed by a type.

For example,

interface I { get: any }

is valid TypeScript, but quick-lint-js was reporting:

/test.ts:1:18: error: unexpected token [E0054]

This fixes a E0054 (unexpected token) error that was reported whenever
an interface property matched a keyword followed by a type. For example,
`interface I { get: any }` is valid TypeScript.
Copy link
Collaborator

@strager strager left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sweet, thanks!

@strager strager merged commit 2956507 into quick-lint:master Dec 17, 2023
103 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants