types: allow readonly tuples to be used as ReporterDescription
This commit is contained in:
parent
563c9baf00
commit
7bc233e77f
5
packages/playwright/types/test.d.ts
vendored
5
packages/playwright/types/test.d.ts
vendored
|
|
@ -18,7 +18,7 @@
|
||||||
import type { APIRequestContext, Browser, BrowserContext, BrowserContextOptions, Page, LaunchOptions, ViewportSize, Geolocation, HTTPCredentials, Locator, APIResponse, PageScreenshotOptions } from 'playwright-core';
|
import type { APIRequestContext, Browser, BrowserContext, BrowserContextOptions, Page, LaunchOptions, ViewportSize, Geolocation, HTTPCredentials, Locator, APIResponse, PageScreenshotOptions } from 'playwright-core';
|
||||||
export * from 'playwright-core';
|
export * from 'playwright-core';
|
||||||
|
|
||||||
export type ReporterDescription =
|
export type ReporterDescription = Readonly<
|
||||||
['blob'] | ['blob', { outputDir?: string, fileName?: string }] |
|
['blob'] | ['blob', { outputDir?: string, fileName?: string }] |
|
||||||
['dot'] |
|
['dot'] |
|
||||||
['line'] |
|
['line'] |
|
||||||
|
|
@ -28,7 +28,8 @@ export type ReporterDescription =
|
||||||
['json'] | ['json', { outputFile?: string }] |
|
['json'] | ['json', { outputFile?: string }] |
|
||||||
['html'] | ['html', { outputFolder?: string, open?: 'always' | 'never' | 'on-failure', host?: string, port?: number, attachmentsBaseURL?: string }] |
|
['html'] | ['html', { outputFolder?: string, open?: 'always' | 'never' | 'on-failure', host?: string, port?: number, attachmentsBaseURL?: string }] |
|
||||||
['null'] |
|
['null'] |
|
||||||
[string] | [string, any];
|
[string] | [string, any]
|
||||||
|
>;
|
||||||
|
|
||||||
type UseOptions<TestArgs, WorkerArgs> = Partial<WorkerArgs> & Partial<TestArgs>;
|
type UseOptions<TestArgs, WorkerArgs> = Partial<WorkerArgs> & Partial<TestArgs>;
|
||||||
|
|
||||||
|
|
|
||||||
5
utils/generate_types/overrides-test.d.ts
vendored
5
utils/generate_types/overrides-test.d.ts
vendored
|
|
@ -17,7 +17,7 @@
|
||||||
import type { APIRequestContext, Browser, BrowserContext, BrowserContextOptions, Page, LaunchOptions, ViewportSize, Geolocation, HTTPCredentials, Locator, APIResponse, PageScreenshotOptions } from 'playwright-core';
|
import type { APIRequestContext, Browser, BrowserContext, BrowserContextOptions, Page, LaunchOptions, ViewportSize, Geolocation, HTTPCredentials, Locator, APIResponse, PageScreenshotOptions } from 'playwright-core';
|
||||||
export * from 'playwright-core';
|
export * from 'playwright-core';
|
||||||
|
|
||||||
export type ReporterDescription =
|
export type ReporterDescription = Readonly<
|
||||||
['blob'] | ['blob', { outputDir?: string, fileName?: string }] |
|
['blob'] | ['blob', { outputDir?: string, fileName?: string }] |
|
||||||
['dot'] |
|
['dot'] |
|
||||||
['line'] |
|
['line'] |
|
||||||
|
|
@ -27,7 +27,8 @@ export type ReporterDescription =
|
||||||
['json'] | ['json', { outputFile?: string }] |
|
['json'] | ['json', { outputFile?: string }] |
|
||||||
['html'] | ['html', { outputFolder?: string, open?: 'always' | 'never' | 'on-failure', host?: string, port?: number, attachmentsBaseURL?: string }] |
|
['html'] | ['html', { outputFolder?: string, open?: 'always' | 'never' | 'on-failure', host?: string, port?: number, attachmentsBaseURL?: string }] |
|
||||||
['null'] |
|
['null'] |
|
||||||
[string] | [string, any];
|
[string] | [string, any]
|
||||||
|
>;
|
||||||
|
|
||||||
type UseOptions<TestArgs, WorkerArgs> = Partial<WorkerArgs> & Partial<TestArgs>;
|
type UseOptions<TestArgs, WorkerArgs> = Partial<WorkerArgs> & Partial<TestArgs>;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue