Skip to content

Commit

Permalink
chore: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
hannoeru committed Mar 9, 2022
1 parent c26a177 commit d5e6e0f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ Route resolver, support `vue` or `react`.
### extendRoute

- **Type:**
`(route: Route, parent: Route | undefined) => Route | void | Promise<Route | void>`
`(route: any, parent: any | undefined) => any | void`

A function that takes a route and optionally returns a modified route. This is
useful for augmenting your routes with extra data (e.g. route metadata).
Expand Down Expand Up @@ -334,14 +334,14 @@ export default {

### onRoutesGenerated

- **Type:** `(routes: Route[]) => Route[] | void | Promise<Route[] | void>`
- **Type:** `(routes: any[]) => Awaitable<any[] | void>`

A function that takes a generated routes and optionally returns a modified
generated routes.

### onClientGenerated

- **Type:** `(clientCode: string) => string | void | Promise<string | void>`
- **Type:** `(clientCode: string) => Awaitable<string | void>`

A function that takes a generated client code and optionally returns a modified
generated client code.
Expand Down

0 comments on commit d5e6e0f

Please sign in to comment.