News for hackers. Stuff that matters.
Re:TIL: `satisfies` is my favorite TypeScript keyword by madeofpalk on Saturday November 22, 2025 @06:17PM (#46019213)
> Too many really stop at the very basics.

As someone who knows slightly more than the basics, and enough to know about the advanced stuff that I don't know about, this is the correct place to stop.

I would much rather restructure my javascript than do typescript gymnastics to fit it into the type system.

Re:TIL: `satisfies` is my favorite TypeScript keyword by IceDane on Saturday November 22, 2025 @06:36PM (#46019343)
What a silly statement and effectively just a long-winded, arrogant way of telling everyone you have no idea what you're talking about.

There are maybe a few cases where this makes sense and is possible, but there are things you can model with typescript which only make sense in typescript and simply don't have any overlap with what you are describing. You can't "restructure your JavaScript" to get static type safety and auto completion for nested object paths.

Re:TIL: `satisfies` is my favorite TypeScript keyword by ervine on Saturday November 22, 2025 @07:08PM (#46019507)
You can restructure your JS to avoid some crazy verbose TS though, sometimes. I think that's the point they were making. Why be so hostile?
Re:TIL: `satisfies` is my favorite TypeScript keyword by IshKebab on Sunday November 23, 2025 @04:03AM (#46021920)
I agree. The advanced stuff mostly exists in order to allow writing type annotations for JavaScript libraries that have APIs that are very dynamic.

If you're purely writing Typescript then you mostly don't need it.