Satisfies Operator
In one line
The satisfies operator (x satisfies T) checks that a value matches type T without widening the value's type, preserving more precise literal types.
In simple words
The satisfies operator checks that a value conforms to a type without changing the value's inferred type. It is safer than type assertions for validation because it actually checks the type rather than just claiming it.
For example, const config = { port: 3000 } satisfies { port: number } verifies that config matches { port: number } but keeps the literal type 3000 instead of widening to number. This preserves more precise types for later use.
Use satisfies when you want to validate that an object matches an expected shape without losing the precise inferred types. It was added in TypeScript 4.9.
Example
type Colors = "red" | "green" | "blue";
const palette = {
primary: "red",
secondary: "blue",
} satisfies Record<string, Colors>;
// palette.primary has type "red" (not widened to Colors)satisfies validates the type while preserving the literal type 'red'.
Related terms
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.