Jul 1, 2022
That's TypeScript conditional type syntax - you need to use `extends` in this case. As much as it resembles regular JavaScript ternary operator, it's not the same, you cannot drop comparison with true. More information:
https://www.typescriptlang.org/docs/handbook/2/conditional-types.html
Minimal example so you can experiment with it:
I hope that helps!