Files
vercel/@types/pcre-to-regexp/index.d.ts
Nathan Rajlich fd3c110c02 [now dev] Use pcre-to-regexp to match routes (#2027)
* [now dev] Use `pcre-to-regexp` to match `routes`

The now.json `routes` support PCRE syntax like named captures,
so use the `pcre-to-regexp` module to match the routes.

Fixes #2023.

* Pass the resolved router `dest` and query params to the Lambda
2019-04-01 13:01:57 +02:00

4 lines
105 B
TypeScript

declare module 'pcre-to-regexp' {
export default function (pattern: string, keys?: string[]): RegExp
}