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 // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
/**
* @internal
*/
export const pierceQuerySelector = ( export const pierceQuerySelector = (
root: Node, root: Node,
selector: string selector: string
@ -39,6 +42,9 @@ export const pierceQuerySelector = (
return found; return found;
}; };
/**
* @internal
*/
export const pierceQuerySelectorAll = ( export const pierceQuerySelectorAll = (
element: Node, element: Node,
selector: string selector: string

View File

@ -84,6 +84,9 @@ export class MutationPoller<T> implements Poller<T> {
} }
} }
/**
* @internal
*/
export class RAFPoller<T> implements Poller<T> { export class RAFPoller<T> implements Poller<T> {
#fn: () => Promise<T>; #fn: () => Promise<T>;
#promise?: DeferredPromise<T>; #promise?: DeferredPromise<T>;
@ -127,6 +130,10 @@ export class RAFPoller<T> implements Poller<T> {
} }
} }
/**
* @internal
*/
export class IntervalPoller<T> implements Poller<T> { export class IntervalPoller<T> implements Poller<T> {
#fn: () => Promise<T>; #fn: () => Promise<T>;
#ms: number; #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. * Determines if the node has a non-trivial value property.
*
* @internal
*/ */
const isNonTrivialValueNode = (node: Node): node is NonTrivialValueNode => { const isNonTrivialValueNode = (node: Node): node is NonTrivialValueNode => {
if (node instanceof HTMLSelectElement) { if (node instanceof HTMLSelectElement) {

View File

@ -14,6 +14,9 @@
* limitations under the License. * limitations under the License.
*/ */
/**
* @internal
*/
export const xpathQuerySelector = ( export const xpathQuerySelector = (
root: Node, root: Node,
selector: string selector: string
@ -28,6 +31,9 @@ export const xpathQuerySelector = (
return result.singleNodeValue; return result.singleNodeValue;
}; };
/**
* @internal
*/
export const xpathQuerySelectorAll = (root: Node, selector: string): Node[] => { export const xpathQuerySelectorAll = (root: Node, selector: string): Node[] => {
const doc = root.ownerDocument || document; const doc = root.ownerDocument || document;
const iterator = doc.evaluate( const iterator = doc.evaluate(

View File

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