3 ms·
TypeScript was fairly new at that time and to learn it, I ported 2048 to TypeScript. It was fun! Fast forward a couple of years, I was debugging an issue with
by nikeee 2y ago
TypeScript was fairly new at that time and to learn it, I ported 2048 to TypeScript. It was fun!
Fast forward a couple of years, I was debugging an issue with a react component and glanced over the .d.ts of react. I was quite surprised when I saw that my name was in them. I never contributed to react's types myself.
It turned out that someone took some types I wrote for 2048 and used them in the very first type definitions for react:
https://github.com/DefinitelyTyped/DefinitelyTyped/commit/4bed0b571c011818db3e05ae0d1ae5b985cda206 https://github.com/DefinitelyTyped/DefinitelyTyped/commit/4b...
It's still there to this date, but I've lost my TS port in the sands of time.