Skip to content

Commit 316bce5

Browse files
authored
fix(types): make options undefinable (TanStack#752)
better composition support
1 parent a2d1f76 commit 316bce5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import * as _ from 'ts-toolbelt'
1111
export type UseQueryRest<TResult, TKey extends AnyQueryKey, TError> =
1212
| []
1313
| [QueryFunction<TResult, TKey>]
14-
| [QueryFunction<TResult, TKey>, QueryOptions<TResult, TError>]
14+
| [QueryFunction<TResult, TKey>, QueryOptions<TResult, TError> | undefined]
1515
| [QueryOptions<TResult, TError>]
1616

1717
// Object Syntax

0 commit comments

Comments
 (0)