Skip to content

Commit df9d475

Browse files
committed
Use SeamHttpEndpointPaths
1 parent a9caedb commit df9d475

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@
145145
"@rxfork/r2wc-react-to-web-component": "^2.4.0",
146146
"@seamapi/fake-devicedb": "^1.6.1",
147147
"@seamapi/fake-seam-connect": "^1.76.0",
148-
"@seamapi/http": "^1.37.0",
148+
"@seamapi/http": "^1.38.0",
149149
"@seamapi/types": "^1.395.3",
150150
"@storybook/addon-designs": "^7.0.1",
151151
"@storybook/addon-essentials": "^7.0.2",

src/lib/seam/use-seam-query.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
import type { SeamHttpApiError, SeamHttpEndpoints } from '@seamapi/http/connect'
1+
import type {
2+
SeamHttpApiError,
3+
SeamHttpEndpointPaths,
4+
SeamHttpEndpoints,
5+
} from '@seamapi/http/connect'
26
import { useQuery, type UseQueryResult } from '@tanstack/react-query'
37

48
import { useSeamClient } from 'lib/seam/use-seam-client.js'
59

6-
type Endpoints = Pick<
7-
SeamHttpEndpoints,
8-
Extract<keyof SeamHttpEndpoints, `/${string}`>
9-
>
10+
type Endpoints = Pick<SeamHttpEndpoints, SeamHttpEndpointPaths>
1011

1112
export function useSeamQuery<T extends keyof Endpoints>(
1213
endpointPath: T,

0 commit comments

Comments
 (0)