Skip to content

Commit 14fc14c

Browse files
committed
update
1 parent d95c3ac commit 14fc14c

File tree

1 file changed

+11
-1
lines changed
  • packages/clients/tanstack-query/src/utils

1 file changed

+11
-1
lines changed

packages/clients/tanstack-query/src/utils/types.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,17 @@ export type TrimDelegateModelOperations<
3333

3434
export type WithOptimistic<T> =
3535
T extends Array<infer U>
36-
? Array<U & { $optimistic?: boolean }>
36+
? Array<
37+
U & {
38+
/**
39+
* Indicates if the item is in an optimistic update state
40+
*/
41+
$optimistic?: boolean;
42+
}
43+
>
3744
: T & {
45+
/**
46+
* Indicates if the item is in an optimistic update state
47+
*/
3848
$optimistic?: boolean;
3949
};

0 commit comments

Comments
 (0)