typescript - Union type as key in interface? - Stack Overflow
Thu Mar 31 2022 08:57:20 GMT+0000 (Coordinated Universal Time)
Saved by @avivdaniel #javascript
You can use a Union Type as a key in a sub-property of an Interface.
https://stackoverflow.com/questions/55023610/union-type-as-key-in-interface
Comments