Skip to content

Commit

Permalink
fix!: data possibly undefined for useApiData return
Browse files Browse the repository at this point in the history
  • Loading branch information
johannschopplich committed Aug 24, 2023
1 parent 9f4efe0 commit f958f3c
Show file tree
Hide file tree
Showing 4 changed files with 465 additions and 226 deletions.
2 changes: 1 addition & 1 deletion docs/api/use-my-api-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,5 +167,5 @@ type UseApiDataOptions<T> = Pick<
type UseApiData = <T = any>(
path: MaybeRefOrGetter<string>,
opts?: UseApiDataOptions<T>
) => AsyncData<T, FetchError>
) => AsyncData<T | undefined, FetchError>
```
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"dependencies": {
"@nuxt/kit": "^3.6.5",
"defu": "^6.1.2",
"ofetch": "^1.2.1",
"ofetch": "^1.3.2",
"ohash": "^1.1.3",
"pathe": "^1.1.1",
"scule": "^1.0.0",
Expand All @@ -60,10 +60,10 @@
"openapi-typescript": "^5 || ^6"
},
"devDependencies": {
"@antfu/eslint-config": "^0.40.2",
"@antfu/eslint-config": "^0.41.0",
"@nuxt/module-builder": "^0.4.0",
"@nuxt/test-utils": "^3.6.5",
"@types/node": "^20.5.3",
"@types/node": "^20.5.4",
"bumpp": "^9.2.0",
"eslint": "^8.47.0",
"nuxt": "^3.6.5",
Expand Down
Loading

0 comments on commit f958f3c

Please sign in to comment.