* The regexp used to match a url
*/
re: RegExp
+
/**
* The score of the parser
*/
score: Array<number[]>
+
/**
* Keys that appeared in the path
*/
* no match
*/
parse(path: string): PathParams | null
+
/**
* Creates a string version of the url
*
* Makes the RegExp case sensitive. Defaults to false
*/
sensitive?: boolean
+
/**
* Should we disallow a trailing slash. Defaults to false
*/
strict?: boolean
+
/**
* Should the RegExp match from the beginning by prepending a `^` to it. Defaults to true
* @internal
*/
start?: boolean
+
/**
* Should the RegExp match until the end by appending a `$` to it. Defaults to true
*/
/**
* Compares an array of numbers as used in PathParser.score and returns a
* number. This function can be used to `sort` an array
+ *
* @param a - first array of numbers
* @param b - second array of numbers
* @returns 0 if both are equal, < 0 if a should be sorted first, > 0 if b
/**
* Compare function that can be used with `sort` to sort an array of PathParser
+ *
* @param a - first PathParser
* @param b - second PathParser
* @returns 0 if both are equal, < 0 if a should be sorted first, > 0 if b