mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 15:42:09 +00:00
fix: use correct return types for utilities in Pages
This commit is contained in:
parent
5048c576a6
commit
a2e1fa0685
@ -1238,7 +1238,7 @@ In Nuxt 3, routes are automatically generated based on the structure of the file
|
|||||||
#### Type
|
#### Type
|
||||||
|
|
||||||
```ts
|
```ts
|
||||||
function extendPages (callback: (pages: NuxtPage[]) => void) => void
|
function extendPages (callback: (pages: NuxtPage[]) => void): void
|
||||||
|
|
||||||
type NuxtPage = {
|
type NuxtPage = {
|
||||||
name?: string
|
name?: string
|
||||||
@ -1293,7 +1293,7 @@ You can read more about Nitro route rules in the [Nitro documentation](https://n
|
|||||||
#### Type
|
#### Type
|
||||||
|
|
||||||
```ts
|
```ts
|
||||||
function extendRouteRules (route: string, rule: NitroRouteConfig, options: ExtendRouteRulesOptions)
|
function extendRouteRules (route: string, rule: NitroRouteConfig, options: ExtendRouteRulesOptions): void
|
||||||
|
|
||||||
interface NitroRouteConfig {
|
interface NitroRouteConfig {
|
||||||
cache?: CacheOptions | false;
|
cache?: CacheOptions | false;
|
||||||
|
Loading…
Reference in New Issue
Block a user