UNPKG

@sheetxl/models

Version:

Models - A Headless javascript spreadsheet library.

31 lines 1.03 kB
import { NumberFormatType } from "./NumberFormatType"; /** * These are only returned if all segments have the same values. */ export interface NumberFormatStyleConfig { separator?: boolean; decimalPlaces?: number; currencySymbol?: string; } export interface NumberFormatStyle { numberFormat: string; /** * Category of format */ formatType: NumberFormatType; /** * If used in a menu it's the sort oder. * TODO - enrich this since excel and drawMl (charts are slightly different. Union these?) */ primary?: number; args?: NumberFormatStyleConfig; regMatch?: RegExp; } export declare const lookupPrimaryFormatCodes: () => NumberFormatStyle[]; export declare const lookupDefaultFormatCode: (numberFormatKey: string | NumberFormatType) => string; /** * look up the type and parameters for a numberFormat * @param numberFormat */ export declare const lookupNumberFormatType: (numberFormat: string) => NumberFormatStyle; //# sourceMappingURL=NumberFormatStyles.d.ts.map