TypeScript
TypeScript found a value that is not assignable to the target type
TypeScript rejected an assignment because the value's type is incompatible with the declared or inferred target type.
TypeScript
TypeScript rejected an assignment because the value's type is incompatible with the declared or inferred target type.
Observed message
error TS2322: Type 'X' is not assignable to type 'Y'.
Why it happens
How to fix it
Official reference
TypeScript Docs: Understanding ErrorsRelated errors
Explore more