Skip to content

Commit 19df2f9

Browse files
juliomrqzkevinmarrec
authored andcommitted
fix(types): add typing for Routes meta (#89)
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 🤓 .
1 parent 3534073 commit 19df2f9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/types/app/vue.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ declare module 'vue/types/options' {
2020
transition?: string | Transition | ((to: Route, from: Route) => string)
2121
validate?(ctx: Context): Promise<boolean> | boolean
2222
watchQuery?: boolean | string[]
23+
meta?: { [key: string]: any }
2324
}
2425
}
2526

0 commit comments

Comments
 (0)