Grommet: Use JSDoc instead of TypeScript for strong typing

Created on 17 Sep 2019  路  2Comments  路  Source: grommet/grommet

In short, I think this could help avoid adding another barrier of entry for external contributors and some other disadvantages discussed in: https://medium.com/javascript-scene/the-typescript-tax-132ff4cb175b

Here is some documentation of using JSDoc comments to add the strong typing to the existing JavaScript, as documented in the following resources:

see also this discussion: prettier/prettier#6286

There should also be a way to use JSDoc comments to completely bypass using *.d.ts, not working 100% due to microsoft/TypeScript#33136

I would like to give this idea sometime in the near future (no promises right now, unfortunately).

++ /cc @rbiggs

discussion

Most helpful comment

Thank you for sharing buddy!! 馃殌

All 2 comments

Thank you for sharing buddy!! 馃殌

Thanks @ShimiSun for all of your words of encouragement.

I guess my comments in #3271 were too controversial. My opinion remains the same, will do my best to work with whatever decision is taken in the end.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JoeButler7 picture JoeButler7  路  3Comments

atanasster picture atanasster  路  4Comments

ravenberg picture ravenberg  路  3Comments

Kitanotori picture Kitanotori  路  4Comments

zacksinclair picture zacksinclair  路  3Comments