diff --git a/lib/useRestQuery/index.ts b/lib/useRestQuery/index.ts index 87be2a3..20ebfaf 100644 --- a/lib/useRestQuery/index.ts +++ b/lib/useRestQuery/index.ts @@ -178,8 +178,7 @@ export function wrapRestQuery() { export function useRestClientQuery( options: IEndpointOptions, TVariables | Input> & - // eslint-disable-next-line @typescript-eslint/no-explicit-any - QueryOptions> & { client: ApolloClient }, + QueryOptions> & { client: ApolloClient }, ): Promise>> { validateQueryAgainstEndpoint(options.query, options.endpoint); const directives = (options.query.definitions[0] as OperationDefinitionNode).selectionSet.selections[0].directives as DirectiveNode[]; @@ -222,11 +221,11 @@ export function useRestClientQuery( export function wrapRestClientQuery() { return ( // eslint-disable-next-line @typescript-eslint/no-explicit-any - options: IEndpointOptions & QueryOptions & { client: ApolloClient }, + options: IEndpointOptions & QueryOptions & { client: ApolloClient }, ): Promise>> => useRestClientQuery( options as unknown as IEndpointOptions, TVariables | Input> & // eslint-disable-next-line @typescript-eslint/no-explicit-any - QueryOptions> & { client: ApolloClient }, + QueryOptions> & { client: ApolloClient }, ); }