3 ms·
I have not tried it yet, but this technique is documented as the second pattern on this website: https://basarat.gitbooks.io/typescript/docs/tips/nominalTyping
by saurik 9y ago
I have not tried it yet, but this technique is documented as the second pattern on this website:
https://basarat.gitbooks.io/typescript/docs/tips/nominalTyping.html https://basarat.gitbooks.io/typescript/docs/tips/nominalTypi...
(edit:) Ah ha! "Because numbers are type compatible with enums the previous technique cannot be used for them."