File tree Expand file tree Collapse file tree 2 files changed +32
-2
lines changed Expand file tree Collapse file tree 2 files changed +32
-2
lines changed Original file line number Diff line number Diff line change 27
27
},
28
28
"./matchers" : {
29
29
"require" : {
30
- "types" : " ./types/matchers.d.ts" ,
30
+ "types" : " ./types/matchers-standalone .d.ts" ,
31
31
"default" : " ./dist/matchers.js"
32
32
},
33
33
"import" : {
34
- "types" : " ./types/matchers.d.ts" ,
34
+ "types" : " ./types/matchers-standalone .d.ts" ,
35
35
"default" : " ./dist/matchers.mjs"
36
36
}
37
37
},
Original file line number Diff line number Diff line change
1
+ import { type TestingLibraryMatchers } from './matchers'
2
+
3
+ type TLM = TestingLibraryMatchers < any , void >
4
+
5
+ interface MatcherReturnType {
6
+ pass : boolean
7
+ message : ( ) => string
8
+ }
9
+
10
+ interface OverloadedMatchers {
11
+ toHaveClass : ( expected : any , ...rest : string [ ] ) => MatcherReturnType
12
+ toHaveClass : (
13
+ expected : any ,
14
+ className : string ,
15
+ options ?: { exact : boolean } ,
16
+ ) => MatcherReturnType
17
+ }
18
+
19
+ declare namespace matchersStandalone {
20
+ type MatchersStandalone = {
21
+ [ T in keyof TLM ] : (
22
+ expected : any ,
23
+ ...rest : Parameters < TLM [ T ] >
24
+ ) => MatcherReturnType
25
+ } & OverloadedMatchers
26
+ }
27
+
28
+ declare const matchersStandalone : matchersStandalone . MatchersStandalone &
29
+ Record < string , any >
30
+ export = matchersStandalone
You can’t perform that action at this time.
0 commit comments