assignable

The rule that decides whether a value of one type may be used where another type is expected.

In more detail

A type is assignable to another if it has at least all the required properties with compatible types. Errors such as TS2345, argument of type string is not assignable to parameter of type number, are assignability failures. Utility types such as Exclude and Extract are defined in terms of assignability.

Related terms

Taught in

References