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

TypeScript types without braces #158

Closed
edemaine opened this issue Jan 8, 2023 · 0 comments · Fixed by #264
Closed

TypeScript types without braces #158

edemaine opened this issue Jan 8, 2023 · 0 comments · Fixed by #264
Assignees
Labels
good first issue Good for newcomers typescript TypeScript compatibility or extensions

Comments

@edemaine
Copy link
Collaborator

edemaine commented Jan 8, 2023

type Point =
  x: number
  y: number

This works with interface and no =, but it's also natural to expect it to work with type, viewing the rest as an object literal.

Daniel suggests it would just require building an InlineImplicitInterface rule mirroring object literals.

@edemaine edemaine added typescript TypeScript compatibility or extensions good first issue Good for newcomers labels Jan 8, 2023
@STRd6 STRd6 self-assigned this Jan 21, 2023
@STRd6 STRd6 closed this as completed in 3e828a0 Jan 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers typescript TypeScript compatibility or extensions
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants