Parser: Readonly<
{
adjustDecimalPlaces: (format: string, amount: number) => string;
formatValue: (
runtime: IRuntime,
format: NumberFormatRef,
value: string | number,
options?: ParserOptions,
) => string;
getFormatDateInfo: (format: string) => FormatDateInfo | null;
getFormatInfo: (format: string) => FormatInfo | null;
isFractionFormat: (format: string) => boolean;
isValidFormat: (format: string) => boolean;
},
> = _Parser
This interface returns rendering information about the formatted text based on the numberFormat.
https://customformats.com/ https://exceljet.net/custom-number-formats https://docs.microsoft.com/en-us/dotnet/api/documentformat.openxml.spreadsheet.numberingformats?view=openxml-2.8.1