Skip to content

Documentación de la API / 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
  }
}

Hierarchy

  • Record<string | number | symbol, unknown>

    RouteMeta

Publicado bajo licencia MIT.

Build faster with AI
New Masterclass to help you leverage AI in your Vue workflow.
Get Early Access