UNPKG

@prismicio/client

Version:

The official JavaScript + TypeScript client library for Prismic

16 lines (15 loc) 651 B
import type { RichTextFunctionSerializer, RichTextMapSerializer } from "./types"; /** * 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 */ export declare const wrapMapSerializer: <SerializerReturnType>(mapSerializer: RichTextMapSerializer<SerializerReturnType>) => RichTextFunctionSerializer<SerializerReturnType>;