diff --git a/packages/playwright-ct-svelte/index.d.ts b/packages/playwright-ct-svelte/index.d.ts index f98097a39c..16f0f9f05a 100644 --- a/packages/playwright-ct-svelte/index.d.ts +++ b/packages/playwright-ct-svelte/index.d.ts @@ -35,13 +35,18 @@ export type PlaywrightTestConfig = Omit & { } }; +type JsonPrimitive = string | number | boolean | null; +type JsonValue = JsonPrimitive | JsonObject | JsonArray; +type JsonArray = JsonValue[]; +type JsonObject = { [Key in string]?: JsonValue }; + type Slot = string | string[]; export interface MountOptions { props?: ComponentProps; slots?: Record & { default?: Slot }; on?: Record; - hooksConfig?: any; + hooksConfig?: JsonObject; } interface MountResult extends Locator {