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
typeprice=number;typesize=number;vara: price=1;varb: price=1;varc: size=1;vard: size=1;console.log(a+b);// this should work;console.log(a+c);// this should fail;
Or is there an alternative way to achieve this?
The text was updated successfully, but these errors were encountered:
You can use an interface with a private brand, but type aliases are pure aliases -- they have no [nominal] identity of their own. #364 covers units of measure, which is related, and actually has a concrete proposal open.
Or is there an alternative way to achieve this?
The text was updated successfully, but these errors were encountered: