Skip to content

Commit b0c33d9

Browse files
committed
cursors can be nullable
1 parent 50623e7 commit b0c33d9

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.ottotime

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
# Do not edit manually. Check into git.
33
1743012861-240:01
44
1743177835- 35:05
5-
1747765507- 11:36
5+
1747765507- 13:40
6+
1747767368- 0:00

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "trpc-svelte-query",
3-
"version": "3.0.2",
3+
"version": "3.0.3",
44
"description": "Use tRPC with SvelteKit and Tanstack Query (full SSR support)",
55
"author": "Ottomated",
66
"license": "MIT",

src/shared/utils.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ export type QueryUtils<TDef extends ResolverDef> = {
8282
) => TDef['output'] | undefined;
8383
};
8484

85-
type ExtractCursorType<TInput> = NonNullable<
86-
TInput extends { cursor?: any } ? TInput['cursor'] : unknown
87-
>;
85+
type ExtractCursorType<TInput> = TInput extends { cursor?: any }
86+
? TInput['cursor']
87+
: unknown;
8888

8989
export type InfiniteQueryUtils<TDef extends ResolverDef> = QueryUtils<TDef> & {
9090
prefetchInfinite: (

0 commit comments

Comments
 (0)