mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
fix: modified comment for method product, platform and newPage (#7262)
This commit is contained in:
parent
8340cb7c34
commit
159d283545
@ -417,7 +417,8 @@ export class Browser extends EventEmitter {
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a {@link Page} in the default browser context.
|
||||
* Promise which resolves to a new {@link Page} object. The Page is created in
|
||||
* a default browser context.
|
||||
*/
|
||||
async newPage(): Promise<Page> {
|
||||
return this._defaultContext.newPage();
|
||||
|
@ -220,14 +220,16 @@ export class BrowserFetcher {
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns Returns the current `Platform`.
|
||||
* @returns Returns the current `Platform`, which is one of `mac`, `linux`,
|
||||
* `win32` or `win64`.
|
||||
*/
|
||||
platform(): Platform {
|
||||
return this._platform;
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns Returns the current `Product`.
|
||||
* @returns Returns the current `Product`, which is one of `chrome` or
|
||||
* `firefox`.
|
||||
*/
|
||||
product(): Product {
|
||||
return this._product;
|
||||
|
@ -7,8 +7,9 @@
|
||||
"extends": "./tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"noEmit": true,
|
||||
// This module setting is just for VSCode so it doesn't error when we use
|
||||
// dynamic imports.
|
||||
/* This module setting is just for VSCode so it doesn't throw error when we
|
||||
use dynamic imports.
|
||||
*/
|
||||
"module": "esnext"
|
||||
},
|
||||
"include": ["src"]
|
||||
|
Loading…
Reference in New Issue
Block a user