TypeScript Types
Object — global Object interface
The capitalized Object interface is declared in the TypeScript standard library. In strict mode it admits ordinary non-nullish primitives as well as objects, so it is not equivalent to lowercase object. Its members describe general object operations such as toString, not the fields of your application model. Prefer primitive annotations or a specific structural type for ordinary contracts. Example output: "42". The example was designed for strict checking with an ES2022 target; type annotations do not add runtime validation.
Formal Syntax & Structure
typescript syntaxtypescript
let value: Object;Working Example
Example Snippettypescript
const value: Object = 42;console.log(value.toString());