Files
react-native-devtools-frontend/node_modules/dom5/lib/predicates.d.ts
T
Tim van der Lippe 1fe7f95b0e Add eslint-plugin-lit-a11y to manage_node_deps
This also adds the MPL-2.0 license as valid license to our allowed
licenses list.

R=jacktfranklin@chromium.org
DISABLE_THIRD_PARTY_CHECK=NPM update

Change-Id: I2a3bee2ffc0b328a0579ab62ab27f938bdc876c8
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2593130
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org>
2021-01-05 13:13:19 +00:00

36 lines
1.6 KiB
TypeScript

/**
* @license
* Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at
* http://polymer.github.io/AUTHORS.txt
* The complete set of contributors may be found at
* http://polymer.github.io/CONTRIBUTORS.txt
* Code distributed by Google as part of the polymer project is also
* subject to an additional IP rights grant found at
* http://polymer.github.io/PATENTS.txt
*/
import { ASTNode as Node } from 'parse5';
export { ASTNode as Node } from 'parse5';
export declare type Predicate = (node: Node) => boolean;
export declare function hasSpaceSeparatedAttrValue(name: string, value: string): Predicate;
export declare function isDocument(node: Node): boolean;
export declare function isDocumentFragment(node: Node): boolean;
export declare function isElement(node: Node): boolean;
export declare function isTextNode(node: Node): boolean;
export declare function isCommentNode(node: Node): boolean;
export declare const predicates: {
hasClass: (name: string) => Predicate;
hasAttr: (attr: string) => Predicate;
hasAttrValue: (attr: string, value: string) => Predicate;
hasMatchingTagName: (regex: RegExp) => Predicate;
hasSpaceSeparatedAttrValue: typeof hasSpaceSeparatedAttrValue;
hasTagName: (name: string) => Predicate;
hasTextValue: (value: string) => Predicate;
AND: (...predicates: Predicate[]) => Predicate;
OR: (...predicates: Predicate[]) => Predicate;
NOT: (predicateFn: Predicate) => Predicate;
parentMatches: (predicateFn: Predicate) => Predicate;
};