CodeZettaInterview Hub

TypeScript · Advanced Types · Mid-Level · Comparison

Satisfies operator — why use it?

Short Interview Answer

Checks a value matches a type without widening to that type.

Detailed Explanation

Preserves literal inference while validating shape — great for config objects.

Did you know this answer?