hast-util-select
Version:
hast utility for `querySelector`, `querySelectorAll`, and `matches`
18 lines • 473 B
TypeScript
/**
* Enter a node.
*
* The caller is responsible for calling the return value `exit`.
*
* @param {State} state
* Current state.
*
* Will be mutated: `exit` undos the changes.
* @param {Nodes} node
* Node to enter.
* @returns {() => undefined}
* Call to exit.
*/
export function enterState(state: State, node: Nodes): () => undefined;
import type { State } from './index.js';
import type { Nodes } from 'hast';
//# sourceMappingURL=enter-state.d.ts.map