mycocepurus-smithii - v2.0.1
    Preparing search index...

    Interface Codec<T, Wire>

    How an out-of-process Store turns entries into something it can hold. Never called by this package; it is here so adapters agree on a shape.

    interface Codec<T, Wire = string> {
        decode(wire: Wire): Entry<T> | Promise<Entry<T>>;
        encode(entry: Entry<T>): Wire | Promise<Wire>;
    }

    Type Parameters

    • T
    • Wire = string
    Index