getFieldTypeLabel function exported ✓ 100.0%

Last updated: 2026-03-01T23:25:47.131Z

Metrics

LOC: 9 Complexity: 2 Params: 1 Coverage: 100.0% (4/4 lines, 304x executed)

Signature

getFieldTypeLabel(type: FieldType): : string

Summary

Returns a human-readable label for the given field type.

Source Code

export function getFieldTypeLabel(type: FieldType): string {
  const override = FIELD_TYPE_LABEL_OVERRIDES[type];
  if (override) return override;

  return type
    .split("-")
    .map((chunk) => chunk.charAt(0).toUpperCase() + chunk.slice(1))
    .join(" ");
}

No outgoing dependencies.

Impact (Incoming)

graph LR getFieldTypeLabel["getFieldTypeLabel"] fieldTypeLabel["fieldTypeLabel"] getFieldTypeOptions["getFieldTypeOptions"] getFieldTypeGroupedOptions["getFieldTypeGroupedOptions"] fieldTypeLabel -->|uses| getFieldTypeLabel getFieldTypeOptions -->|calls| getFieldTypeLabel getFieldTypeGroupedOptions -->|calls| getFieldTypeLabel style getFieldTypeLabel fill:#dbeafe,stroke:#2563eb,stroke-width:2px click getFieldTypeLabel "554362aa9aa64584.html" click fieldTypeLabel "861a0ec11bc0b27b.html" click getFieldTypeOptions "d108aaeac92c9305.html" click getFieldTypeGroupedOptions "bc5b8e85f8463f4e.html"