⚠️ @prestojs/ui is a legacy package

It is maintained for existing projects but should not be used for new projects. New projects should use @alliancesoftware/ui instead — see the formatting values guide.

getFormatterForField

Source
import { getFormatterForField } from "@prestojs/ui";
getFormatterForField<FieldValue,ParsableValueT,SingleValueT>(field)
Source

Arguments:

ArgumentTypeDescription
*fieldField
Returns:string|React.ComponentType|[React.ComponentType|string, Record]|null