Skip to content

Commit 83e9de6

Browse files
chore: update pnpm version to 9.3.0 and enhance type safety in PreferencesView
1 parent a399f65 commit 83e9de6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/web-sdk.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Setup pnpm 8
2626
uses: pnpm/action-setup@v2
2727
with:
28-
version: 8.6.9
28+
version: 9.3.0
2929

3030
- name: Setup Node.js 20.x
3131
uses: actions/setup-node@v2

web/sdk/admin/views/preferences/PreferencesView.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
DescribePreferencesResponse,
1010
} from "@raystack/proton/frontier";
1111
import { ExclamationTriangleIcon } from "@radix-ui/react-icons";
12-
import { useQuery } from "@tanstack/react-query";
12+
import { useQuery, type UseQueryOptions } from "@tanstack/react-query";
1313
import type { ConnectError } from "@connectrpc/connect";
1414
import PreferencesList from "./index";
1515
import PreferenceDetails from "./details";
@@ -30,11 +30,11 @@ export default function PreferencesView({
3030
const preferencesQuery = useQuery({
3131
...createQueryOptions(AdminServiceQueries.listPreferences, {}, { transport }),
3232
staleTime: Infinity,
33-
});
33+
} as unknown as UseQueryOptions<unknown, Error, unknown, readonly unknown[]>);
3434
const traitsQuery = useQuery({
3535
...createQueryOptions(FrontierServiceQueries.describePreferences, {}, { transport }),
3636
staleTime: Infinity,
37-
});
37+
} as unknown as UseQueryOptions<unknown, Error, unknown, readonly unknown[]>);
3838

3939
const preferences = ((preferencesQuery.data as ListPreferencesResponse)?.preferences || []) as Preference[];
4040
const traits = ((traitsQuery.data as DescribePreferencesResponse)?.traits || []) as PreferenceTrait[];

0 commit comments

Comments
 (0)