Files
website/node_modules/hast-util-select/lib/attribute.d.ts
2024-05-06 17:15:30 -04:00

17 lines
581 B
TypeScript

/**
* @param {AstAttribute} query
* Query.
* @param {Element} element
* Element.
* @param {Schema} schema
* Schema of element.
* @returns {boolean}
* Whether `element` matches `query`.
*/
export function attribute(query: AstAttribute, element: Element, schema: Schema): boolean;
export type AstAttribute = import('css-selector-parser').AstAttribute;
export type Element = import('hast').Element;
export type Properties = import('hast').Properties;
export type Info = import('property-information').Info;
export type Schema = import('property-information').Schema;