We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d95c3ac commit 14fc14cCopy full SHA for 14fc14c
packages/clients/tanstack-query/src/utils/types.ts
@@ -33,7 +33,17 @@ export type TrimDelegateModelOperations<
33
34
export type WithOptimistic<T> =
35
T extends Array<infer U>
36
- ? Array<U & { $optimistic?: boolean }>
+ ? Array<
37
+ U & {
38
+ /**
39
+ * Indicates if the item is in an optimistic update state
40
+ */
41
+ $optimistic?: boolean;
42
+ }
43
+ >
44
: T & {
45
46
47
48
$optimistic?: boolean;
49
};
0 commit comments