Skip to content

Support for Flow intersection types #694

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

Closed
PCreations opened this issue Mar 14, 2017 · 2 comments
Closed

Support for Flow intersection types #694

PCreations opened this issue Mar 14, 2017 · 2 comments
Milestone

Comments

@PCreations
Copy link

documentation.js supports Flow union type but doesn't seem to support intersection. Any reason to not supporting it ?

export type Foo = {a: number} & {b: number};

Should generate :

Type: ({a: number} & {b: number});

But documentation.js doesn't generate anything.

@tmcw
Copy link
Member

tmcw commented Mar 20, 2017

Good point, we don't currently port these over. The reason why I didn't port this over in the first pass was that there's no JSDoc equivalent of intersection, only of union. Which isn't a total blocker, but we'll need to invent a JSDoc-esqe representation, most likely.

@tmcw tmcw added this to the beta21 milestone Apr 12, 2017
@tmcw
Copy link
Member

tmcw commented Apr 24, 2017

Merging into #725, the tracking issue for supporting type systems that aren't just JSDoc.

@tmcw tmcw closed this as completed Apr 24, 2017
mollymerp pushed a commit to mapbox/mapbox-gl-js that referenced this issue Aug 20, 2018
mollymerp pushed a commit to mapbox/mapbox-gl-js that referenced this issue Aug 21, 2018
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

No branches or pull requests

2 participants