From ae6db2a5c13366b7df670b501b1d4f14460f8308 Mon Sep 17 00:00:00 2001 From: Adam Weeden Date: Sun, 21 Nov 2021 14:48:42 -0500 Subject: [PATCH] [E4E-30]:ApolloClient --- lib/useRestQuery/index.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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 }, ); }