hegemonic / catharsis

A JavaScript parser for Google Closure Compiler and JSDoc type expressions.
MIT License
54 stars 14 forks source link

Support intersection types. #49

Closed joelday closed 7 years ago

joelday commented 7 years ago

Same syntax as type unions, but with & instead of |.

https://flowtype.org/docs/union-intersection-types.html https://www.typescriptlang.org/docs/handbook/advanced-types.html

Prerequisite for https://github.com/jsdoc3/jsdoc/issues/1285 Related to https://github.com/eslint/doctrine/issues/183

Thanks!

hegemonic commented 7 years ago

Sorry, but Catharsis only supports Closure Compiler type expressions, not Flow or TypeScript type expressions. This is unlikely to change anytime soon.