Repository navigation
TS2322: Type string | boolean | ("ADMIN" | "STAFF" | "INSTRUCTOR")[] is not assignable to type never #1910
Replies: 1 comment
|
This TypeScript error occurs because of how TypeScript evaluates dynamic property assignments when the key is a union type. Here is a breakdown of why this happens, why removing 1. Why
|
Uh oh!
There was an error while loading. Please reload this page.
Error:

It is more likely because of roles and status fields, once I remove them, this type error is gone but what is wrong with my roles and status ? any hint to fix ?
All reactions