From a41a25e07b1a96644d3c79028c143b9a0b6d1df5 Mon Sep 17 00:00:00 2001 From: sand4rt Date: Thu, 7 Jul 2022 20:23:58 +0200 Subject: [PATCH] feat(ct): typesafe mount props (#15445) --- packages/playwright-ct-svelte/index.d.ts | 4 ++-- packages/playwright-ct-vue/index.d.ts | 4 ++-- packages/playwright-ct-vue2/index.d.ts | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/playwright-ct-svelte/index.d.ts b/packages/playwright-ct-svelte/index.d.ts index 0bec91cbc4..fe227236b2 100644 --- a/packages/playwright-ct-svelte/index.d.ts +++ b/packages/playwright-ct-svelte/index.d.ts @@ -35,8 +35,8 @@ export type PlaywrightTestConfig = Omit & { }; interface ComponentFixtures { - mount(component: any, options?: { - props?: { [key: string]: any }, + mount(component: any, options?: { + props?: Props, slots?: { [key: string]: any }, on?: { [key: string]: Function }, }): Promise; diff --git a/packages/playwright-ct-vue/index.d.ts b/packages/playwright-ct-vue/index.d.ts index ab27df0153..4a56ae3fea 100644 --- a/packages/playwright-ct-vue/index.d.ts +++ b/packages/playwright-ct-vue/index.d.ts @@ -36,8 +36,8 @@ export type PlaywrightTestConfig = Omit & { interface ComponentFixtures { mount(component: JSX.Element): Promise; - mount(component: any, options?: { - props?: { [key: string]: any }, + mount(component: any, options?: { + props?: Props, slots?: { [key: string]: any }, on?: { [key: string]: Function }, }): Promise; diff --git a/packages/playwright-ct-vue2/index.d.ts b/packages/playwright-ct-vue2/index.d.ts index ab27df0153..4a56ae3fea 100644 --- a/packages/playwright-ct-vue2/index.d.ts +++ b/packages/playwright-ct-vue2/index.d.ts @@ -36,8 +36,8 @@ export type PlaywrightTestConfig = Omit & { interface ComponentFixtures { mount(component: JSX.Element): Promise; - mount(component: any, options?: { - props?: { [key: string]: any }, + mount(component: any, options?: { + props?: Props, slots?: { [key: string]: any }, on?: { [key: string]: Function }, }): Promise;