FuncType - v1.4.1
    Preparing search index...

    Function createTaggedSerializer

    • Creates a serializer for non-canonical envelopes whose payload doesn't fit the {value} shape — e.g. failure branches that carry a structured SerializedError. The envelope still carries the @functype marker and _tag discriminator.

      Parameters

      • marker: string

        The @functype type marker.

      • tag: string

        The variant discriminator.

      • fields: Record<string, unknown>

        The payload fields (merged after marker + tag).

      Returns SerializationResult