API reference
@searsuite/sear-domain-format
Portable cell-format values and formatting contracts.
15 exportsderived from source
- interfaceExcelDatePartssource ↗
-
interface ExcelDatePartspropertyday readonly day: numberpropertymonth readonly month: numberpropertyphantomLeapDay readonly phantomLeapDay?: booleanpropertyyear readonly year: number - interfaceSpreadsheetErrorValuesource ↗
-
interface SpreadsheetErrorValue - interfaceSpreadsheetFormatDisplaysource ↗
-
interface SpreadsheetFormatDisplayDisplay metadata selected from one Excel number-format section.
propertycolor readonly color?: stringpropertyfillCharacter readonly fillCharacter?: stringpropertytext readonly text: string - interfaceSpreadsheetFormatLocalesource ↗
-
interface SpreadsheetFormatLocalepropertydatePattern readonly datePattern: stringpropertydateTimePattern readonly dateTimePattern: stringpropertydecimalSeparator readonly decimalSeparator?: stringpropertygroupSeparator readonly groupSeparator?: stringpropertylocale readonly locale: stringpropertytimePattern readonly timePattern: string - interfaceSpreadsheetTextValuesource ↗
-
interface SpreadsheetTextValue - typeSpreadsheetFormatValuesource ↗
-
type SpreadsheetFormatValue = string | number | boolean | null | undefined | SpreadsheetTextValue | SpreadsheetErrorValue | readonly SpreadsheetFormatValue[] | readonly readonly SpreadsheetFormatValue[][] - variableDefaultSpreadsheetFormatLocalesource ↗
-
DefaultSpreadsheetFormatLocale: SpreadsheetFormatLocale - functionexcelDatePartsFromSerialsource ↗
-
excelDatePartsFromSerial(serial: number): ExcelDateParts | nullserial: number
- functionformatDollarsource ↗
-
formatDollar(number: number, decimals: number, currencySymbol?: string): stringnumber: numberdecimals: numbercurrencySymbol: string
- functionformatExcelDateTimesource ↗
-
formatExcelDateTime(serial: number, pattern?: string, locale?: SpreadsheetFormatLocale): stringFormats an Excel date/time serial with date, clock, and elapsed-time tokens.
serial: numberpattern: stringlocale: SpreadsheetFormatLocale
- functionformatExcelDisplaysource ↗
-
formatExcelDisplay(value: SpreadsheetFormatValue, formatText: string, locale?: SpreadsheetFormatLocale): SpreadsheetFormatDisplay | SpreadsheetErrorValue | nullFormats a scalar value and preserves section-level visual metadata.
value: SpreadsheetFormatValueformatText: stringlocale: SpreadsheetFormatLocale
- functionformatExcelTextsource ↗
-
formatExcelText(value: SpreadsheetFormatValue, formatText: string, locale?: SpreadsheetFormatLocale): string | SpreadsheetErrorValue | nullvalue: SpreadsheetFormatValueformatText: stringlocale: SpreadsheetFormatLocale
- functionformatFixedsource ↗
-
formatFixed(number: number, decimals: number, noCommas: boolean): stringnumber: numberdecimals: numbernoCommas: boolean
- functionformatSpreadsheetNumbersource ↗
-
formatSpreadsheetNumber(value: number, code: string, locale?: SpreadsheetFormatLocale): string | nullvalue: numbercode: stringlocale: SpreadsheetFormatLocale
- functionparseNumberValuesource ↗
-
parseNumberValue(source: string, decimalSeparator?: string, groupSeparator?: string): number | nullsource: stringdecimalSeparator: stringgroupSeparator: string
No public exports match that search.