Type alias RouterInstance<R, V>

RouterInstance<R, V>: {
    routes: R[];
    baseUrl: string;
    history: History & {
        location: WrappedLocation;
    };
    viewStack: V[];
    locationStack: Location[];
    resolveView: ResolveView<R, V>;
    currentGuard<T>(promise) => Promise<T>;
    cancelAll() => void;
    resolving?: Location;
} & RequiredOf<Options<V>, "baseUrl">

Type Parameters

Type declaration

  • routes: R[]
  • baseUrl: string
  • history: History & {
        location: WrappedLocation;
    }
  • viewStack: V[]
  • locationStack: Location[]
  • resolveView: ResolveView<R, V>
  • currentGuard:function
    • Type Parameters

      • T

      Parameters

      • promise: Promise<T>

      Returns Promise<T>

  • cancelAll:function
  • Optional resolving?: Location

Generated using TypeDoc