Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 406 Bytes

RouteMeta.md

File metadata and controls

28 lines (19 loc) · 406 Bytes
editLink

API Documentation / RouteMeta

Interface: RouteMeta

Interface to type meta fields in route records.

Example

// typings.d.ts or router.ts
import 'vue-router';

declare module 'vue-router' {
  interface RouteMeta {
    requiresAuth?: boolean
  }
 }

Hierarchy

  • Record<string | number | symbol, unknown>

    RouteMeta