@broxus/js-core
Version:
MobX-based JavaScript Core library
9 lines (8 loc) • 381 B
TypeScript
import { type ObjectLiteral } from '../types';
export declare function generatePath(path?: string, params?: {}): string;
export declare class Route<Params extends ObjectLiteral<string> | undefined = undefined> {
readonly path: string;
readonly basePath?: string | undefined;
constructor(path: string, basePath?: string | undefined);
url(params?: Params): string;
}