@flux-control/modbus-schema
    Preparing search index...

    Interface AnyBitfieldClass

    Minimal structural shape the bitfield factory needs from a Schema.Class-derived class: it is both a schema (so it can serve as the target of a decodeTo) and an instantiable class. Both roles are stated here, because a constraint that named only the constructor would leave the factory asserting the schema role back in at the decodeTo call.

    interface AnyBitfieldClass {
        new AnyBitfieldClass(fields: any): any;
        new AnyBitfieldClass(_: never): {};
    }

    Hierarchy

    • Codec<any, any>
      • AnyBitfieldClass
    Index
    • Parameters

      • fields: any

      Returns any

    • Parameters

      • _: never

      Returns {}