View as Markdown

API reference: @salmonui/data-grid/engine

FormatDescriptortype

import type { FormatDescriptor } from '@salmonui/data-grid/engine';
type FormatDescriptor = {
    readonly kind: 'number';
    readonly style: 'decimal' | 'currency' | 'percent';
    readonly pattern: string | null;
    readonly options: FormatOptions;
} | {
    readonly kind: 'date';
    readonly skeleton: string | null;
    readonly pattern: string | null;
    readonly options: FormatOptions;
};

Normalized column.format.