mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
fix: mark internal objects (#8984)
This commit is contained in:
parent
882c7ce63e
commit
181a148269
@ -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
|
||||
|
@ -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;
|
||||
|
@ -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) {
|
||||
|
@ -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(
|
||||
|
@ -34,4 +34,7 @@ const PuppeteerUtil = Object.freeze({
|
||||
|
||||
type PuppeteerUtil = typeof PuppeteerUtil;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
export default PuppeteerUtil;
|
||||
|
Loading…
Reference in New Issue
Block a user