Skip to content

Commit

Permalink
fix: mark internal objects (#8984)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrandolf committed Sep 19, 2022
1 parent 882c7ce commit 181a148
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/injected/PierceQuerySelector.ts
Expand Up @@ -12,6 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.

/**
* @internal
*/
export const pierceQuerySelector = (
root: Node,
selector: string
Expand Down Expand Up @@ -39,6 +42,9 @@ export const pierceQuerySelector = (
return found;
};

/**
* @internal
*/
export const pierceQuerySelectorAll = (
element: Node,
selector: string
Expand Down
7 changes: 7 additions & 0 deletions src/injected/Poller.ts
Expand Up @@ -84,6 +84,9 @@ export class MutationPoller<T> implements Poller<T> {
}
}

/**
* @internal
*/
export class RAFPoller<T> implements Poller<T> {
#fn: () => Promise<T>;
#promise?: DeferredPromise<T>;
Expand Down Expand Up @@ -127,6 +130,10 @@ export class RAFPoller<T> implements Poller<T> {
}
}

/**
* @internal
*/

export class IntervalPoller<T> implements Poller<T> {
#fn: () => Promise<T>;
#ms: number;
Expand Down
2 changes: 2 additions & 0 deletions src/injected/TextContent.ts
Expand Up @@ -22,6 +22,8 @@ const TRIVIAL_VALUE_INPUT_TYPES = new Set(['checkbox', 'image', 'radio']);

/**
* Determines if the node has a non-trivial value property.
*
* @internal
*/
const isNonTrivialValueNode = (node: Node): node is NonTrivialValueNode => {
if (node instanceof HTMLSelectElement) {
Expand Down
6 changes: 6 additions & 0 deletions src/injected/XPathQuerySelector.ts
Expand Up @@ -14,6 +14,9 @@
* limitations under the License.
*/

/**
* @internal
*/
export const xpathQuerySelector = (
root: Node,
selector: string
Expand All @@ -28,6 +31,9 @@ export const xpathQuerySelector = (
return result.singleNodeValue;
};

/**
* @internal
*/
export const xpathQuerySelectorAll = (root: Node, selector: string): Node[] => {
const doc = root.ownerDocument || document;
const iterator = doc.evaluate(
Expand Down
3 changes: 3 additions & 0 deletions src/injected/injected.ts
Expand Up @@ -34,4 +34,7 @@ const PuppeteerUtil = Object.freeze({

type PuppeteerUtil = typeof PuppeteerUtil;

/**
* @internal
*/
export default PuppeteerUtil;

0 comments on commit 181a148

Please sign in to comment.