Open enccode opened 2 months ago
Answer here: https://www.reddit.com/r/typescript/comments/1fs64kb/can_i_use_greaterthan_as_parameter_type/
Would be nice to include an example of this in the doc comment of the type.
I asked this question 2 hours ago on reddit...came to post the link here and saw you did it faster... I would be happy if I could help you by putting the examples in the documentation... but I think it's better if someone with more experience in TypeScript does it... Thank you for your time and making very useful tools.
Answer here: reddit.com/r/typescript/comments/1fs64kb/can_i_use_greaterthan_as_parameter_type
Would be nice to include an example of this in the doc comment of the type.
There are already examples in the doc comment of GreaterThan.
Newbie here...
Is it possible to use GreaterThan type for the function/method parameters?
when I write the following function:
and... :
I get the following typescript error:
It took me hours... I didn't find a solution
Upvote & Fund