Commit ba7d20a
authored
fix: properly type
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#11789extensions in GraphQLFormattedError1 parent e9b6b62 commit ba7d20a
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
278 | | - | |
| 278 | + | |
279 | 279 | | |
280 | 280 | | |
281 | 281 | | |
| |||
0 commit comments