Skip to content

Commit

Permalink
docs: reflect unknown return type
Browse files Browse the repository at this point in the history
  • Loading branch information
johannschopplich committed Apr 18, 2024
1 parent 11470be commit a7430e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/api/dollarfetch-like.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ type ApiClientFetchOptions =
body?: string | Record<string, any> | FormData | null
}

function $Api<T = any>(
function $Api<T = unknown>(
path: string,
opts?: ApiClientFetchOptions & SharedFetchOptions
): Promise<T>
Expand Down
2 changes: 1 addition & 1 deletion docs/api/use-fetch-like.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ type UseApiDataOptions<T> = Pick<
body?: MaybeRef<string | Record<string, any> | FormData | null>
} & SharedAsyncDataOptions<T>

function UseApiData<T = any>(
function UseApiData<T = unknown>(
path: MaybeRefOrGetter<string>,
opts?: UseApiDataOptions<T>
): AsyncData<T | null, NuxtError>
Expand Down

0 comments on commit a7430e4

Please sign in to comment.