API Documentation • Docs
API Documentation / RouteMeta
Interface: RouteMeta
Interface to type meta
fields in route records.
Example
ts
// typings.d.ts or router.ts
import 'vue-router';
declare module 'vue-router' {
interface RouteMeta {
requiresAuth?: boolean
}
}
Extends
Record
<string
|number
|symbol
,unknown
>