Skip to content

Commit 479c8d0

Browse files
committed
update types
1 parent 7ccfeba commit 479c8d0

File tree

1 file changed

+19
-14
lines changed

1 file changed

+19
-14
lines changed

types/screen.d.ts

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,22 @@
1-
import { BoundFunctions, Queries } from './get-queries-for-element';
2-
import * as queries from './queries';
3-
import { OptionsReceived } from 'pretty-format';
1+
import {BoundFunctions, Queries} from './get-queries-for-element'
2+
import * as queries from './queries'
3+
import {OptionsReceived} from 'pretty-format'
44

55
export type Screen<Q extends Queries = typeof queries> = BoundFunctions<Q> & {
6-
/**
7-
* Convenience function for `pretty-dom` which also allows an array
8-
* of elements
9-
*/
10-
debug: (
11-
element?: Element | HTMLDocument | Array<Element | HTMLDocument>,
12-
maxLength?: number,
13-
options?: OptionsReceived,
14-
) => void;
15-
};
6+
/**
7+
* Convenience function for `pretty-dom` which also allows an array
8+
* of elements
9+
*/
10+
debug: (
11+
element?: Element | HTMLDocument | Array<Element | HTMLDocument>,
12+
maxLength?: number,
13+
options?: OptionsReceived,
14+
) => void
15+
/**
16+
* Convenience function for `Testing Playground` which logs URL that
17+
* can be opened in a browser
18+
*/
19+
logTestingPlaygroundURL: (element?: Element | HTMLDocument) => void
20+
}
1621

17-
export const screen: Screen;
22+
export const screen: Screen

0 commit comments

Comments
 (0)