mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-12 20:03:03 +03:00
feat(ct): typesafe mount props (#15445)
This commit is contained in:
parent
bc4463c472
commit
a41a25e07b
4
packages/playwright-ct-svelte/index.d.ts
vendored
4
packages/playwright-ct-svelte/index.d.ts
vendored
@ -35,8 +35,8 @@ export type PlaywrightTestConfig = Omit<BasePlaywrightTestConfig, 'use'> & {
|
||||
};
|
||||
|
||||
interface ComponentFixtures {
|
||||
mount(component: any, options?: {
|
||||
props?: { [key: string]: any },
|
||||
mount<Props = { [key: string]: any }>(component: any, options?: {
|
||||
props?: Props,
|
||||
slots?: { [key: string]: any },
|
||||
on?: { [key: string]: Function },
|
||||
}): Promise<Locator>;
|
||||
|
4
packages/playwright-ct-vue/index.d.ts
vendored
4
packages/playwright-ct-vue/index.d.ts
vendored
@ -36,8 +36,8 @@ export type PlaywrightTestConfig = Omit<BasePlaywrightTestConfig, 'use'> & {
|
||||
|
||||
interface ComponentFixtures {
|
||||
mount(component: JSX.Element): Promise<Locator>;
|
||||
mount(component: any, options?: {
|
||||
props?: { [key: string]: any },
|
||||
mount<Props = { [key: string]: any }>(component: any, options?: {
|
||||
props?: Props,
|
||||
slots?: { [key: string]: any },
|
||||
on?: { [key: string]: Function },
|
||||
}): Promise<Locator>;
|
||||
|
4
packages/playwright-ct-vue2/index.d.ts
vendored
4
packages/playwright-ct-vue2/index.d.ts
vendored
@ -36,8 +36,8 @@ export type PlaywrightTestConfig = Omit<BasePlaywrightTestConfig, 'use'> & {
|
||||
|
||||
interface ComponentFixtures {
|
||||
mount(component: JSX.Element): Promise<Locator>;
|
||||
mount(component: any, options?: {
|
||||
props?: { [key: string]: any },
|
||||
mount<Props = { [key: string]: any }>(component: any, options?: {
|
||||
props?: Props,
|
||||
slots?: { [key: string]: any },
|
||||
on?: { [key: string]: Function },
|
||||
}): Promise<Locator>;
|
||||
|
Loading…
Reference in New Issue
Block a user