fix(ct): vue2 slot type (#17073)

This commit is contained in:
sand4rt 2022-09-08 17:38:40 +02:00 committed by GitHub
parent 80df84b49e
commit 69b5104967
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<Props = Record<string, unknown>> extends Locator {