From 0dbe6065bc8b49a13683ca1998b54c1c872c7973 Mon Sep 17 00:00:00 2001 From: Andrew Nikolaev Date: Mon, 27 Jun 2022 14:21:09 +0300 Subject: [PATCH] fix(types): allow regexp on Definition#scope and #path --- types/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/index.d.ts b/types/index.d.ts index ced5bd6be..f79b72f7d 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -228,8 +228,8 @@ declare namespace nock { } interface Definition { - scope: string - path: string + scope: string | RegExp + path: string | RegExp port?: number | string method?: string status?: number