Skip to content

Commit 154da59

Browse files
committed
refactor: move internal generic to $fetch
1 parent 31870bd commit 154da59

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/runtime/composables/visual-editing.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,8 @@ export const useSanityQuery = <T = unknown, E = Error> (
250250
query: string,
251251
params: QueryParams,
252252
options: UnfilteredResponseQueryOptions,
253-
): Promise<{ result: T, resultSourceMap: ContentSourceMap }> =>
254-
$fetch(sanity.config.visualEditing!.proxyEndpoint, {
253+
) =>
254+
$fetch<{ result: T, resultSourceMap: ContentSourceMap }>(sanity.config.visualEditing!.proxyEndpoint, {
255255
method: 'POST',
256256
body: { query, params, options },
257257
}),

0 commit comments

Comments
 (0)