mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-09 01:47:20 +08:00
18 lines
830 B
TypeScript
18 lines
830 B
TypeScript
import { Route } from 'vitepress';
|
|
export declare const hashRE: RegExp;
|
|
export declare const extRE: RegExp;
|
|
export declare const endingSlashRE: RegExp;
|
|
export declare const outboundRE: RegExp;
|
|
export declare function withBase(path: string): string;
|
|
export declare function isExternal(path: string): boolean;
|
|
export declare function isActive(route: Route, path?: string): boolean;
|
|
export declare function normalize(path: string): string;
|
|
export declare function joinUrl(base: string, path: string): string;
|
|
/**
|
|
* get the path without filename (the last segment). for example, if the given
|
|
* path is `/guide/getting-started.html`, this method will return `/guide/`.
|
|
* Always with a trailing slash.
|
|
*/
|
|
export declare function getPathDirName(path: string): string;
|
|
export declare function ensureEndingSlash(path: string): string;
|