From 2964ed59821f6ff9b6e71535d139103faa7ba1e5 Mon Sep 17 00:00:00 2001 From: sand4rt Date: Mon, 25 Jul 2022 22:45:32 +0200 Subject: [PATCH] cherry-pick(#15921): fix(ct): optional hooksConfig mount option --- packages/playwright-ct-svelte/index.d.ts | 4 ++-- packages/playwright-ct-vue2/index.d.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/playwright-ct-svelte/index.d.ts b/packages/playwright-ct-svelte/index.d.ts index 83ddbe129c46f..46289cb2ec671 100644 --- a/packages/playwright-ct-svelte/index.d.ts +++ b/packages/playwright-ct-svelte/index.d.ts @@ -39,13 +39,13 @@ interface ComponentFixtures { props?: { [key: string]: any }, slots?: { [key: string]: any }, on?: { [key: string]: Function }, - hooksConfig: any, + hooksConfig?: any, }): Promise; mount(component: any, options: { props: Props, slots?: { [key: string]: any }, on?: { [key: string]: Function }, - hooksConfig: any, + hooksConfig?: any, }): Promise; } diff --git a/packages/playwright-ct-vue2/index.d.ts b/packages/playwright-ct-vue2/index.d.ts index 9e78cb0d9999c..f5f4d4906df75 100644 --- a/packages/playwright-ct-vue2/index.d.ts +++ b/packages/playwright-ct-vue2/index.d.ts @@ -40,13 +40,13 @@ export interface ComponentFixtures { props?: { [key: string]: any }, slots?: { [key: string]: any }, on?: { [key: string]: Function }, - hooksConfig: any, + hooksConfig?: any, }): Promise; mount(component: any, options: { props: Props, slots?: { [key: string]: any }, on?: { [key: string]: Function }, - hooksConfig: any, + hooksConfig?: any, }): Promise; }