Menu icon Foundation
Angular2

Hi Im having a struggle. with how my interface should look like, and how to reach 3 levels 

ie. postsarray.weather.main

return empty

and if onli postsarray.weather 

return an object i cant expand or retrieve data from.

 

interface look like the other values work fine but as said weather just return empty value if try go into weather.main

and fetch data. 

I think this is easy question but im stuck rn.

export interface IPosts {
weather: string;
dt: number;
id: number;
name: string;
}
 

angular2code

Hi Im having a struggle. with how my interface should look like, and how to reach 3 levels 

ie. postsarray.weather.main

return empty

and if onli postsarray.weather 

return an object i cant expand or retrieve data from.

 

interface look like the other values work fine but as said weather just return empty value if try go into weather.main

and fetch data. 

I think this is easy question but im stuck rn.

export interface IPosts {
weather: string;
dt: number;
id: number;
name: string;
}