TS7010
error TS7010: ‘
sum
‘, which lacks return-type annotation, implicitly has an ‘any
‘ return type.
Broken Code ❌
1 |
|
Fixed Code ✔️
You have to add a return-type annotation and preferably a function implementation:
1 |
|
error TS7010: ‘
sum
‘, which lacks return-type annotation, implicitly has an ‘any
‘ return type.
1 |
|
You have to add a return-type annotation and preferably a function implementation:
1 |
|