A11 TypeScript API - v0.7.0
    Preparing search index...

    Function asStatusValue

    • A Status carried as data — an interaction's outcome, say.

      Status is an interface here, not a class, so a Status is recognised by its brand rather than its shape: an ordinary {code, message} object a caller is sending as data must stay ordinary data. Decoding brands what it builds, so a Status that arrived from a peer goes back out as one.

      Parameters

      Returns Status