Function getParameterEsiExtensionFallback

  • Builds a permissive ESI extension for a parameter that cannot be matched against the ESI file.

    A parameter present in the device object dictionary but missing from the ESI file has no object definition to derive type, unit, constraint or option information from. Returning an empty extension would leave inputType undefined and such a parameter could not be rendered as a form input, so infer the input type from the parameter type and leave the value unconstrained.

    Returns

    A ParameterEsiExtension with an inferred inputType and no min/max constraints.

    Parameters

    • parameter: Pick<Parameter, "typeValueKey" | "valueType"> & {
          typeValue?: "intValue" | "uintValue" | "floatValue" | "stringValue" | "rawValue";
      }

      partial parameter providing the type used to infer the input type

    Returns ParameterEsiExtension

Generated using TypeDoc