interface RootItem { id: number; name: string; } type Payload = RootItem[];