fix: use correct return types for utilities in Pages

This commit is contained in:
Andrey Yolkin 2023-08-29 16:22:13 +03:00
parent 5048c576a6
commit a2e1fa0685

View File

@ -1238,7 +1238,7 @@ In Nuxt 3, routes are automatically generated based on the structure of the file
#### Type
```ts
function extendPages (callback: (pages: NuxtPage[]) => void) => void
function extendPages (callback: (pages: NuxtPage[]) => void): void
type NuxtPage = {
name?: string
@ -1293,7 +1293,7 @@ You can read more about Nitro route rules in the [Nitro documentation](https://n
#### Type
```ts
function extendRouteRules (route: string, rule: NitroRouteConfig, options: ExtendRouteRulesOptions)
function extendRouteRules (route: string, rule: NitroRouteConfig, options: ExtendRouteRulesOptions): void
interface NitroRouteConfig {
cache?: CacheOptions | false;