You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: properly type extensions in GraphQLFormattedError (graphql#4286)
Following typescript documentation, it's not possible override interface
property, we can only add new props.
Since it's declared as unknown dict, even if we merge
`GraphQLErrorExtensions`, we can't access to our extensions without
workaround and verbose typescript in source-code.
It's annoying since apollo expose `GraphQLFormattedError` instead
`GraphQLError`
Refs:
https://www.typescriptlang.org/docs/handbook/declaration-merging.html
Refs: apollographql/apollo-client#11789
0 commit comments