top | item 40148029

(no title)

maskros | 1 year ago

You don't even need the symbol. If you want the simplest thing that will work:

    type Velocity = number & { BRAND: "Velocity" }
    type Distance = number & { BRAND: "Distance" }

    var x = 100 as Distance

discuss

order

No comments yet.