feat(ct): mount generic type required when specified (#15591)
This commit is contained in:
parent
83e3dbb1bb
commit
82fb68fdde
12
packages/playwright-ct-svelte/index.d.ts
vendored
12
packages/playwright-ct-svelte/index.d.ts
vendored
|
|
@ -34,9 +34,15 @@ export type PlaywrightTestConfig = Omit<BasePlaywrightTestConfig, 'use'> & {
|
|||
}
|
||||
};
|
||||
|
||||
export interface ComponentFixtures {
|
||||
mount<Props = { [key: string]: any }>(component: any, options?: {
|
||||
props?: Props,
|
||||
interface ComponentFixtures {
|
||||
mount(component: any, options?: {
|
||||
props?: { [key: string]: any },
|
||||
slots?: { [key: string]: any },
|
||||
on?: { [key: string]: Function },
|
||||
hooksConfig: any,
|
||||
}): Promise<Locator>;
|
||||
mount<Props>(component: any, options: {
|
||||
props: Props,
|
||||
slots?: { [key: string]: any },
|
||||
on?: { [key: string]: Function },
|
||||
hooksConfig: any,
|
||||
|
|
|
|||
10
packages/playwright-ct-vue/index.d.ts
vendored
10
packages/playwright-ct-vue/index.d.ts
vendored
|
|
@ -36,8 +36,14 @@ export type PlaywrightTestConfig = Omit<BasePlaywrightTestConfig, 'use'> & {
|
|||
|
||||
export interface ComponentFixtures {
|
||||
mount(component: JSX.Element): Promise<Locator>;
|
||||
mount<Props = { [key: string]: any }>(component: any, options?: {
|
||||
props?: Props,
|
||||
mount(component: any, options?: {
|
||||
props?: { [key: string]: any },
|
||||
slots?: { [key: string]: any },
|
||||
on?: { [key: string]: Function },
|
||||
hooksConfig?: any,
|
||||
}): Promise<Locator>;
|
||||
mount<Props>(component: any, options: {
|
||||
props: Props,
|
||||
slots?: { [key: string]: any },
|
||||
on?: { [key: string]: Function },
|
||||
hooksConfig?: any,
|
||||
|
|
|
|||
10
packages/playwright-ct-vue2/index.d.ts
vendored
10
packages/playwright-ct-vue2/index.d.ts
vendored
|
|
@ -36,8 +36,14 @@ export type PlaywrightTestConfig = Omit<BasePlaywrightTestConfig, 'use'> & {
|
|||
|
||||
export interface ComponentFixtures {
|
||||
mount(component: JSX.Element): Promise<Locator>;
|
||||
mount<Props = { [key: string]: any }>(component: any, options?: {
|
||||
props?: Props,
|
||||
mount(component: any, options?: {
|
||||
props?: { [key: string]: any },
|
||||
slots?: { [key: string]: any },
|
||||
on?: { [key: string]: Function },
|
||||
hooksConfig: any,
|
||||
}): Promise<Locator>;
|
||||
mount<Props>(component: any, options: {
|
||||
props: Props,
|
||||
slots?: { [key: string]: any },
|
||||
on?: { [key: string]: Function },
|
||||
hooksConfig: any,
|
||||
|
|
|
|||
Loading…
Reference in a new issue