I spent two hours on i think should be a simple solution thus the html badness. How would i be able to display my tags? The html badness
The interfaces i put my data into(everything work except the arrays) The function that calls the api and gets the data that my html needs
According to your PhotoDetails interface, tags is of type Tag, not Tags. This means that detail.tags will return you a single Tag. If you want that to be an array your interface should be changed like so:
export interface PhotoDetails {
...
tags: Tag[];
...
}
The Tags interface is most likely redundant, and you can get rid of it. When you want an array of Tag, just declare the type as Tag[].