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