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

Intersection type parse error #62

Open
JackJek opened this issue Oct 27, 2020 · 1 comment
Open

Intersection type parse error #62

JackJek opened this issue Oct 27, 2020 · 1 comment

Comments

@JackJek
Copy link

JackJek commented Oct 27, 2020

https://www.typescriptlang.org/docs/handbook/unions-and-intersections.html

@simonseyock
Copy link

I am working on typings for the mapping library openlayers ( https://github.com/openlayers/openlayers ) and especially generating typescript typings out of jsdoc. We had a problem that I was able to solve with the mentioned intersection types ( openlayers/openlayers#11960 ). Sadly they cause parsing errors.

As typescript typing generation and typescript typechecking is something that will probably become even more relevant I think it would be nice to bring more of this into here.

I'd love to look into this issue and create a PR for this as I already have some experience with PEG.js if this is desired.

Another thing I might want to look into at some point is the inline import syntax of typescript. (i.e. * @property {import("./file.js").Type} prop ) as this is also used in openlayers, but is solved with complex rewrite rules. This would be for another time though.

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