From 5cc6298847e08872b79f827921c64c9ba261cc54 Mon Sep 17 00:00:00 2001 From: Tony Hallett Date: Mon, 22 Jul 2024 20:31:51 +0100 Subject: [PATCH] fix: Type definition of `toHaveClass` (#611) --- types/matchers-standalone.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/matchers-standalone.d.ts b/types/matchers-standalone.d.ts index d2bb31f..175e915 100644 --- a/types/matchers-standalone.d.ts +++ b/types/matchers-standalone.d.ts @@ -6,12 +6,12 @@ interface MatcherReturnType { } interface OverloadedMatchers { - toHaveClass: (expected: any, ...rest: string[]) => MatcherReturnType - toHaveClass: ( + toHaveClass(expected: any, ...rest: string[]) : MatcherReturnType + toHaveClass( expected: any, className: string, options?: {exact: boolean}, - ) => MatcherReturnType + ) : MatcherReturnType } declare namespace matchersStandalone {