diff --git a/CHANGELOG.md b/CHANGELOG.md index fb0ca7e..e33f800 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,14 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +### [1.0.10](https://github.com/nrccua/apollo-rest-utils/compare/1.0.9...1.0.10) (2021-11-21) + + +### Changes + +* [E4E-30]: Fix a few more unknown => any ([be51ef0](https://github.com/nrccua/apollo-rest-utils/commit/be51ef09609061982e2c0b4c36cadf49e5e5f079)) +* [E4E-30]: 1.0.9 ([f7beab7](https://github.com/nrccua/apollo-rest-utils/commit/f7beab79299838ef1d14d1cee5266e71702fa618)) + ### [1.0.9](https://github.com/nrccua/apollo-rest-utils/compare/1.0.8...1.0.9) (2021-11-21) diff --git a/lib/useRestQuery/index.ts b/lib/useRestQuery/index.ts index f968aa6..87be2a3 100644 --- a/lib/useRestQuery/index.ts +++ b/lib/useRestQuery/index.ts @@ -109,7 +109,8 @@ export function useRestMutation< *` const uid = result.user.uid; // This is properly typed!` */ export function wrapRestMutation() { - return = ApolloCache>( + // eslint-disable-next-line @typescript-eslint/no-explicit-any + return = ApolloCache>( mutation: DocumentNode | TypedDocumentNode, options: IEndpointOptions & MutationHookOptions, ): MutationTuple, TVariables | Input, TContext, TCache> => @@ -177,7 +178,8 @@ export function wrapRestQuery() { export function useRestClientQuery( options: IEndpointOptions, TVariables | Input> & - QueryOptions> & { client: ApolloClient }, + // eslint-disable-next-line @typescript-eslint/no-explicit-any + QueryOptions> & { client: ApolloClient }, ): Promise>> { validateQueryAgainstEndpoint(options.query, options.endpoint); const directives = (options.query.definitions[0] as OperationDefinitionNode).selectionSet.selections[0].directives as DirectiveNode[]; @@ -219,10 +221,12 @@ export function useRestClientQuery( */ export function wrapRestClientQuery() { return ( - options: IEndpointOptions & QueryOptions & { client: ApolloClient }, + // eslint-disable-next-line @typescript-eslint/no-explicit-any + options: IEndpointOptions & QueryOptions & { client: ApolloClient }, ): Promise>> => useRestClientQuery( options as unknown as IEndpointOptions, TVariables | Input> & - QueryOptions> & { client: ApolloClient }, + // eslint-disable-next-line @typescript-eslint/no-explicit-any + QueryOptions> & { client: ApolloClient }, ); } diff --git a/package-lock.json b/package-lock.json index ad85301..f689dde 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "apollo-rest-utils", - "version": "1.0.9", + "version": "1.0.10", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 0e49eae..c1f36f7 100644 --- a/package.json +++ b/package.json @@ -65,5 +65,5 @@ "test:unit": "NODE_ENV=test jest --silent --coverage", "update:version": "standard-version" }, - "version": "1.0.9" + "version": "1.0.10" }