не думаю что это сильно важно
foo()
. return ЧТОТОТАМ
. {
"id": 1,
"name": "Leanne Graham",
"username": "Bret",
"address": {
"street": "Kulas Light",
"geo": {
"lat": "-37.3159",
"lng": "81.1496"
}
},
"phone": "1-770-736-8031 x56442",
"website": "hildegard.org",
"company": {
"name": "Romaguera-Crona",
"catchPhrase": "Multi-layered client-server neural-net",
"bs": "harness real-time e-markets"
}
}
interface RootObject {
id: number;
name: string;
username: string;
address: Address;
phone: string;
website: string;
company: Company;
}
interface Company {
name: string;
catchPhrase: string;
bs: string;
}
interface Address {
street: string;
geo: Geo;
}
interface Geo {
lat: string;
lng: string;
}