@prismicio/client
Version:
The official JavaScript + TypeScript client library for Prismic
20 lines (18 loc) • 571 B
TypeScript
import { RTNode } from "../types/value/richText.js";
import { Tree } from "./types.js";
//#region src/richtext/asTree.d.ts
/**
* 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
*/
declare const asTree: (nodes: RTNode[]) => Tree;
//#endregion
export { asTree };
//# sourceMappingURL=asTree.d.ts.map