Skip to content

Commit 44f0020

Browse files
mdgozzagnapse
authored andcommitted
fix: broken type definitions for extend-expect.d.ts (#101)
1 parent f62628e commit 44f0020

File tree

1 file changed

+1
-21
lines changed

1 file changed

+1
-21
lines changed

extend-expect.d.ts

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,4 @@
11
declare namespace jest {
2-
interface InverseStringAsymmetricMatchers {
3-
stringMatching(str: string | RegExp): any
4-
stringContaining(str: string): any
5-
}
6-
interface Expect {
7-
stringMatching(str: string | RegExp): any
8-
stringContaining(str: string): any
9-
anything(): any
10-
any(classType: any): any
11-
not: InverseStringAsymmetricMatchers
12-
}
13-
14-
type attributeValueType =
15-
| string
16-
| Expect.stringContaining
17-
| Expect.stringMatching
18-
| Expect.any
19-
| Expect.anything
20-
| Expect.not
21-
222
interface Matchers<R> {
233
/**
244
* @deprecated
@@ -31,7 +11,7 @@ declare namespace jest {
3111
toBeEnabled(): R
3212
toContainElement(element: HTMLElement | SVGElement | null): R
3313
toContainHTML(htmlText: string): R
34-
toHaveAttribute(attr: string, value?: attributeValueType): R
14+
toHaveAttribute(attr: string, value?: any): R
3515
toHaveClass(...classNames: string[]): R
3616
toHaveFocus(): R
3717
toHaveFormValues(expectedValues: {[name: string]: any}): R

0 commit comments

Comments
 (0)