@prismicio/client
Version:
The official JavaScript + TypeScript client library for Prismic
18 lines (16 loc) • 614 B
TypeScript
import { RichTextField } from "../types/value/richText.js";
//#region src/richtext/asText.d.ts
/**
* Converts a rich text field to a plain text string.
*
* @param richTextField - A rich text field from Prismic.
* @param separator - Separator used to join each element. Defaults to a space.
*
* @returns Plain text equivalent of the rich text field.
*
* @see Learn how to work with rich text fields: {@link https://prismic.io/docs/fields/rich-text}
*/
declare const asText: (richTextField: RichTextField, separator?: string) => string;
//#endregion
export { asText };
//# sourceMappingURL=asText.d.ts.map