Skip to content

Commit 186c22e

Browse files
committed
feat: composable open for fetch
1 parent f205cf1 commit 186c22e

File tree

2 files changed

+2
-170
lines changed

2 files changed

+2
-170
lines changed

src/composables/use-open-fetch.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export type UseOpenFetchClient<Paths> = <
4444
ResT = FetchResponseData<Methods[DefaultMethod]>,
4545
>(
4646
path: Path | (() => Path),
47-
options: RequestInit & UseOpenFetchOptions<Method, LowercasedMethod, Methods>,
47+
options: UseOpenFetchOptions<Method, LowercasedMethod, Methods>,
4848
useFetchOptions?: UseFetchOptions,
4949
) => UseFetchReturn<ResT> & PromiseLike<UseFetchReturn<ResT>>
5050

@@ -62,7 +62,7 @@ export function createUseOpenFetch<Paths>(
6262

6363
return (
6464
url: MaybeRefOrGetter<string>,
65-
requests: RequestInit,
65+
requests: any, //TODO: find a way to type this
6666
useFetchOptions?: UseFetchOptions,
6767
) => {
6868
return useFetch(toValue(url), requests, useFetchOptions)

src/composables/use-query.ts

Lines changed: 0 additions & 168 deletions
This file was deleted.

0 commit comments

Comments
 (0)