chore: hide private option

This commit is contained in:
Sébastien Chopin 2024-01-05 17:22:53 +01:00
parent c689fd27d3
commit 86afe81e83
2 changed files with 1 additions and 5 deletions

View File

@ -88,11 +88,6 @@ export interface AsyncDataOptions<
* @default 'cancel' * @default 'cancel'
*/ */
dedupe?: 'cancel' | 'defer' dedupe?: 'cancel' | 'defer'
/**
* Internally used by useFetch
* @private
*/
_useFetch?: boolean
} }
export interface AsyncDataExecuteOptions { export interface AsyncDataExecuteOptions {

View File

@ -144,6 +144,7 @@ export function useFetch<
getCachedData, getCachedData,
deep, deep,
watch: watch === false ? [] : [_fetchOptions, _request, ...(watch || [])], watch: watch === false ? [] : [_fetchOptions, _request, ...(watch || [])],
// @ts-expect-error private method
_useFetch: true _useFetch: true
} }