mirror of
https://github.com/sern-handler/website
synced 2026-06-27 02:02:23 +00:00
21 lines
636 B
TypeScript
21 lines
636 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;
|
|
export type ElementContent = import('hast').ElementContent;
|
|
export type Nodes = import('hast').Nodes;
|
|
export type Visitor = import('unist-util-visit').Visitor<ElementContent>;
|
|
export type Direction = import('./index.js').Direction;
|
|
export type State = import('./index.js').State;
|