Skip to content

Commit a9caedb

Browse files
committed
Prefer Extract
1 parent 3bda3f4 commit a9caedb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import { useQuery, type UseQueryResult } from '@tanstack/react-query'
33

44
import { useSeamClient } from 'lib/seam/use-seam-client.js'
55

6-
type Endpoints = Omit<
6+
type Endpoints = Pick<
77
SeamHttpEndpoints,
8-
Exclude<keyof SeamHttpEndpoints, `/${string}`>
8+
Extract<keyof SeamHttpEndpoints, `/${string}`>
99
>
1010

1111
export function useSeamQuery<T extends keyof Endpoints>(

0 commit comments

Comments
 (0)