Skip to content

Commit 3e1613d

Browse files
committed
Allow omitting cardinality when creating query key
Signed-off-by: Anuraag Agrawal <[email protected]>
1 parent d007559 commit 3e1613d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/connect-query-core/src/connect-query-key.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ type KeyParams<Desc extends DescMethod | DescService> = Desc extends DescMethod
9292
/**
9393
* Set `cardinality` in the key - undefined is used for filters to match both finite and infinite queries.
9494
*/
95-
cardinality: "finite" | "infinite" | undefined;
95+
cardinality?: "finite" | "infinite" | undefined;
9696
/**
9797
* If omit the field with this name from the key for infinite queries.
9898
*/
@@ -110,7 +110,7 @@ type KeyParams<Desc extends DescMethod | DescService> = Desc extends DescMethod
110110
/**
111111
* Set `cardinality` in the key - undefined is used for filters to match both finite and infinite queries.
112112
*/
113-
cardinality: "finite" | "infinite" | undefined;
113+
cardinality?: "finite" | "infinite" | undefined;
114114
};
115115

116116
/**

0 commit comments

Comments
 (0)