UNPKG

@prismicio/client

Version:

The official JavaScript + TypeScript client library for Prismic

15 lines (14 loc) 477 B
import type { RTNode } from "../types/value/richText"; import type { Tree } from "./types"; /** * Parses a rich text or title field into a tree * * @remarks * This is a low level helper mainly intended to be used by higher level * packages. Most users aren't expected to this function directly. * * @param nodes - A rich text or title field from Prismic * * @returns Tree from given rich text or title field */ export declare const asTree: (nodes: RTNode[]) => Tree;