TS2322
error TS2322: Type ‘string’ is not assignable to type ‘number’.
Broken Code ❌
1 |
|
Fixed Code ✔️
The type of the returned value must match the return type specified in the function signature:
1 |
|
error TS2322: Type ‘string’ is not assignable to type ‘number’.
1 |
|
The type of the returned value must match the return type specified in the function signature:
1 |
|