Skip to content

Complete guide to

Mastering Pinia

written by its creator

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
  }
 }

Hierarchy

  • Record<string | number | symbol, unknown>

    RouteMeta

Released under the MIT License.