3 ms·
So the only change is one line, and there are no additional dependencies? type Brand<K, T> = K & { __brand: T } Looks like a great solution, also the consta
by nivertech 4y ago
So the only change is one line, and there are no additional dependencies?
type Brand<K, T> = K & { __brand: T }
Looks like a great solution, also the constant syntax is very readable:
10 as USD