View as Markdown

API reference: @salmonui/core/format

describeFormatfunction

import { describeFormat } from '@salmonui/core/format';
function describeFormat(format: string | FormatOptions | undefined, type: ColumnType, warn: Warn, columnId: string): FormatDescriptor | null;

Normalizes column.format for a column of the given type. Returns null for no format.