Skip to content

Commit

Permalink
Merge branch 'master' into fix/yarn-check
Browse files Browse the repository at this point in the history
  • Loading branch information
kirill-ivanovvv committed Jan 15, 2025
2 parents 9a926a8 + 6e5cd99 commit 22435d4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion globals/data/src/getters/apollo-error-link.getter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,14 @@ export const getApolloErrorLink = (): ApolloLink => {
graphQLErrors: Array<GraphQLFormattedError & { debugMessage: string }>
// eslint-disable-next-line @typescript-eslint/no-explicit-any
cause?: Record<string, any>
operation?: Record<string, any>
}

Check failure on line 15 in globals/data/src/getters/apollo-error-link.getter.ts

View workflow job for this annotation

GitHub Actions / Lint

(@typescript-eslint/no-explicit-any): Unexpected any. Specify a different type.

Unexpected any. Specify a different type.
Raw output
  12 |       // eslint-disable-next-line @typescript-eslint/no-explicit-any
  13 |       cause?: Record<string, any>
> 14 |       operation?: Record<string, any>
     |                                  ^
  15 |     }
  16 |     const { graphQLErrors, cause, operation } = extendedErrorResponse
  17 |
const { graphQLErrors, cause } = extendedErrorResponse
const { graphQLErrors, cause, operation } = extendedErrorResponse

if (operation) {
console.debug('OperationVariables:', operation.variables)
console.debug('OperationQuery:', operation.query)
}
if (graphQLErrors) {
graphQLErrors.forEach(({ debugMessage, message, locations, path, extensions }) => {
console.debug(`DebugMessage: ${debugMessage}`)
Expand Down

0 comments on commit 22435d4

Please sign in to comment.