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
there are two typescript-eslint errors:
'Unsafe assignment of an any value.eslint@typescript-eslint/no-unsafe-assignment'
Unsafe call of an any typed value.eslint@typescript-eslint/no-unsafe-call
screenshot of request.ts file:
I just feel it related to the generated gql.ts, so I attached screenshot of generated gql.ts:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello, I got an issue with the typescript-eslint.
I am using the gql function which is generated by the codegen,
Firstly I run the codegen to generate the graphql schema type
Then
// in request.ts file
import { gql } from '../@types/generated/gql';
export const getLoanCalculator = gql(/* GraphQL */
query ExampleQuery($mockedStatus: String) { data: { XXXX } }
there are two typescript-eslint errors:
'Unsafe assignment of an any value.eslint@typescript-eslint/no-unsafe-assignment'
Unsafe call of an any typed value.eslint@typescript-eslint/no-unsafe-call
screenshot of request.ts file:
I just feel it related to the generated gql.ts, so I attached screenshot of generated gql.ts:
Do you have any suggestion?
Beta Was this translation helpful? Give feedback.
All reactions