Interface RouterOptions<T>

Type Parameters

  • T extends Record<string, Route> = Record<string, Route>

Hierarchy

  • RouterOptions

Properties

beforeRemove?: ((route) => boolean | Promise<boolean>)

Type declaration

    • (route): boolean | Promise<boolean>
    • Parameters

      Returns boolean | Promise<boolean>

fallbackRoute?: string
initialRoute: string
noRouteBuilder?: RouteBuilder
remove?: ((route) => boolean | Promise<boolean>)

Type declaration

    • (route): boolean | Promise<boolean>
    • Parameters

      Returns boolean | Promise<boolean>

rootParent: CTag
routes: T
start?: ((route) => boolean | Promise<boolean>)

Type declaration

    • (route): boolean | Promise<boolean>
    • Parameters

      Returns boolean | Promise<boolean>

window?: Window & typeof globalThis

Generated using TypeDoc