From b19444d1835c2cd3c706383f9cd70f6d478b2315 Mon Sep 17 00:00:00 2001 From: Phillip Huang <phillip@vanta.com> Date: Fri, 23 Aug 2024 11:44:49 -0700 Subject: [PATCH 1/4] Type MutationResult.reset as an arrow function --- src/react/types/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/react/types/types.ts b/src/react/types/types.ts index ab4444596f4..239f96fc133 100644 --- a/src/react/types/types.ts +++ b/src/react/types/types.ts @@ -380,7 +380,7 @@ export interface MutationResult<TData = any> { /** {@inheritDoc @apollo/client!MutationResultDocumentation#client:member} */ client: ApolloClient<object>; /** {@inheritDoc @apollo/client!MutationResultDocumentation#reset:member} */ - reset(): void; + reset: () => void; } export declare type MutationFunction< From fec8704155aaf39f01a48e372b032843042ea939 Mon Sep 17 00:00:00 2001 From: Phillip Huang <phillip@vanta.com> Date: Fri, 23 Aug 2024 11:48:28 -0700 Subject: [PATCH 2/4] add changeset --- .changeset/modern-cows-tease.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/modern-cows-tease.md diff --git a/.changeset/modern-cows-tease.md b/.changeset/modern-cows-tease.md new file mode 100644 index 00000000000..ba6792b50d1 --- /dev/null +++ b/.changeset/modern-cows-tease.md @@ -0,0 +1,5 @@ +--- +"@apollo/client": patch +--- + +Type Mutation.reset as an arrow function From 469e9dea8a91370afd342696af80ee4ff3e32dda Mon Sep 17 00:00:00 2001 From: Lenz Weber-Tronic <lorenz.weber-tronic@apollographql.com> Date: Mon, 26 Aug 2024 18:10:17 +0200 Subject: [PATCH 3/4] update api reports --- .api-reports/api-report-react.api.md | 2 +- .api-reports/api-report-react_components.api.md | 2 +- .api-reports/api-report-react_hoc.api.md | 2 +- .api-reports/api-report-react_hooks.api.md | 2 +- .api-reports/api-report.api.md | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.api-reports/api-report-react.api.md b/.api-reports/api-report-react.api.md index 3b86160f697..33cc0914821 100644 --- a/.api-reports/api-report-react.api.md +++ b/.api-reports/api-report-react.api.md @@ -1178,7 +1178,7 @@ export interface MutationResult<TData = any> { data?: TData | null; error?: ApolloError; loading: boolean; - reset(): void; + reset: () => void; } // Warning: (ae-forgotten-export) The symbol "MutationBaseOptions" needs to be exported by the entry point index.d.ts diff --git a/.api-reports/api-report-react_components.api.md b/.api-reports/api-report-react_components.api.md index 1aba60cd36f..040a99c9127 100644 --- a/.api-reports/api-report-react_components.api.md +++ b/.api-reports/api-report-react_components.api.md @@ -1059,7 +1059,7 @@ interface MutationResult<TData = any> { data?: TData | null; error?: ApolloError; loading: boolean; - reset(): void; + reset: () => void; } // Warning: (ae-forgotten-export) The symbol "MutationBaseOptions" needs to be exported by the entry point index.d.ts diff --git a/.api-reports/api-report-react_hoc.api.md b/.api-reports/api-report-react_hoc.api.md index d84bb3fe735..db8b909f5ff 100644 --- a/.api-reports/api-report-react_hoc.api.md +++ b/.api-reports/api-report-react_hoc.api.md @@ -1052,7 +1052,7 @@ interface MutationResult<TData = any> { data?: TData | null; error?: ApolloError; loading: boolean; - reset(): void; + reset: () => void; } // Warning: (ae-forgotten-export) The symbol "MutationBaseOptions" needs to be exported by the entry point index.d.ts diff --git a/.api-reports/api-report-react_hooks.api.md b/.api-reports/api-report-react_hooks.api.md index 6fe2ff1353b..eb378482a4c 100644 --- a/.api-reports/api-report-react_hooks.api.md +++ b/.api-reports/api-report-react_hooks.api.md @@ -1120,7 +1120,7 @@ interface MutationResult<TData = any> { data?: TData | null; error?: ApolloError; loading: boolean; - reset(): void; + reset: () => void; } // Warning: (ae-forgotten-export) The symbol "MutationBaseOptions" needs to be exported by the entry point index.d.ts diff --git a/.api-reports/api-report.api.md b/.api-reports/api-report.api.md index 335379d1bd8..f995e1f4bdd 100644 --- a/.api-reports/api-report.api.md +++ b/.api-reports/api-report.api.md @@ -1629,7 +1629,7 @@ export interface MutationResult<TData = any> { data?: TData | null; error?: ApolloError; loading: boolean; - reset(): void; + reset: () => void; } // Warning: (ae-forgotten-export) The symbol "MutationBaseOptions" needs to be exported by the entry point index.d.ts From 36543e260ebd28af9a73f58392018799d82c9c80 Mon Sep 17 00:00:00 2001 From: Lenz Weber-Tronic <mail@lenzw.de> Date: Tue, 27 Aug 2024 09:44:35 +0200 Subject: [PATCH 4/4] Update modern-cows-tease.md --- .changeset/modern-cows-tease.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changeset/modern-cows-tease.md b/.changeset/modern-cows-tease.md index ba6792b50d1..7d710ea1488 100644 --- a/.changeset/modern-cows-tease.md +++ b/.changeset/modern-cows-tease.md @@ -2,4 +2,4 @@ "@apollo/client": patch --- -Type Mutation.reset as an arrow function +Type `MutationResult.reset` as an arrow function