Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface RouteConfig

Route Config

Hierarchy

Index

Properties

async

async: boolean

Lazy loaded component flag.

children

children: RouteConfig[]

Children routes.

Optional component

component: boolean | function | Promise<componentModule>

Svelte component. Component constructor function or async component resolver

generator

generator: function

URL generator function.

param

router param dictionary.

Type declaration

    • (params: object): string
    • Parameters

      • params: object
        • [k: string]: string

      Returns string

id

id: symbol

Route unique ID.

matcher

matcher: RegExp

Regex URL matcher

meta

meta: object

Route meta object.

Type declaration

  • [k: string]: string

Optional name

name: undefined | string

Name of the route.

paramKeys

paramKeys: Partial<Key>[]

Collection of param keys generated by the pathToRegexp.

parent

parent: RouteConfig | null

Parent route.

path

path: string

URL path use to resolve the route.

Optional props

props: routeProps

Optional redirect

redirect: routeRedirect

Generated using TypeDoc