TLDR Web Dev · OPINIONS & ADVICE
SATISFIES IN TYPESCRIPT
Summary from the TLDR Web Dev newsletter
The `satisfies` keyword in TypeScript allows you to assert that a value satisfies a given type while preventing TypeScript from inferring a wider type, which allows for excess property checking on object literals. This is especially useful when you want to catch typos in property names while still having idiomatic code structure.