Skip to content

Commit

Permalink
fix(types): Default Error type for setQueryData function (#659)
Browse files Browse the repository at this point in the history
  • Loading branch information
smashercosmo authored Jun 29, 2020
1 parent 8a3752f commit b3e4dda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ export interface QueryCache {
}): Promise<TResult>

getQueryData<T = unknown>(key: AnyQueryKey | string): T | undefined
setQueryData<TResult, TError>(
setQueryData<TResult, TError = Error>(
key: AnyQueryKey | string,
dataOrUpdater:
| TResult
Expand Down

0 comments on commit b3e4dda

Please sign in to comment.