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

[feature request] Allow linebreak as delimiter for types/interfaces #5830

Closed
zaynv opened this issue Feb 17, 2018 · 1 comment
Closed

[feature request] Allow linebreak as delimiter for types/interfaces #5830

zaynv opened this issue Feb 17, 2018 · 1 comment

Comments

@zaynv
Copy link

zaynv commented Feb 17, 2018

TypeScript allows syntax like so:

interface PersonProps {
  name: string
  age: number
  title: string
}

same thing for type:

type PersonProps = {
  name: string
  age: number
  title: string
}

I know some may not like this style, but it would be nice if it was at least an option in Flow as it is in TypeScript. It's a nice-to-have for people who use the semicolon-less style.

@zaynv zaynv changed the title [feature request] Use linebreak as delimiter for types/interfaces [feature request] Allow linebreak as delimiter for types/interfaces Feb 17, 2018
@donce
Copy link

donce commented Apr 6, 2018

Totally agree - we're omitting semicolons, so having semicolons only in interfaces looks inconsistent :(

@SamChou19815 SamChou19815 closed this as not planned Won't fix, can't repro, duplicate, stale Jan 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants