3 ms·
The "object" type is probably what I was searching.
by k__ 9y ago
The "object" type is probably what I was searching.
- spiralx 9y agoThe object type is the type of all non-primitive types, what you want is the Object type instead. Yes, it's confusing, especially as there's also the {} type! This article goes over the differences: https://blog.mariusschulz.com/2017/02/24/typescript-2-2-the-object-type https://blog.mariusschulz.com/2017/02/24/typescript-2-2-the-...