docs: move ProductLauncher to abstract class (#11324)
This commit is contained in:
parent
1927fb561e
commit
f7cf05ce4a
@ -8,7 +8,7 @@ sidebar_label: ProductLauncher.defaultArgs
|
|||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
class ProductLauncher {
|
class ProductLauncher {
|
||||||
defaultArgs(object: BrowserLaunchArgumentOptions): string[];
|
abstract defaultArgs(object: BrowserLaunchArgumentOptions): string[];
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ sidebar_label: ProductLauncher.executablePath
|
|||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
class ProductLauncher {
|
class ProductLauncher {
|
||||||
executablePath(channel?: ChromeReleaseChannel): string;
|
abstract executablePath(channel?: ChromeReleaseChannel): string;
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ Describes a launcher - a class that is able to create and launch a browser insta
|
|||||||
#### Signature:
|
#### Signature:
|
||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
export declare class ProductLauncher
|
export declare abstract class ProductLauncher
|
||||||
```
|
```
|
||||||
|
|
||||||
## Remarks
|
## Remarks
|
||||||
|
@ -58,7 +58,7 @@ export interface ResolvedLaunchArgs {
|
|||||||
*
|
*
|
||||||
* @public
|
* @public
|
||||||
*/
|
*/
|
||||||
export class ProductLauncher {
|
export abstract class ProductLauncher {
|
||||||
#product: Product;
|
#product: Product;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -201,15 +201,9 @@ export class ProductLauncher {
|
|||||||
return browser;
|
return browser;
|
||||||
}
|
}
|
||||||
|
|
||||||
executablePath(channel?: ChromeReleaseChannel): string;
|
abstract executablePath(channel?: ChromeReleaseChannel): string;
|
||||||
executablePath(): string {
|
|
||||||
throw new Error('Not implemented');
|
|
||||||
}
|
|
||||||
|
|
||||||
defaultArgs(object: BrowserLaunchArgumentOptions): string[];
|
abstract defaultArgs(object: BrowserLaunchArgumentOptions): string[];
|
||||||
defaultArgs(): string[] {
|
|
||||||
throw new Error('Not implemented');
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set only for Firefox, after the launcher resolves the `latest` revision to
|
* Set only for Firefox, after the launcher resolves the `latest` revision to
|
||||||
@ -223,23 +217,17 @@ export class ProductLauncher {
|
|||||||
/**
|
/**
|
||||||
* @internal
|
* @internal
|
||||||
*/
|
*/
|
||||||
protected async computeLaunchArguments(
|
protected abstract computeLaunchArguments(
|
||||||
options: PuppeteerNodeLaunchOptions
|
options: PuppeteerNodeLaunchOptions
|
||||||
): Promise<ResolvedLaunchArgs>;
|
): Promise<ResolvedLaunchArgs>;
|
||||||
protected async computeLaunchArguments(): Promise<ResolvedLaunchArgs> {
|
|
||||||
throw new Error('Not implemented');
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @internal
|
* @internal
|
||||||
*/
|
*/
|
||||||
protected async cleanUserDataDir(
|
protected abstract cleanUserDataDir(
|
||||||
path: string,
|
path: string,
|
||||||
opts: {isTemp: boolean}
|
opts: {isTemp: boolean}
|
||||||
): Promise<void>;
|
): Promise<void>;
|
||||||
protected async cleanUserDataDir(): Promise<void> {
|
|
||||||
throw new Error('Not implemented');
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @internal
|
* @internal
|
||||||
|
Loading…
Reference in New Issue
Block a user