I have a util function that fetches a list of resources at an endpoint. I wanted to properly type this function.
type item = { id: number name: string }