@prismicio/client
Version:
The official JavaScript + TypeScript client library for Prismic
17 lines (16 loc) • 776 B
text/typescript
import { RichTextFunctionSerializer, RichTextMapSerializer } from "./types.cjs";
//#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.cts.map