diff --git a/packages/playwright/types/test.d.ts b/packages/playwright/types/test.d.ts index fe74d00184..42d85d45fc 100644 --- a/packages/playwright/types/test.d.ts +++ b/packages/playwright/types/test.d.ts @@ -18,7 +18,7 @@ import type { APIRequestContext, Browser, BrowserContext, BrowserContextOptions, Page, LaunchOptions, ViewportSize, Geolocation, HTTPCredentials, Locator, APIResponse, PageScreenshotOptions } from 'playwright-core'; export * from 'playwright-core'; -export type ReporterDescription = +export type ReporterDescription = Readonly< ['blob'] | ['blob', { outputDir?: string, fileName?: string }] | ['dot'] | ['line'] | @@ -28,7 +28,8 @@ export type ReporterDescription = ['json'] | ['json', { outputFile?: string }] | ['html'] | ['html', { outputFolder?: string, open?: 'always' | 'never' | 'on-failure', host?: string, port?: number, attachmentsBaseURL?: string }] | ['null'] | - [string] | [string, any]; + [string] | [string, any] +>; type UseOptions = Partial & Partial; diff --git a/utils/generate_types/overrides-test.d.ts b/utils/generate_types/overrides-test.d.ts index 72cdf3a7b3..9d58db13fe 100644 --- a/utils/generate_types/overrides-test.d.ts +++ b/utils/generate_types/overrides-test.d.ts @@ -17,7 +17,7 @@ import type { APIRequestContext, Browser, BrowserContext, BrowserContextOptions, Page, LaunchOptions, ViewportSize, Geolocation, HTTPCredentials, Locator, APIResponse, PageScreenshotOptions } from 'playwright-core'; export * from 'playwright-core'; -export type ReporterDescription = +export type ReporterDescription = Readonly< ['blob'] | ['blob', { outputDir?: string, fileName?: string }] | ['dot'] | ['line'] | @@ -27,7 +27,8 @@ export type ReporterDescription = ['json'] | ['json', { outputFile?: string }] | ['html'] | ['html', { outputFolder?: string, open?: 'always' | 'never' | 'on-failure', host?: string, port?: number, attachmentsBaseURL?: string }] | ['null'] | - [string] | [string, any]; + [string] | [string, any] +>; type UseOptions = Partial & Partial;