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

Commit

Permalink
Close #43: Add typings to selection methods
Browse files Browse the repository at this point in the history
  • Loading branch information
nesk committed Nov 30, 2020
1 parent 2911071 commit 77bdd4d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Traits/AliasesEvaluationMethods.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

namespace Nesk\Puphpeteer\Traits;

use Nesk\Rialto\Data\JsFunction;

/**
* @method bool|int|float|string|array|null querySelectorEval(string $selector, JsFunction $pageFunction, bool|int|float|string|array|null|JSHandle ...args)
* @method bool|int|float|string|array|null querySelectorAllEval(string $selector, JsFunction $pageFunction, bool|int|float|string|array|null|JSHandle ...args)
*/
trait AliasesEvaluationMethods
{
public function querySelectorEval(...$arguments)
Expand Down
5 changes: 5 additions & 0 deletions src/Traits/AliasesSelectionMethods.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

namespace Nesk\Puphpeteer\Traits;

/**
* @method ElementHandle|null querySelector(string $selector)
* @method array<int, ElementHandle> querySelectorAll(string $selector)
* @method array<int, ElementHandle> querySelectorXPath(string $expression)
*/
trait AliasesSelectionMethods
{
public function querySelector(...$arguments)
Expand Down

0 comments on commit 77bdd4d

Please sign in to comment.