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)
| Source | Type |
|---|---|
| fieldTypeLabel | uses |
| getFieldTypeOptions | calls |
| getFieldTypeGroupedOptions | calls |