Umi — API References - v1.3.0
    Preparing search index...

    Variable mapSerializerConst

    mapSerializer: {
        <NewFrom, OldFrom, To>(
            serializer: Serializer<OldFrom, To>,
            unmap: (value: NewFrom) => OldFrom,
        ): Serializer<NewFrom, To>;
        <NewFrom, OldFrom, NewTo = NewFrom, OldTo = OldFrom>(
            serializer: Serializer<OldFrom, OldTo>,
            unmap: (value: NewFrom) => OldFrom,
            map: (value: OldTo, buffer: Uint8Array, offset: number) => NewTo,
        ): Serializer<NewFrom, NewTo>;
    } = _mapSerializer

    Type Declaration

    import from "@metaplex-foundation/umi/serializers" instead.