Skip to content

Commit

Permalink
chore(ct): export MountResult (#29375)
Browse files Browse the repository at this point in the history
Fixes #27509
  • Loading branch information
pavelfeldman authored Feb 6, 2024
1 parent 17bc8f9 commit 286adf3
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/playwright-ct-react/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export interface MountOptions<HooksConfig extends JsonObject> {
hooksConfig?: HooksConfig;
}

interface MountResult extends Locator {
export interface MountResult extends Locator {
unmount(): Promise<void>;
update(component: JSX.Element): Promise<void>;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/playwright-ct-react17/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export interface MountOptions<HooksConfig extends JsonObject> {
hooksConfig?: HooksConfig;
}

interface MountResult extends Locator {
export interface MountResult extends Locator {
unmount(): Promise<void>;
update(component: JSX.Element): Promise<void>;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/playwright-ct-solid/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export interface MountOptions<HooksConfig extends JsonObject> {
hooksConfig?: HooksConfig;
}

interface MountResult extends Locator {
export interface MountResult extends Locator {
unmount(): Promise<void>;
update(component: JSX.Element): Promise<void>;
}
Expand Down
4 changes: 2 additions & 2 deletions packages/playwright-ct-vue/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export interface MountOptionsJsx<HooksConfig extends JsonObject> {
hooksConfig?: HooksConfig;
}

interface MountResult<Component> extends Locator {
export interface MountResult<Component> extends Locator {
unmount(): Promise<void>;
update(options: {
props?: Partial<ComponentProps<Component>>;
Expand All @@ -49,7 +49,7 @@ interface MountResult<Component> extends Locator {
}): Promise<void>;
}

interface MountResultJsx extends Locator {
export interface MountResultJsx extends Locator {
unmount(): Promise<void>;
update(component: JSX.Element): Promise<void>;
}
Expand Down
4 changes: 2 additions & 2 deletions packages/playwright-ct-vue2/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export interface MountOptionsJsx<HooksConfig extends JsonObject> {
hooksConfig?: HooksConfig;
}

interface MountResult<Component> extends Locator {
export interface MountResult<Component> extends Locator {
unmount(): Promise<void>;
update(options: {
props?: Partial<ComponentProps<Component>>;
Expand All @@ -49,7 +49,7 @@ interface MountResult<Component> extends Locator {
}): Promise<void>;
}

interface MountResultJsx extends Locator {
export interface MountResultJsx extends Locator {
unmount(): Promise<void>;
update(component: JSX.Element): Promise<void>;
}
Expand Down

0 comments on commit 286adf3

Please sign in to comment.