fix: mark internal objects (#8984)

This commit is contained in:
jrandolf 2022-09-19 16:28:18 +02:00 committed by GitHub
parent 882c7ce63e
commit 181a148269
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 24 additions and 0 deletions

View File

@ -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
@ -39,6 +42,9 @@ export const pierceQuerySelector = (
return found;
};
/**
* @internal
*/
export const pierceQuerySelectorAll = (
element: Node,
selector: string

View File

@ -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>;
@ -127,6 +130,10 @@ export class RAFPoller<T> implements Poller<T> {
}
}
/**
* @internal
*/
export class IntervalPoller<T> implements Poller<T> {
#fn: () => Promise<T>;
#ms: number;

View File

@ -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) {

View File

@ -14,6 +14,9 @@
* limitations under the License.
*/
/**
* @internal
*/
export const xpathQuerySelector = (
root: Node,
selector: string
@ -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(

View File

@ -34,4 +34,7 @@ const PuppeteerUtil = Object.freeze({
type PuppeteerUtil = typeof PuppeteerUtil;
/**
* @internal
*/
export default PuppeteerUtil;