bothy-sdk
    Preparing search index...

    Function envelopeFrom

    • Builds an Envelope from a received envelope, taking the token out of it.

      Parameters

      • data: Readonly<Record<string, unknown>>

        The envelope (d of a dispatch or an item of EventPage.events).

      Returns Envelope

      The envelope.

      TypeError when id or type is missing or malformed.