TS2300
error TS2300: Duplicate identifier ‘name’.
Broken Code ❌
Objects don’t support multiple properties with the same name:
1 |
|
Fixed Code ✔️
To fix the error we have to remove the duplicated property:
1 |
|
error TS2300: Duplicate identifier ‘name’.
Objects don’t support multiple properties with the same name:
1 |
|
To fix the error we have to remove the duplicated property:
1 |
|