Skip to content

Commit

Permalink
chore: note
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Sep 27, 2024
1 parent e8ea6cd commit 0999498
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/query-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ export interface UseQueryOptions<TResult = unknown, TError = ErrorDefault> {
*/
placeholderData?:
| NoInfer<TResult>
// NOTE: the generic here allows to make UseQueryOptions<T> assignable to UseQueryOptions<unknown>
// https://www.typescriptlang.org/play/?#code/JYOwLgpgTgZghgYwgAgPIAczAPYgM4A8AKsgLzICuIA1iNgO4gB8yA3gFDLICOAXMgAoAlGRYAFKNgC2wPBGJNOydAH5eSrgHpNyABZwAbqADmyMLpRwoxilIjhkAIygQ41PMmBgNyAD6CBdBcjbAo8ABE4MDh+ADlsAEkQGGgFP0oQABMIGFAITJFSFniklKgFIR9tZCJdWWQDaDwcEGR6bCh3Kp1-AWISCAAPSCyPIiZA4JwwyOj+IhJ-KmzckHzCliJKgF92dlBIWEQUAFFwKABPYjIM2gZmNiVsTBa8fgwsXEJx9JAKABt-uxduwYFQEJ9WggAPr2MCXBQCZ6Qt5oF5fNL+P6AoT8M7wq4-DhcFxgChQVqsZDI17IXa7BBfMDIDzkNb0ZAAZQgYAI+MuE0qeAAdHBMpkBDC4ZcBMSuDx+HA8BcQAhBBtkAAWABMABofOh+AIQBrWgBCNkA-7IFTIVoAKmQ2uQ-E1wKElSAA
| (<T extends TResult>(
previousData: T | undefined,
) => NoInfer<TResult> | null | undefined | void)
Expand Down

0 comments on commit 0999498

Please sign in to comment.