Skip to content

Commit eb3e21b

Browse files
Type MutationResult.reset as an arrow function (#12027)
Co-authored-by: Lenz Weber-Tronic <[email protected]> Co-authored-by: Lenz Weber-Tronic <[email protected]>
1 parent 4210ab1 commit eb3e21b

File tree

7 files changed

+11
-6
lines changed

7 files changed

+11
-6
lines changed

.api-reports/api-report-react.api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1178,7 +1178,7 @@ export interface MutationResult<TData = any> {
11781178
data?: TData | null;
11791179
error?: ApolloError;
11801180
loading: boolean;
1181-
reset(): void;
1181+
reset: () => void;
11821182
}
11831183

11841184
// Warning: (ae-forgotten-export) The symbol "MutationBaseOptions" needs to be exported by the entry point index.d.ts

.api-reports/api-report-react_components.api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1059,7 +1059,7 @@ interface MutationResult<TData = any> {
10591059
data?: TData | null;
10601060
error?: ApolloError;
10611061
loading: boolean;
1062-
reset(): void;
1062+
reset: () => void;
10631063
}
10641064

10651065
// Warning: (ae-forgotten-export) The symbol "MutationBaseOptions" needs to be exported by the entry point index.d.ts

.api-reports/api-report-react_hoc.api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1052,7 +1052,7 @@ interface MutationResult<TData = any> {
10521052
data?: TData | null;
10531053
error?: ApolloError;
10541054
loading: boolean;
1055-
reset(): void;
1055+
reset: () => void;
10561056
}
10571057

10581058
// Warning: (ae-forgotten-export) The symbol "MutationBaseOptions" needs to be exported by the entry point index.d.ts

.api-reports/api-report-react_hooks.api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1120,7 +1120,7 @@ interface MutationResult<TData = any> {
11201120
data?: TData | null;
11211121
error?: ApolloError;
11221122
loading: boolean;
1123-
reset(): void;
1123+
reset: () => void;
11241124
}
11251125

11261126
// Warning: (ae-forgotten-export) The symbol "MutationBaseOptions" needs to be exported by the entry point index.d.ts

.api-reports/api-report.api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1629,7 +1629,7 @@ export interface MutationResult<TData = any> {
16291629
data?: TData | null;
16301630
error?: ApolloError;
16311631
loading: boolean;
1632-
reset(): void;
1632+
reset: () => void;
16331633
}
16341634

16351635
// Warning: (ae-forgotten-export) The symbol "MutationBaseOptions" needs to be exported by the entry point index.d.ts

.changeset/modern-cows-tease.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@apollo/client": patch
3+
---
4+
5+
Type `MutationResult.reset` as an arrow function

src/react/types/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ export interface MutationResult<TData = any> {
380380
/** {@inheritDoc @apollo/client!MutationResultDocumentation#client:member} */
381381
client: ApolloClient<object>;
382382
/** {@inheritDoc @apollo/client!MutationResultDocumentation#reset:member} */
383-
reset(): void;
383+
reset: () => void;
384384
}
385385

386386
export declare type MutationFunction<

0 commit comments

Comments
 (0)