2 ms·
This is neat. Can someone explain why the generic types extending string need to default to any in all these cases, like: `TDescription extends string = any` ?
by noduerme 4y ago
This is neat. Can someone explain why the generic types extending string need to default to any in all these cases, like:
`TDescription extends string = any` ?
- cacozen 4y agoIt’s just so I can later reuse that type without having to pass in the generic. Like I do on lines 41 and 42