Mirror: The highly customizable and versatile GraphQL client with which you add on features like normalized caching as you grow.
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

(core) - tweak ExecutionResult to line up with the graphql lib (#1998)

* tweak ExecutionResult to line up with external libs

* tweak to incorporate previous type

authored by

Jovi De Croock and committed by
GitHub
83f51553 dcac6716

+11 -2
+5
.changeset/seven-scissors-rescue.md
··· 1 + --- 2 + '@urql/core': patch 3 + --- 4 + 5 + Fix error-type of an `ExecutionResult` to line up with subscription-libs
+6 -2
packages/core/src/types.ts
··· 6 6 7 7 export type ExecutionResult = 8 8 | { 9 - errors?: Array<string | Partial<GraphQLError> | Error>; 9 + errors?: 10 + | Array<Partial<GraphQLError> | string | Error> 11 + | readonly GraphQLError[]; 10 12 data?: null | Record<string, any>; 11 13 extensions?: Record<string, any>; 12 14 hasNext?: boolean; 13 15 } 14 16 | { 15 - errors?: Array<string | Partial<GraphQLError> | Error>; 17 + errors?: 18 + | Array<Partial<GraphQLError> | string | Error> 19 + | readonly GraphQLError[]; 16 20 data: any; 17 21 path: (string | number)[]; 18 22 hasNext?: boolean;