An Objectin TypeScript is the same as in JavaScript.
The difference is that it anyaccepts primitives: a is numbernot an object if it is not placed in square c number.
So, while it Array<any>may contain primitives, Array<Object>it cannot.
TL DR: do not use Object.
Source: TypeScript Do and Do'ts
source
share