Skip to content

Commit

Permalink
fix(types): make options undefinable (TanStack#752)
Browse files Browse the repository at this point in the history
better composition support
  • Loading branch information
Krisztiaan authored Jul 15, 2020
1 parent a2d1f76 commit 316bce5
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 @@ -11,7 +11,7 @@ import * as _ from 'ts-toolbelt'
export type UseQueryRest<TResult, TKey extends AnyQueryKey, TError> =
| []
| [QueryFunction<TResult, TKey>]
| [QueryFunction<TResult, TKey>, QueryOptions<TResult, TError>]
| [QueryFunction<TResult, TKey>, QueryOptions<TResult, TError> | undefined]
| [QueryOptions<TResult, TError>]

// Object Syntax
Expand Down

0 comments on commit 316bce5

Please sign in to comment.