effective-typescript
effective-typescript copied to clipboard
Item 13: How NamedVariable can be useful?
Hi Dan, thank you for the great book!
In Item 13, the NamedVariable type is used as an example to explain how extending union types can be useful. But I don't get it. Could you show me some concrete use cases in which this type is useful? Thanks in advance!