You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What's the benefit of that type alias? It garantees that one property is defined, any of the properties, but without knowing which one. In practice, I don't see any difference between AtLeastOne<T> and Partial<T>, you still have to check if the property you need to deal with exists. Am I missing something?
As a side note, that type alias is not "at least", but "exactly one", because according to that type an object can't have more than one property. "At least one" should be modeled like this:
🚀 Feature request
Something similar to:
Which is like partial, but ensures at least one property exists.
The text was updated successfully, but these errors were encountered: