#Should I declare all my variables with satisfies ?
3 messages · Page 1 of 1 (latest)
I think satisfies has its own usage when you would like to keep types that derive from union types. Other than that, I think most variables have no need to be that specific and should be "generic" enough.
Satisfies is more verbose and being after the value itself makes it harder to track.
I am open to arguments with examples.
For instance in a test I declare a variable and I type it with satisfies. My type has no unions is it useless or there are pros or cons?