Installation
npm install --save @types/route-parser
Summary
This package contains type definitions for route-parser (https://github.com/rcs/route-parser).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/route-parser.
declare class Route<TParams extends {} = { [i: string]: any }> {
constructor(spec: string);
match(pathname: string): { [k in keyof TParams]: string } | false;
reverse(params: TParams): string | false;
}
declare namespace Route {}
export = Route;
Additional Details
- Last updated: Tue, 07 Nov 2023 15:11:36 GMT
- Dependencies: none
Credits
These definitions were written by Ian Ker-Seymer, and Bob Buehler.