Type '{ firstMessageSubject: string; hasStarredMessages: boolean; id: string; isImportant: boolean; isInChats: boolean; isInInbox: boolean; isInPriorityInbox: boolean; isInSpam: boolean; isInTrash: boolean; ... 5 more ...; permalink: string; }[]' is not assignable to type '{ firstMessageSubject: string; hasStarredMessages: boolean; id: string; isImportant: boolean; isInChats: boolean; isInInbox: boolean; isInPriorityInbox: boolean; isInSpam: boolean; isInTrash: boolean; ... 5 more ...; permalink: string; }[]'. Two different types with this name exist, but they are unrelated.