i'm new to Typescript and javascript. My question is: how from this
```
{
"release": {
"ref": {},
"commits": {}
},
"debug": {
"ref": {},
"commits": {}
},
"feature": {
"ref": {},
"commits": {}
},
"hotfix": {
"ref": {},
"commits": {}
}
}
```
map it with with Typescript using interfaces
export interface IRepo {
branches: IBranch; // how to make branches a of type string: IBranch dictionary?
}
there will be unknown number of properties like debug, release, etc, i want to keep them as dictionary in IRepo instance
i'm using this to fetch data:
```
getRepo() : Observable<IRepo> {
if (!this.repo) {
return this.http.get(this._baseUrl + 'repo.json')
.map((res: Response) => {
this.repo = res.json();
return this.repo;
})
.catch(this.handleError);
} else {
return this.createObservable(this.repo);
}
}
```