mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
fix(ct): svelte slot type (#17074)
This commit is contained in:
parent
69b5104967
commit
3f941865a0
10
packages/playwright-ct-svelte/index.d.ts
vendored
10
packages/playwright-ct-svelte/index.d.ts
vendored
@ -34,11 +34,13 @@ export type PlaywrightTestConfig = Omit<BasePlaywrightTestConfig, 'use'> & {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
type Slot = string | string[];
|
||||||
|
|
||||||
export interface MountOptions<Props = Record<string, unknown>> {
|
export interface MountOptions<Props = Record<string, unknown>> {
|
||||||
props?: Props,
|
props?: Props;
|
||||||
slots?: Record<string, unknown>,
|
slots?: Record<string, Slot> & { default?: Slot };
|
||||||
on?: Record<string, Function>,
|
on?: Record<string, Function>;
|
||||||
hooksConfig?: any,
|
hooksConfig?: any;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface MountResult extends Locator {
|
interface MountResult extends Locator {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user