typescript
graphql type:
type GraphQLResponse<K extends string, T> = { errors?: Array<{ message: string, locations: {line: number, column: number}[], path: string[] }>, data?: { [k in K]: T } }
(ваш голос учтен)