Skip to content

Commit fba755a

Browse files
committed
chore: rename type
1 parent 1db7e24 commit fba755a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/query-core/src/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ export interface InfiniteQueryPageParamsOptions<
154154
getNextPageParam: GetNextPageParamFunction<TPageParam, TQueryFnData>
155155
}
156156

157-
export type throwOnError<
157+
export type ThrowOnError<
158158
TQueryFnData,
159159
TError,
160160
TQueryData,
@@ -266,7 +266,7 @@ export interface QueryObserverOptions<
266266
* If set to a function, it will be passed the error and the query, and it should return a boolean indicating whether to show the error in an error boundary (`true`) or return the error as state (`false`).
267267
* Defaults to `false`.
268268
*/
269-
throwOnError?: throwOnError<TQueryFnData, TError, TQueryData, TQueryKey>
269+
throwOnError?: ThrowOnError<TQueryFnData, TError, TQueryData, TQueryKey>
270270
/**
271271
* This option can be used to transform or select a part of the data returned by the query function.
272272
*/

packages/react-query/src/errorBoundaryUtils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type {
44
Query,
55
QueryKey,
66
QueryObserverResult,
7-
throwOnError,
7+
ThrowOnError,
88
} from '@tanstack/query-core'
99
import type { QueryErrorResetBoundaryValue } from './QueryErrorResetBoundary'
1010
import * as React from 'react'
@@ -56,7 +56,7 @@ export const getHasError = <
5656
}: {
5757
result: QueryObserverResult<TData, TError>
5858
errorResetBoundary: QueryErrorResetBoundaryValue
59-
throwOnError: throwOnError<TQueryFnData, TError, TQueryData, TQueryKey>
59+
throwOnError: ThrowOnError<TQueryFnData, TError, TQueryData, TQueryKey>
6060
query: Query<TQueryFnData, TError, TQueryData, TQueryKey>
6161
}) => {
6262
return (

0 commit comments

Comments
 (0)