-
Notifications
You must be signed in to change notification settings - Fork 459
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7ccfeba
commit 479c8d0
Showing
1 changed file
with
19 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,22 @@ | ||
import { BoundFunctions, Queries } from './get-queries-for-element'; | ||
import * as queries from './queries'; | ||
import { OptionsReceived } from 'pretty-format'; | ||
import {BoundFunctions, Queries} from './get-queries-for-element' | ||
import * as queries from './queries' | ||
import {OptionsReceived} from 'pretty-format' | ||
|
||
export type Screen<Q extends Queries = typeof queries> = BoundFunctions<Q> & { | ||
/** | ||
* Convenience function for `pretty-dom` which also allows an array | ||
* of elements | ||
*/ | ||
debug: ( | ||
element?: Element | HTMLDocument | Array<Element | HTMLDocument>, | ||
maxLength?: number, | ||
options?: OptionsReceived, | ||
) => void; | ||
}; | ||
/** | ||
* Convenience function for `pretty-dom` which also allows an array | ||
* of elements | ||
*/ | ||
debug: ( | ||
element?: Element | HTMLDocument | Array<Element | HTMLDocument>, | ||
maxLength?: number, | ||
options?: OptionsReceived, | ||
) => void | ||
/** | ||
* Convenience function for `Testing Playground` which logs URL that | ||
* can be opened in a browser | ||
*/ | ||
logTestingPlaygroundURL: (element?: Element | HTMLDocument) => void | ||
} | ||
|
||
export const screen: Screen; | ||
export const screen: Screen |