Skip to content

Commit

Permalink
Change ReadonlyArray to Array of keys
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick-Lucas committed Dec 7, 2024
1 parent 8408104 commit 9beffc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/query-core/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export type DefaultError = Register extends {
? TError
: Error

export type QueryKey = ReadonlyArray<unknown>
export type QueryKey = ReadonlyArray<any>

export declare const dataTagSymbol: unique symbol
export declare const dataTagErrorSymbol: unique symbol
Expand Down Expand Up @@ -994,7 +994,7 @@ export type InfiniteQueryObserverResult<
| InfiniteQueryObserverLoadingResult<TData, TError>
| InfiniteQueryObserverPendingResult<TData, TError>

export type MutationKey = ReadonlyArray<unknown>
export type MutationKey = ReadonlyArray<any>

export type MutationStatus = 'idle' | 'pending' | 'success' | 'error'

Expand Down

0 comments on commit 9beffc5

Please sign in to comment.