TS2790
error TS2790: The operand of a ‘delete’ operator must be optional.
Broken Code ❌
1 |
|
Fixed Code ✔️
When using the delete
operator to remove a property from an object, the property must be defined as optional in TypeScript:
1 |
|
error TS2790: The operand of a ‘delete’ operator must be optional.
1 |
|
When using the delete
operator to remove a property from an object, the property must be defined as optional in TypeScript:
1 |
|