What would be correct typescript syntax to return a type from a function, while also defining the props that it accepts?
interface Item { [key: string]: {