fix(ct): svelte slot type (#17074)

This commit is contained in:
sand4rt 2022-09-08 17:39:00 +02:00 committed by GitHub
parent 69b5104967
commit 3f941865a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,11 +34,13 @@ export type PlaywrightTestConfig = Omit<BasePlaywrightTestConfig, 'use'> & {
}
};
type Slot = string | string[];
export interface MountOptions<Props = Record<string, unknown>> {
props?: Props,
slots?: Record<string, unknown>,
on?: Record<string, Function>,
hooksConfig?: any,
props?: Props;
slots?: Record<string, Slot> & { default?: Slot };
on?: Record<string, Function>;
hooksConfig?: any;
}
interface MountResult extends Locator {