Skip to content

Commit

Permalink
fix: default async data fallback type
Browse files Browse the repository at this point in the history
  • Loading branch information
johannschopplich committed Feb 7, 2024
1 parent e90a804 commit 03d0479
Show file tree
Hide file tree
Showing 5 changed files with 532 additions and 520 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 @@ -70,7 +70,7 @@ type UseApiDataOptions<T> = Pick<
function UseApiData<T = any>(
path: MaybeRefOrGetter<string>,
opts?: UseApiDataOptions<T>
): AsyncData<T | undefined, NuxtError>
): AsyncData<T | null, NuxtError>
```

## Caching
Expand Down
4 changes: 2 additions & 2 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"devDependencies": {
"@iconify-json/carbon": "^1.1.28",
"unocss": "^0.58.4",
"vitepress": "^1.0.0-rc.41"
"unocss": "^0.58.5",
"vitepress": "^1.0.0-rc.42"
}
}
11 changes: 5 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,26 +47,25 @@
"release": "bumpp --commit --push --tag"
},
"dependencies": {
"@nuxt/kit": "^3.10.0",
"@nuxt/kit": "^3.10.1",
"defu": "^6.1.4",
"ofetch": "^1.3.3",
"ohash": "^1.1.3",
"pathe": "^1.1.2",
"scule": "^1.2.0",
"ufo": "^1.3.2"
"scule": "^1.3.0",
"ufo": "^1.4.0"
},
"optionalDependencies": {
"openapi-typescript": "^6.7.4"
},
"devDependencies": {
"@antfu/eslint-config": "^2.6.3",
"@antfu/eslint-config": "^2.6.4",
"@nuxt/module-builder": "^0.5.5",
"@nuxt/test-utils": "^3.11.0",
"@types/node": "^20.11.16",
"bumpp": "^9.3.0",
"eslint": "^8.56.0",
"nuxt": "^3.10.0",
"nuxt-api-party": "workspace:*",
"nuxt": "^3.10.1",
"typescript": "^5.3.3",
"vitest": "^1.2.2",
"vue-tsc": "^1.8.27"
Expand Down

0 comments on commit 03d0479

Please sign in to comment.