UNPKG

datocms-html-to-structured-text

Version:

Convert HTML (or a `hast` syntax tree) to a valid DatoCMS Structured Text `dast` document

4 lines 309 B
import type { Node, CreateNodeFunction, Context } from './types.js'; import type { Nodes as HastNodes } from 'hast'; export default function visitChildren(createNode: CreateNodeFunction, parentNode: HastNodes, context: Context): Promise<Node | Array<Node> | void>; //# sourceMappingURL=visit-children.d.ts.map