Как определить тип "объект" в TypeScript?
type MyObject = { key: number; value: string };
let obj: MyObject = { key: 1, value: "Hello" };