@prismicio/client
Version:
The official JavaScript + TypeScript client library for Prismic
21 lines (19 loc) • 780 B
TypeScript
import { RichTextFunctionSerializer, RichTextMapSerializer } from "./types.js";
//#region src/richtext/wrapMapSerializer.d.ts
/**
* Wraps a map serializer into a regular function serializer
*
* @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
*
* @typeParam SerializerReturnType - Return type of the map serializer
*
* @param mapSerializer - Map serializer to wrap
*
* @returns A regular function serializer
*/
declare const wrapMapSerializer: <SerializerReturnType>(mapSerializer: RichTextMapSerializer<SerializerReturnType>) => RichTextFunctionSerializer<SerializerReturnType>;
//#endregion
export { wrapMapSerializer };
//# sourceMappingURL=wrapMapSerializer.d.ts.map