Skip to content

Commit

Permalink
update types
Browse files Browse the repository at this point in the history
  • Loading branch information
balavishnuvj committed Oct 13, 2020
1 parent 7ccfeba commit 479c8d0
Showing 1 changed file with 19 additions and 14 deletions.
33 changes: 19 additions & 14 deletions types/screen.d.ts
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

0 comments on commit 479c8d0

Please sign in to comment.