meatier icon indicating copy to clipboard operation
meatier copied to clipboard

Typescript

Open krasevych opened this issue 8 years ago • 4 comments

What do you think about add typescript or flow to the Meatier? static types can help you avoid mistakes and give a good inline doc for some plugins/libs... ?

krasevych avatar Jan 04 '17 22:01 krasevych

I like flow more than typescript, but given the choice I'd still choose plain JS, maybe jsdoc if it's tricky stuff. If you've got any repos that might change my mind where flow typings look nicer than react proptypes lemme know!

mattkrick avatar Jan 04 '17 23:01 mattkrick

why do you like flow more than typescript?

krasevych avatar Jan 05 '17 16:01 krasevych

it's like a lightweight typescript. i can still use babel. maybe it wont be much of an issue moving forward, but the typescript transpiler couldn't do a lot of ES2015+ things that babel could do. making ts play nicely with webpack was such a chore.

mattkrick avatar Jan 05 '17 17:01 mattkrick

ok thanks I will read some articles about static types and maybe I will change my mind

krasevych avatar Jan 05 '17 17:01 krasevych