Skip to content

Commit

Permalink
fix(types): make options undefinable (#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

1 comment on commit 316bce5

@vercel
Copy link

@vercel vercel bot commented on 316bce5 Jul 15, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.