From c078fa9b8f15d15180bc61c68dcda68ca0504b00 Mon Sep 17 00:00:00 2001 From: "Robert (Jamie) Munro" Date: Wed, 5 Oct 2016 15:13:30 +0100 Subject: [PATCH] Path can be regexp As stated in the comment on lines 17-19, path can be a RegExp, or an object featuring a url and an array of methods. --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 78b2032..4bdf127 100644 --- a/index.d.ts +++ b/index.d.ts @@ -18,7 +18,7 @@ declare namespace unless { * and methods key-pairs. If the request path or path and method match, the middleware will not run. Check * Examples for usage. */ - path?: string | string[]; + path?: string | RegExp | (string | RegExp | { url: (string | RegExp); methods: string[]; })[]; /** * it could be an string or an array of strings. If the request path ends with one of these extensions the middleware will not run.