Skip to content

API DocumentationDocs


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>

Released under the MIT License.