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

    Type Alias ParamEntryOfConfig<C>

    ParamEntryOfConfig: C extends { kind: Scaled
    | SignedScaled }
        ? C extends { domain: infer D extends Schema.Codec<any, any> }
            ? ParamEntry<Schema.decodeTo<D, UInt16Schema>, C["meta"]>
            : ParamEntry<Schema.decodeTo<Schema.Number, UInt16Schema>, C["meta"]>
        : C extends EnumParamConfig<any, infer Domain>
            ? ParamEntry<
                Schema.decodeTo<Schema.Literals<[Domain, ...Domain[]]>, UInt16Schema>,
                C["meta"],
            >
            : C extends BitfieldParamConfig<any, infer F>
                ? BitfieldParamEntry<F & AnyBitfieldClass, C["meta"]>
                : C extends LookupParamConfig<any, infer Domain>
                    ? ParamEntry<LookupSchema<Domain>, C["meta"]>
                    : ParamEntry<UInt16Schema, C["meta"]>

    Maps a ParamConfig to the ParamEntry fromConfig returns for it, preserving the concrete schema type.

    The scaled branches discriminate on the presence of domain rather than using infer D against the optional property: inferring from an absent optional property yields the constraint (Schema.Codec<any, any>), not the declared default, which would silently degrade the value type to any.

    Type Parameters