mirror of
https://github.com/sern-handler/website
synced 2026-06-27 02:02:23 +00:00
14 lines
370 B
TypeScript
14 lines
370 B
TypeScript
/**
|
|
* Check whether an element has an ID.
|
|
*
|
|
* @param {AstId} query
|
|
* AST rule (with `ids`).
|
|
* @param {Element} element
|
|
* Element.
|
|
* @returns {boolean}
|
|
* Whether `element` matches `query`.
|
|
*/
|
|
export function id(query: AstId, element: Element): boolean;
|
|
export type AstId = import('css-selector-parser').AstId;
|
|
export type Element = import('hast').Element;
|