UNPKG

@motorcycle/router

Version:

Standard Router Driver for Motorcycle.js

9 lines (8 loc) 615 B
import { Location, Path } from '@motorcycle/history'; export declare function isStrictlyInScope(namespace: Array<Path>): (location: Location) => boolean; export declare function getFilteredPath(namespace: Array<Path>, path: Path): Path; export declare function getUnfilteredPath(namespace: Array<Path>, path: Path): Path; export declare function newLocation(location: Location, pathname: Path): Location; export declare function splitPath(path: Path): Array<Path>; export declare function filterPath(pathParts: Array<Path>, namespace: Array<Path>): Path; export declare function pathJoin(parts: Array<Path>): Path;