Skip to content

Commit

Permalink
fix(types): add typing for Routes meta (#89)
Browse files Browse the repository at this point in the history
Add support for declaring the meta object in Nuxt.js Page, as we can see here https://github.com/nuxt/nuxt.js/tree/dev/examples/routes-meta 🤓 .
  • Loading branch information
juliomrqz authored and kevinmarrec committed Sep 30, 2019
1 parent 3534073 commit 19df2f9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/types/app/vue.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ declare module 'vue/types/options' {
transition?: string | Transition | ((to: Route, from: Route) => string)
validate?(ctx: Context): Promise<boolean> | boolean
watchQuery?: boolean | string[]
meta?: { [key: string]: any }
}
}

Expand Down

0 comments on commit 19df2f9

Please sign in to comment.