From b53e5f23ced4c2df7636203e1300b9938fd33b3a Mon Sep 17 00:00:00 2001 From: Bob Thomas Date: Thu, 10 Dec 2020 13:08:56 -0500 Subject: [PATCH] fix(types): make StringSchema.matches options optional (#1166) The second parameter to matches() should be optional. --- src/string.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/string.ts b/src/string.ts index ca46393d8..1eba8d0d5 100644 --- a/src/string.ts +++ b/src/string.ts @@ -105,7 +105,7 @@ export default class StringSchema< }); } - matches(regex: RegExp, options: MatchOptions | MatchOptions['message']) { + matches(regex: RegExp, options?: MatchOptions | MatchOptions['message']) { let excludeEmptyString = false; let message; let name;