File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed
Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,12 @@ import type { Fixtures, Page } from "@playwright/test";
44 * Map of fixture names to PageObject constructors.
55 * Each constructor receives `page` as the first argument.
66 */
7- export type PageObjectConstructorsMap = Record < string , new ( page : Page ) => unknown > ;
7+ export type PageObjectConstructorsMap = Record <
8+ string ,
9+ new (
10+ page : Page ,
11+ ) => unknown
12+ > ;
813
914/** Maps constructor map to instance types for Fixtures. */
1015export type FixturesFromMap < T extends PageObjectConstructorsMap > = {
Original file line number Diff line number Diff line change @@ -20,9 +20,12 @@ export {
2020 SelectorByText ,
2121 SelectorByTitle ,
2222} from "./decorators/selectors" ;
23+ export type { FixturesFromMap , PageObjectConstructorsMap } from "./fixtures" ;
2324export { createFixtures } from "./fixtures" ;
2425export { ListPageObject } from "./page-objects/ListPageObject" ;
25- export { PageObject } from "./page-objects/PageObject" ;
2626
27- export type { PageObjectConstructor , SelectorType } from "./page-objects/PageObject" ;
28- export type { FixturesFromMap , PageObjectConstructorsMap } from "./fixtures" ;
27+ export type {
28+ PageObjectConstructor ,
29+ SelectorType ,
30+ } from "./page-objects/PageObject" ;
31+ export { PageObject } from "./page-objects/PageObject" ;
You can’t perform that action at this time.
0 commit comments