@blockchaincommons/envelope - v1.0.0-beta.4
    Preparing search index...

    Function getType

    • returns the single type if there is exactly one, otherwise raises Error::AmbiguousType. Earlier revisions of this port returned InvalidType when the count was 0 — the reference uses the same AmbiguousType variant for both 0 and >1 cases.

      Parameters

      Returns Envelope

      EnvelopeError with code AmbiguousType.