TS1228
error TS1228: A type predicate is only allowed in return type position for functions and methods.
Broken Code ❌
1 |
|
Fixed Code ✔️
You have to separate the argument list from the return type definition by a :
:
1 |
|
error TS1228: A type predicate is only allowed in return type position for functions and methods.
1 |
|
You have to separate the argument list from the return type definition by a :
:
1 |
|