Skip to content

Commit

Permalink
Make tRPC options for queries optional (#20)
Browse files Browse the repository at this point in the history
* fix: make trpc options optional for queries

* chore: bump version
  • Loading branch information
vishalbalaji committed Jan 10, 2024
1 parent 481aa9b commit 7395a46
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "trpc-svelte-query-adapter",
"version": "2.2.1",
"version": "2.2.2",
"description": "A simple adapter to use `@tanstack/svelte-query` with trpc, similar to `@trpc/react-query`.",
"keywords": [
"trpc",
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,8 @@ interface CreateServerQueryOptions<TOutput, TError, TData>
}

type TRPCQueryOpts = {
trpc: {
abortOnUnmount: boolean;
trpc?: {
abortOnUnmount?: boolean;
},
};

Expand Down

0 comments on commit 7395a46

Please sign in to comment.