Hacker News new | ask | show | jobs
by latchkey 1467 days ago
It is interesting (and cool) that this uses Typescript over Flow. It seems like Flow is still being developed too.

Just looking at the top level package.json [1], I wonder at which point you abstract all those copy/pasted targets into a script that takes an argument.

[1] https://github.com/facebook/lexical/blob/main/package.json#L...

2 comments

When they first launched a few months ago it was all Flow, and then it was quickly converted to Typescript. I think they still ship the Flow types too.
I've been migrating the Lexical codebase to TypeScript recently, especially since it was open-sourced. This was done for a few reasons, but if nothing else, we know TypeScript has a much wider adoption that Flow. Removing learning curves helps to encourage contributions from the community.
Even FB engineers can learn a thing or two. ;)

Good tip.

Thanks! I guess the last 20 years of writing code were not a waste after all. Heh. =)