From ef9b4ae05c058378b2005ddf870d93d451ad07e5 Mon Sep 17 00:00:00 2001 From: David Harkness Date: Sat, 13 Nov 2021 15:49:19 -0800 Subject: [PATCH] Declare matchers for use with expect.not.MATCHER (#385) --- types/index.d.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/types/index.d.ts b/types/index.d.ts index 780a6b98..ae926bd6 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -418,7 +418,7 @@ declare namespace jest { } // noinspection JSUnusedGlobalSymbols - interface Expect { + interface AsymmetricMatchers { /** * Note: Currently unimplemented * Passing assertion @@ -826,4 +826,10 @@ declare namespace jest { */ toEqualIgnoringWhitespace(string: string): any; } + + // noinspection JSUnusedGlobalSymbols + interface Expect extends AsymmetricMatchers {} + + // noinspection JSUnusedGlobalSymbols + interface InverseAsymmetricMatchers extends AsymmetricMatchers {} }