Skip to content

Commit dbc9212

Browse files
committed
chore: format
1 parent bf71de7 commit dbc9212

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

src/fixtures.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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. */
1015
export type FixturesFromMap<T extends PageObjectConstructorsMap> = {

src/index.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,12 @@ export {
2020
SelectorByText,
2121
SelectorByTitle,
2222
} from "./decorators/selectors";
23+
export type { FixturesFromMap, PageObjectConstructorsMap } from "./fixtures";
2324
export { createFixtures } from "./fixtures";
2425
export { 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";

0 commit comments

Comments
 (0)