import * as pathToRegexp from "https://raw.githubusercontent.com/pillarjs/path-to-regexp/master/src/index.ts";
compile | Compile a string to a template function for the path. |
match | Transform a path into a match function. |
parse | Parse a string for the raw tokens. |
pathToRegexp | |
stringify | Stringify token data into a path string. |
CompileOptions | |
Group | A set of possible tokens to expand when matching. |
MatchOptions | |
MatchResult | A match result contains data about the path match. |
Parameter | A parameter designed to match arbitrary text within a segment. |
ParseOptions | |
PathToRegexpOptions | |
Text | Plain text. |
Wildcard | A wildcard parameter designed to match multiple segments. |
Decode | Decode a string into another string. |
Encode | Encode a string into another string. |
Key | A token that corresponds with a regexp capture. |
Keys | A sequence of |
Match | A match is either |
MatchFunction | The match function takes a string and returns whether it matched the path. |
ParamData | |
Path | Supported path types. |
PathFunction | |
Token | A sequence of path match characters. |