News for hackers. Stuff that matters.
Re:TypeScript is terrible for library developers by crabmusket on Tuesday August 23, 2022 @07:33PM (#32573022)
> I'd rather not warp my whole project around a typing system if I don't need to.

This sounds to me like MongoDB advocates like "psh! who needs a schema! don't slow me down, I'll just dump JSON into the database however I like." The types exist whether you write them down or not.

I agree with you that TS might not be great for everyone and every use case. But maybe you should just use `any` some more!

Re:TypeScript is terrible for library developers by jd_mongodb on Wednesday August 24, 2022 @03:31AM (#32575977)
Every field in a MongoDB document (we encoded documents in BSON at the driver level) is typed and you can apply a schema to any collection if you choose to do so.