Skip to content
This repository has been archived by the owner on Feb 9, 2023. It is now read-only.

Commit

Permalink
Update chrome-aws-lambda.d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Sparticuz committed Jul 13, 2022
1 parent 7e02075 commit 608a435
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions typings/chrome-aws-lambda.d.ts
Expand Up @@ -273,23 +273,23 @@ declare module 'puppeteer-core' {
* @param predicate - String to wait for.
* @param options - Optional waiting parameters.
*/
waitForText(predicate: string, options?: WaitTimeoutOptions): Promise<ElementHandle>;
waitForText(predicate: string, options?: WaitTimeoutOptions): Promise<ElementHandle<Node>>;

/**
* Waits for element to be present in DOM and to be visible.
*
* @param selector - Selector to query for.
* @param options - Optional waiting parameters.
*/
waitUntilVisible(selector: string, options?: WaitTimeoutOptions): Promise<ElementHandle>;
waitUntilVisible(selector: string, options?: WaitTimeoutOptions): Promise<ElementHandle<Node>>;

/**
* Waits for element to not be found in the DOM or to be hidden.
*
* @param selector - Selector to query for.
* @param options - Optional waiting parameters.
*/
waitWhileVisible(selector: string, options?: WaitTimeoutOptions): Promise<ElementHandle>;
waitWhileVisible(selector: string, options?: WaitTimeoutOptions): Promise<ElementHandle<Node>>;
}

interface Page {
Expand Down Expand Up @@ -442,23 +442,23 @@ declare module 'puppeteer-core' {
* @param predicate - String to wait for.
* @param options - Optional waiting parameters.
*/
waitForText(predicate: string, options?: WaitTimeoutOptions): Promise<ElementHandle>;
waitForText(predicate: string, options?: WaitTimeoutOptions): Promise<ElementHandle<Node>>;

/**
* Waits for element to be present in DOM and to be visible.
*
* @param selector - Selector to query for.
* @param options - Optional waiting parameters.
*/
waitUntilVisible(selector: string, options?: WaitTimeoutOptions): Promise<ElementHandle>;
waitUntilVisible(selector: string, options?: WaitTimeoutOptions): Promise<ElementHandle<Node>>;

/**
* Waits for element to not be found in the DOM or to be hidden.
*
* @param selector - Selector to query for.
* @param options - Optional waiting parameters.
*/
waitWhileVisible(selector: string, options?: WaitTimeoutOptions): Promise<ElementHandle>;
waitWhileVisible(selector: string, options?: WaitTimeoutOptions): Promise<ElementHandle<Node>>;

/**
* Encapsulates the callback execution in a tracing session.
Expand Down

0 comments on commit 608a435

Please sign in to comment.