TS1095
error TS1095: A ‘set’ accessor cannot have a return type annotation.
Broken Code ❌
1 |
|
Fixed Code ✔️
You have to remove the return type from the “set” accessor:
1 |
|
error TS1095: A ‘set’ accessor cannot have a return type annotation.
1 |
|
You have to remove the return type from the “set” accessor:
1 |
|