mirror of
https://github.com/sern-handler/website
synced 2026-06-27 18:22:22 +00:00
14 lines
422 B
TypeScript
14 lines
422 B
TypeScript
/**
|
|
* Check whether an element has all class names.
|
|
*
|
|
* @param {AstClassName} query
|
|
* AST rule (with `classNames`).
|
|
* @param {Element} element
|
|
* Element.
|
|
* @returns {boolean}
|
|
* Whether `element` matches `query`.
|
|
*/
|
|
export function className(query: AstClassName, element: Element): boolean;
|
|
export type AstClassName = import('css-selector-parser').AstClassName;
|
|
export type Element = import('hast').Element;
|