# API Reference Overview

# Type aliases

# CellDependency

Ƭ CellDependency: SimpleCellAddress | AbsoluteCellRange | NamedExpressionDependency

Defined in src/CellDependency.ts:10 (opens new window)


# CellValue

Ƭ CellValue: NoErrorCellValue | DetailedCellError

Defined in src/CellValue.ts:9 (opens new window)


# CellValueDetailedType

Ƭ CellValueDetailedType: CellValueNoNumber | NumberType

Defined in src/Cell.ts:94 (opens new window)


# CellValueType

Ƭ CellValueType: CellValueNoNumber | CellValueJustNumber

Defined in src/Cell.ts:91 (opens new window)


# ChangeList

Ƭ ChangeList: CellValueChange[]

Defined in src/ContentChanges.ts:20 (opens new window)


# ClipboardCell

Ƭ ClipboardCell: ClipboardCellValue | ClipboardCellFormula | ClipboardCellEmpty | ClipboardCellParsingError

Defined in src/ClipboardOperations.ts:16 (opens new window)


# ColumnMap

Ƭ ColumnMap: Map‹RawInterpreterValue, ValueIndex

Defined in src/Lookup/ColumnIndex.ts:30 (opens new window)


# ColumnRowIndex

Ƭ ColumnRowIndex: [number, number]

Defined in src/CrudOperations.ts:65 (opens new window)


# ConfigParamsList

Ƭ ConfigParamsList: keyof ConfigParams

Defined in src/ConfigParams.ts:450 (opens new window)


# ConsoleMessages

Ƭ ConsoleMessages: object

Defined in src/helpers/licenseKeyValidator.ts:24 (opens new window)

# Type declaration:


# DateTime

Ƭ DateTime: SimpleTime | SimpleDate | SimpleDateTime

Defined in src/DateTimeHelper.ts:31 (opens new window)


# Dependencies

Ƭ Dependencies: Map‹Vertex, CellDependency[]›

Defined in src/GraphBuilder.ts:25 (opens new window)


# EngineState

Ƭ EngineState: object

Defined in src/BuildEngineFactory.ts:33 (opens new window)

# Type declaration:


# ExportedChange

Ƭ ExportedChange: ExportedCellChange | ExportedNamedExpressionChange

Defined in src/Exporter.ts:18 (opens new window)


# LicenseKeyInvalidState

Ƭ LicenseKeyInvalidState: Exclude‹LicenseKeyValidityState, VALID

Defined in src/helpers/licenseKeyValidator.ts:18 (opens new window)


# Maybe

Ƭ Maybe: T | undefined

Defined in src/Maybe.ts:6 (opens new window)

license Copyright (c) 2025 Handsoncode. All rights reserved.


# MessageDescriptor

Ƭ MessageDescriptor: object

Defined in src/helpers/licenseKeyValidator.ts:28 (opens new window)

# Type declaration:


# NamedExpressionOptions

Ƭ NamedExpressionOptions: Record‹string, string | number | boolean›

Defined in src/NamedExpressions.ts:22 (opens new window)


# NoErrorCellValue

Ƭ NoErrorCellValue: number | string | boolean | null

Defined in src/CellValue.ts:8 (opens new window)


# RawCellContent

Ƭ RawCellContent: Date | string | number | boolean | null | undefined

Defined in src/CellContentParser.ts:25 (opens new window)


# Sheet

Ƭ Sheet: RawCellContent[][]

Defined in src/Sheet.ts:12 (opens new window)

Two-dimenstional array representation of sheet


# SheetDimensions

Ƭ SheetDimensions: object

Defined in src/Sheet.ts:19 (opens new window)

Represents size of a sheet

# Type declaration:

  • height: number

  • width: number


# SheetIndex

Ƭ SheetIndex: ColumnMap[]

Defined in src/Lookup/ColumnIndex.ts:37 (opens new window)


# Sheets

Ƭ Sheets: Record‹string, Sheet

Defined in src/Sheet.ts:14 (opens new window)


# SimpleDateTime

Ƭ SimpleDateTime: SimpleDate & SimpleTime

Defined in src/DateTimeHelper.ts:29 (opens new window)


# Span

Ƭ Span: RowsSpan | ColumnsSpan

Defined in src/Span.ts:6 (opens new window)

license Copyright (c) 2025 Handsoncode. All rights reserved.


# TranslatableErrorType

Ƭ TranslatableErrorType: Exclude‹ErrorType, LIC

Defined in src/Cell.ts:51 (opens new window)

# Variables

# DATE_SEPARATOR_REGEXP Const

DATE_SEPARATOR_REGEXP: RegExp‹› = new RegExp('[ /.-]')

Defined in src/DateTimeDefault.ts:13 (opens new window)


# HOURS_PER_DAY Const

HOURS_PER_DAY: 24 = 24

Defined in src/DateTimeHelper.ts:15 (opens new window)


# LCID_CURRENCY_TAG Const

LCID_CURRENCY_TAG: RegExp‹› = /[$[^-]]+-/

Defined in src/format/format.ts:28 (opens new window)

Detects Excel LCID-tagged currency tags ([$SYMBOL-LCID] with a non-empty SYMBOL portion). Shared by defaultStringifyDateTime and defaultStringifyDuration so a format string carrying such a tag short- circuits both date and duration dispatch and falls through to the number formatter (or the user-supplied stringifyCurrency callback).

The pattern is intentionally unanchored: any occurrence of [$SYMBOL- in the format string triggers the guard. Excel does not mix date/time tokens with a currency tag in the same format string, so a mid-string match cannot misclassify a legitimate composite — every observed format string with a currency tag is currency-only.


# MINUTES_PER_HOUR Const

MINUTES_PER_HOUR: 60 = 60

Defined in src/DateTimeHelper.ts:14 (opens new window)


# NOT_FOUND Const

NOT_FOUND: -1 = -1

Defined in src/Lookup/AdvancedFind.ts:19 (opens new window)


# QUICK_CHECK_REGEXP Const

QUICK_CHECK_REGEXP: RegExp‹› = new RegExp('[1]+[ap]?m?$')

Defined in src/DateTimeDefault.ts:11 (opens new window)


# SECONDS_PER_MINUTE Const

SECONDS_PER_MINUTE: 60 = 60

Defined in src/DateTimeHelper.ts:13 (opens new window)


# SECONDS_PRECISION Const

SECONDS_PRECISION: 1000 = 1000

Defined in src/DateTimeDefault.ts:15 (opens new window)


# TIME_FORMAT_SECONDS_ITEM_REGEXP Const

TIME_FORMAT_SECONDS_ITEM_REGEXP: RegExp‹› = new RegExp('^ss(\.(s+|0+))?$')

Defined in src/DateTimeDefault.ts:9 (opens new window)


# TIME_SEPARATOR Const

TIME_SEPARATOR: ":" = ":"

Defined in src/DateTimeDefault.ts:14 (opens new window)


# WHITESPACE_REGEXP Const

WHITESPACE_REGEXP: RegExp‹› = new RegExp('\s+')

Defined in src/DateTimeDefault.ts:12 (opens new window)


# WRONG_RANGE_SIZE Const

WRONG_RANGE_SIZE: "AbsoluteCellRange: Wrong range size" = "AbsoluteCellRange: Wrong range size"

Defined in src/AbsoluteCellRange.ts:22 (opens new window)


# _notified Let

_notified: boolean = false

Defined in src/helpers/licenseKeyValidator.ts:43 (opens new window)


# _rl Const

_rl: "length" = "length"

Defined in src/helpers/licenseKeyHelper.ts:9 (opens new window)

license Copyright (c) 2025 Handsoncode. All rights reserved.


# dateFormatRegex Const

dateFormatRegex: RegExp‹› = /(\.|dd|DD|d|D|mm|MM|m|M|YYYY|YY|yyyy|yy|HH|hh|H|h|ss(.(0+|s+))?|s|AM/PM|am/pm|A/P|a/p|[mm]|[MM]|[hh]|[HH])/g

Defined in src/format/parser.ts:8 (opens new window)


# defaultLanguage Const

defaultLanguage: string = Config.defaultConfig.language

Defined in src/index.ts:108 (opens new window)


# memoizedParseDateFormat Const

memoizedParseDateFormat: (Anonymous function) = memoize(parseDateFormat)

Defined in src/DateTimeDefault.ts:17 (opens new window)


# memoizedParseTimeFormat Const

memoizedParseTimeFormat: (Anonymous function) = memoize(parseTimeFormat)

Defined in src/DateTimeDefault.ts:16 (opens new window)


# numDays Const

numDays: number[] = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]

Defined in src/DateTimeHelper.ts:10 (opens new window)


# numberFormatRegex Const

numberFormatRegex: RegExp‹› = /(\.|"[^"]"|[#0]+(.[#0])?|%)/g

Defined in src/format/parser.ts:9 (opens new window)


# prefSumDays Const

prefSumDays: number[] = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334]

Defined in src/DateTimeHelper.ts:11 (opens new window)


# privatePool Const

privatePool: WeakMap‹Config, object› = new WeakMap()

Defined in src/Config.ts:27 (opens new window)

# Functions

# CellValueTypeOrd Const

CellValueTypeOrd(arg: CellValueType): number

Defined in src/Cell.ts:97 (opens new window)

Parameters:

Name Type
arg CellValueType

Returns: number


# _cp Const

_cp(v: any): number

Defined in src/helpers/licenseKeyHelper.ts:14 (opens new window)

Parameters:

Name Type
v any

Returns: number


# _hd Const

_hd(v: any): number

Defined in src/helpers/licenseKeyHelper.ts:10 (opens new window)

Parameters:

Name Type
v any

Returns: number


# _nm Const

_nm(v: any): string

Defined in src/helpers/licenseKeyHelper.ts:12 (opens new window)

Parameters:

Name Type
v any

Returns: string


# _pi Const

_pi(v: any): number

Defined in src/helpers/licenseKeyHelper.ts:11 (opens new window)

Parameters:

Name Type
v any

Returns: number


# _ss Const

_ss(v: any, s: any, l: any): any

Defined in src/helpers/licenseKeyHelper.ts:13 (opens new window)

Parameters:

Name Type
v any
s any
l any

Returns: any


# absoluteSheetReference Const

absoluteSheetReference(address: AddressWithSheet, baseAddress: SimpleCellAddress): number

Defined in src/Cell.ts:222 (opens new window)

Parameters:

Name Type
address AddressWithSheet
baseAddress SimpleCellAddress

Returns: number


# absolutizeDependencies Const

absolutizeDependencies(deps: RelativeDependency[], baseAddress: SimpleCellAddress): CellDependency[]

Defined in src/absolutizeDependencies.ts:17 (opens new window)

Converts dependencies from maybe relative addressing to absolute addressing.

Parameters:

Name Type Description
deps RelativeDependency[] list of addresses in R0C0 format
baseAddress SimpleCellAddress base address with regard to which make a convertion

Returns: CellDependency[]


# addressKey Const

addressKey(address: SimpleCellAddress): string

Defined in src/Cell.ts:209 (opens new window)

Parameters:

Name Type
address SimpleCellAddress

Returns: string


# arraySizeForBinaryOp

arraySizeForBinaryOp(leftArraySize: ArraySize, rightArraySize: ArraySize): ArraySize

Defined in src/ArraySize.ts:34 (opens new window)

Parameters:

Name Type
leftArraySize ArraySize
rightArraySize ArraySize

Returns: ArraySize


# arraySizeForUnaryOp

arraySizeForUnaryOp(arraySize: ArraySize): ArraySize

Defined in src/ArraySize.ts:38 (opens new window)

Parameters:

Name Type
arraySize ArraySize

Returns: ArraySize


# buildColumnSearchStrategy

buildColumnSearchStrategy(dependencyGraph: DependencyGraph, config: Config, statistics: Statistics): ColumnSearchStrategy

Defined in src/Lookup/SearchStrategy.ts:63 (opens new window)

Parameters:

Name Type
dependencyGraph DependencyGraph
config Config
statistics Statistics

Returns: ColumnSearchStrategy


# checkKeySchema

checkKeySchema(v: any): boolean

Defined in src/helpers/licenseKeyHelper.ts:20 (opens new window)

Parameters:

Name Type
v any

Returns: boolean


# checkLicenseKeyValidity

checkLicenseKeyValidity(licenseKey: string): LicenseKeyValidityState

Defined in src/helpers/licenseKeyValidator.ts:51 (opens new window)

Checks if the provided license key is grammatically valid or not expired.

Parameters:

Name Type Description
licenseKey string The license key to check.

Returns: LicenseKeyValidityState

Returns the checking state.


# collatorFromConfig

collatorFromConfig(config: Config): Collator

Defined in src/StringHelper.ts:8 (opens new window)

Parameters:

Name Type
config Config

Returns: Collator


# configCheckIfParametersNotInConflict

configCheckIfParametersNotInConflict(...params: object[]): void

Defined in src/ArgumentSanitization.ts:57 (opens new window)

Parameters:

Name Type
...params object[]

Returns: void


# configValueFromParam

configValueFromParam(inputValue: any, expectedType: string | string[], paramName: ConfigParamsList): any

Defined in src/ArgumentSanitization.ts:16 (opens new window)

Parameters:

Name Type
inputValue any
expectedType string | string[]
paramName ConfigParamsList

Returns: any


# configValueFromParamCheck

configValueFromParamCheck(inputValue: any, typeCheck: function, expectedType: string, paramName: ConfigParamsList): any

Defined in src/ArgumentSanitization.ts:47 (opens new window)

Parameters:

inputValue: any

typeCheck: function

▸ (object: any): boolean

Parameters:

Name Type
object any

expectedType: string

paramName: ConfigParamsList

Returns: any


# countChars

countChars(text: string, char: string): number

Defined in src/format/format.ts:76 (opens new window)

Parameters:

Name Type
text string
char string

Returns: number


# createTokens

createTokens(regexTokens: RegExpExecArray[], str: string): FormatToken[]

Defined in src/format/parser.ts:78 (opens new window)

Parameters:

Name Type
regexTokens RegExpExecArray[]
str string

Returns: FormatToken[]


# dayToMonth

dayToMonth(dayOfYear: number): number

Defined in src/DateTimeHelper.ts:270 (opens new window)

Parameters:

Name Type
dayOfYear number

Returns: number


# defaultParseToDate

defaultParseToDate(dateItems: string[], dateFormat: Maybe‹string›): MaybeSimpleDate

Defined in src/DateTimeDefault.ts:137 (opens new window)

Parses a date value from a string if the string matches the given date format.

Parameters:

Name Type
dateItems string[]
dateFormat Maybe‹string›

Returns: MaybeSimpleDate


# defaultParseToDateTime

defaultParseToDateTime(text: string, dateFormat: Maybe‹string›, timeFormat: Maybe‹string›): MaybeDateTime

Defined in src/DateTimeDefault.ts:30 (opens new window)

Parses a DateTime value from a string if the string matches the given date format and time format.

Idea for more readable implementation:

  • divide string into parts by a regexp [date_regexp]? [time_regexp]? [ampm_regexp]?
  • start by finding the time part, because it is unambiguous '([0-9]+:[0-9:.]+ ?[ap]?m?)$', before it is the date part
  • OR split by spaces - last segment is ampm token, second to last is time (with or without ampm), rest is date If applied:
  • date parsing might work differently after these changes but still according to the docs
  • make sure to test edge cases like timeFormats: ['hh', 'ss.ss'] etc, string: '01-01-2019 AM', 'PM'

Parameters:

Name Type
text string
dateFormat Maybe‹string›
timeFormat Maybe‹string›

Returns: MaybeDateTime


# defaultParseToTime

defaultParseToTime(timeItems: string[], timeFormat: Maybe‹string›): MaybeSimpleTime

Defined in src/DateTimeDefault.ts:82 (opens new window)

Parses a time value from a string if the string matches the given time format.

Parameters:

Name Type
timeItems string[]
timeFormat Maybe‹string›

Returns: MaybeSimpleTime


# defaultStringifyCurrency

defaultStringifyCurrency(_value: number, _formatArg: string): Maybe‹string›

Defined in src/format/format.ts:342 (opens new window)

Default implementation of the stringifyCurrency config option.

Returning undefined instructs the formatter to fall through to the built-in number formatter, preserving HyperFormula's zero-dependency default behavior. Replace this default by setting the stringifyCurrency config option.

Parameters:

Name Type Description
_value number the numeric value to format (unused in default).
_formatArg string the format string passed to TEXT (unused in default).

Returns: Maybe‹string›

undefined — caller should fall through to the built-in formatter.


# defaultStringifyDateTime

defaultStringifyDateTime(dateTime: SimpleDateTime, formatArg: string): Maybe‹string›

Defined in src/format/format.ts:238 (opens new window)

Default stringifyDateTime callback — formats a date/time value against an Excel-style format string (e.g. YYYY-MM-DD HH:mm:ss).

Returns undefined for format strings that are not date/time formats so the dispatcher in format() can fall through to parseForNumberFormat (or to a user-supplied stringifyCurrency callback for currency-tagged formats).

LCID currency-tag guard — explicitly returns undefined for Excel currency tags [$SYMBOL-LCID] (non-empty SYMBOL portion). Without the guard, parseForDateTimeFormat greedily consumes letters like D/M/S/Y/H inside the currency code (e.g. D in USD, H in CHF, M+D in AMD), mangling the output of an [$USD-409] #,##0.00 format into [$US9-409] #,##0.00 because D is read as a day token. The pre-HF-24 behaviour was to mis-format; the guarded return is the deliberate correction, not a regression. Bit-for-bit compatibility is preserved for every non-currency format (dates, durations, $#,##0.00, etc.).

The guard pattern (/\[\$[^\-\]]+-/) requires ≥1 character between [$ and - so it distinguishes currency tags ([$USD-409], [$€-2]) from Excel's locale-only modifier ([$-409], [$-F800]), which is valid on date/time formats and must continue to flow through this function.

Parameters:

Name Type Description
dateTime SimpleDateTime parsed date/time value to render
formatArg string Excel-style format string

Returns: Maybe‹string›

formatted string, or undefined to defer to the next dispatch step


# defaultStringifyDuration

defaultStringifyDuration(time: SimpleTime, formatArg: string): Maybe‹string›

Defined in src/format/format.ts:146 (opens new window)

Default stringifyDuration callback — formats a duration value against an Excel-style time format string (e.g. [hh]:mm:ss).

Returns undefined for format strings that are not duration formats so the dispatcher in format() can fall through to other handlers.

LCID currency-tag guard — sibling to the same guard in defaultStringifyDateTime; explicitly returns undefined for Excel currency tags [$SYMBOL-LCID] because the SYMBOL portion contains duration-token letters (H in CHF/HUF, m in AMD/HMD) that parseForDateTimeFormat would otherwise interpret as time tokens and mangle the output. See defaultStringifyDateTime for the full symbol-vs-locale-modifier rationale and the historical pre-HF-24 behaviour the guard corrects.

Parameters:

Name Type Description
time SimpleTime parsed duration value to render
formatArg string Excel-style format string

Returns: Maybe‹string›

formatted string, or undefined to defer to the next dispatch step


# doesContainRelativeReferences Const

doesContainRelativeReferences(ast: Ast): boolean

Defined in src/NamedExpressions.ts:299 (opens new window)

Parameters:

Name Type
ast Ast

Returns: boolean


# doesItLookLikeADateTimeQuickCheck

doesItLookLikeADateTimeQuickCheck(text: string): boolean

Defined in src/DateTimeDefault.ts:222 (opens new window)

If this function returns false, the string is not parsable as a date time. Otherwise, it might be. This is a quick check that is used to avoid running the more expensive parsing operations.

Parameters:

Name Type
text string

Returns: boolean


# empty

emptyT›(): IterableIterator‹T›

Defined in src/generatorUtils.ts:8 (opens new window)

Type parameters:

T

Returns: IterableIterator‹T›


# equalSimpleCellAddress Const

equalSimpleCellAddress(left: SimpleCellAddress, right: SimpleCellAddress): boolean

Defined in src/Cell.ts:226 (opens new window)

Parameters:

Name Type
left SimpleCellAddress
right SimpleCellAddress

Returns: boolean


# extractTime

extractTime(v: any): number

Defined in src/helpers/licenseKeyHelper.ts:16 (opens new window)

Parameters:

Name Type
v any

Returns: number


# filterDependenciesOutOfScope Const

filterDependenciesOutOfScope(deps: CellDependency[]): CellDependency[]

Defined in src/absolutizeDependencies.ts:21 (opens new window)

Parameters:

Name Type
deps CellDependency[]

Returns: CellDependency[]


# findBoundaries

findBoundaries(sheet: Sheet): SheetBoundaries

Defined in src/Sheet.ts:49 (opens new window)

Returns actual width, height and fill ratio of a sheet

Parameters:

Name Type Description
sheet Sheet two-dimmensional array sheet representation

Returns: SheetBoundaries


# findInOrderedArray

findInOrderedArray(key: number, values: number[], handlingMisses: "lowerBound" | "upperBound"): number

Defined in src/Lookup/ColumnIndex.ts:339 (opens new window)

Parameters:

Name Type Default
key number -
values number[] -
handlingMisses "lowerBound" | "upperBound" "upperBound"

Returns: number


# first

firstT›(iterable: IterableIterator‹T›): Maybe‹T›

Defined in src/generatorUtils.ts:22 (opens new window)

Type parameters:

T

Parameters:

Name Type
iterable IterableIterator‹T›

Returns: Maybe‹T›


# format

format(value: number, formatArg: string, config: Config, dateHelper: DateTimeHelper): RawScalarValue

Defined in src/format/format.ts:30 (opens new window)

Parameters:

Name Type
value number
formatArg string
config Config
dateHelper DateTimeHelper

Returns: RawScalarValue


# formatDate

formatDate(date: Date): string

Defined in src/helpers/licenseKeyValidator.ts:91 (opens new window)

Formats a Date instance to hard-coded format MMMM DD, YYYY.

Parameters:

Name Type Description
date Date The date to format.

Returns: string


# formatToken

formatToken(type: TokenType, value: string): FormatToken

Defined in src/format/parser.ts:22 (opens new window)

Parameters:

Name Type
type TokenType
value string

Returns: FormatToken


# getCellType Const

getCellType(vertex: Maybe‹CellVertex›, address: SimpleCellAddress): CellType

Defined in src/Cell.ts:61 (opens new window)

Parameters:

Name Type
vertex Maybe‹CellVertex›
address SimpleCellAddress

Returns: CellType


# getCellValueDetailedType Const

getCellValueDetailedType(cellValue: InterpreterValue): CellValueDetailedType

Defined in src/Cell.ts:133 (opens new window)

Parameters:

Name Type
cellValue InterpreterValue

Returns: CellValueDetailedType


# getCellValueFormat Const

getCellValueFormat(cellValue: InterpreterValue): string | undefined

Defined in src/Cell.ts:141 (opens new window)

Parameters:

Name Type
cellValue InterpreterValue

Returns: string | undefined


# getCellValueType Const

getCellValueType(cellValue: InterpreterValue): CellValueType

Defined in src/Cell.ts:113 (opens new window)

Parameters:

Name Type
cellValue InterpreterValue

Returns: CellValueType


# getDefaultConfig

getDefaultConfig(): ConfigParams

Defined in src/Config.ts:354 (opens new window)

Returns: ConfigParams


# getFullConfigFromPartial

getFullConfigFromPartial(partialConfig: Partial‹ConfigParams›): ConfigParams

Defined in src/Config.ts:340 (opens new window)

Parameters:

Name Type
partialConfig Partial‹ConfigParams

Returns: ConfigParams


# instanceOfSimpleDate

instanceOfSimpleDate(obj: any): obj is SimpleDate

Defined in src/DateTimeHelper.ts:34 (opens new window)

Parameters:

Name Type
obj any

Returns: obj is SimpleDate


# instanceOfSimpleTime

instanceOfSimpleTime(obj: any): obj is SimpleTime

Defined in src/DateTimeHelper.ts:43 (opens new window)

Parameters:

Name Type
obj any

Returns: obj is SimpleTime


# invalidSimpleColumnAddress Const

invalidSimpleColumnAddress(address: SimpleColumnAddress): boolean

Defined in src/Cell.ts:190 (opens new window)

Parameters:

Name Type
address SimpleColumnAddress

Returns: boolean


# invalidSimpleRowAddress Const

invalidSimpleRowAddress(address: SimpleRowAddress): boolean

Defined in src/Cell.ts:181 (opens new window)

Parameters:

Name Type
address SimpleRowAddress

Returns: boolean


# isBoolean

isBoolean(text: string): boolean

Defined in src/CellContentParser.ts:81 (opens new window)

Parameters:

Name Type
text string

Returns: boolean


# isColOrRowInvalid Const

isColOrRowInvalid(address: SimpleCellAddress): boolean

Defined in src/Cell.ts:203 (opens new window)

Checks if the column or row id is negative.

Parameters:

Name Type
address SimpleCellAddress

Returns: boolean


# isError

isError(text: string, errorMapping: Record‹string, ErrorType›): boolean

Defined in src/CellContentParser.ts:86 (opens new window)

Parameters:

Name Type
text string
errorMapping Record‹string, ErrorType

Returns: boolean


# isEscapeToken

isEscapeToken(token: RegExpExecArray): boolean

Defined in src/format/parser.ts:159 (opens new window)

Parameters:

Name Type
token RegExpExecArray

Returns: boolean


# isFormula

isFormula(text: string): boolean

Defined in src/CellContentParser.ts:77 (opens new window)

Checks whether string looks like formula or not.

Parameters:

Name Type Description
text string formula

Returns: boolean


# isNonnegativeInteger

isNonnegativeInteger(x: number): boolean

Defined in src/CrudOperations.ts:657 (opens new window)

Parameters:

Name Type
x number

Returns: boolean


# isPositiveInteger

isPositiveInteger(x: number): boolean

Defined in src/CrudOperations.ts:653 (opens new window)

Parameters:

Name Type
x number

Returns: boolean


# isRowOrColumnRange

isRowOrColumnRange(leftCorner: SimpleCellAddress, width: number, height: number): boolean

Defined in src/Operations.ts:1100 (opens new window)

Parameters:

Name Type
leftCorner SimpleCellAddress
width number
height number

Returns: boolean


# isSimpleCellAddress

isSimpleCellAddress(obj: unknown): obj is SimpleCellAddress

Defined in src/Cell.ts:214 (opens new window)

Checks if the object is a simple cell address.

Parameters:

Name Type
obj unknown

Returns: obj is SimpleCellAddress


# isSimpleCellRange

isSimpleCellRange(val: unknown): val is SimpleCellRange

Defined in src/AbsoluteCellRange.ts:34 (opens new window)

Type guard that checks if an object is a valid SimpleCellRange.

Parameters:

Name Type Description
val unknown Value to check

Returns: val is SimpleCellRange

True if and only if the object is a valid SimpleCellRange


# matchDateFormat

matchDateFormat(str: string): RegExpExecArray[]

Defined in src/format/parser.ts:40 (opens new window)

Parameters:

Name Type
str string

Returns: RegExpExecArray[]


# matchNumberFormat

matchNumberFormat(str: string): RegExpExecArray[]

Defined in src/format/parser.ts:61 (opens new window)

Finds one numeric mask and its surrounding literals and percent operators. Keeping quotes and escapes intact prevents literal percent signs from scaling the value. Later numeric masks remain free text, as in the existing formatter.

Parameters:

Name Type
str string

Returns: RegExpExecArray[]


# memoize

memoizeT›(fn: function): (Anonymous function)

Defined in src/DateTimeDefault.ts:229 (opens new window)

Function memoization for improved performance.

Type parameters:

T

Parameters:

fn: function

▸ (arg: string): T

Parameters:

Name Type
arg string

Returns: (Anonymous function)


# movedSimpleCellAddress Const

movedSimpleCellAddress(address: SimpleCellAddress, toSheet: number, toRight: number, toBottom: number): SimpleCellAddress

Defined in src/Cell.ts:205 (opens new window)

Parameters:

Name Type
address SimpleCellAddress
toSheet number
toRight number
toBottom number

Returns: SimpleCellAddress


# normalizeAddedIndexes

normalizeAddedIndexes(indexes: ColumnRowIndex[]): ColumnRowIndex[]

Defined in src/Operations.ts:1068 (opens new window)

Parameters:

Name Type
indexes ColumnRowIndex[]

Returns: ColumnRowIndex[]


# normalizeRemovedIndexes

normalizeRemovedIndexes(indexes: ColumnRowIndex[]): ColumnRowIndex[]

Defined in src/Operations.ts:1037 (opens new window)

Parameters:

Name Type
indexes ColumnRowIndex[]

Returns: ColumnRowIndex[]


# numberFormat

numberFormat(tokens: FormatToken[], value: number): RawScalarValue

Defined in src/format/format.ts:84 (opens new window)

Renders a numeric mask after scaling once for each active percent operator. Scaling precedes rounding and leaves custom formatter callbacks unaffected.

Parameters:

Name Type
tokens FormatToken[]
value number

Returns: RawScalarValue


# numberToSimpleTime

numberToSimpleTime(arg: number): SimpleTime

Defined in src/DateTimeHelper.ts:304 (opens new window)

Parameters:

Name Type
arg number

Returns: SimpleTime


# objectDestroy

objectDestroy(object: any): void

Defined in src/Destroy.ts:6 (opens new window)

license Copyright (c) 2025 Handsoncode. All rights reserved.

Parameters:

Name Type
object any

Returns: void


# offsetMonth

offsetMonth(date: SimpleDate, offset: number): SimpleDate

Defined in src/DateTimeHelper.ts:286 (opens new window)

Parameters:

Name Type
date SimpleDate
offset number

Returns: SimpleDate


# padLeft

padLeft(number: number | string, size: number): string

Defined in src/format/format.ts:60 (opens new window)

Parameters:

Name Type
number number | string
size number

Returns: string


# padRight

padRight(number: number | string, size: number): string

Defined in src/format/format.ts:68 (opens new window)

Parameters:

Name Type
number number | string
size number

Returns: string


# parse

parse(str: string): FormatExpression

Defined in src/format/parser.ts:149 (opens new window)

Parameters:

Name Type
str string

Returns: FormatExpression


# parseDateFormat

parseDateFormat(dateFormat: string): object

Defined in src/DateTimeDefault.ts:206 (opens new window)

Parses a date format string into a format object.

Parameters:

Name Type
dateFormat string

Returns: object

  • dayItem: number

  • itemsCount: number

  • longYearItem: number

  • monthItem: number

  • shortYearItem: number


# parseForDateTimeFormat

parseForDateTimeFormat(str: string): MaybeFormatExpression

Defined in src/format/parser.ts:108 (opens new window)

Parameters:

Name Type
str string

Returns: MaybeFormatExpression


# parseForNumberFormat

parseForNumberFormat(str: string): MaybeFormatExpression

Defined in src/format/parser.ts:126 (opens new window)

Tokenizes a numeric format, distinguishing percent operators from literals. Percent escapes and quoted literals are decoded only on the number path; date tokens and unrelated backslash escapes retain their representation.

Parameters:

Name Type
str string

Returns: MaybeFormatExpression


# parseTimeFormat

parseTimeFormat(timeFormat: string): object

Defined in src/DateTimeDefault.ts:186 (opens new window)

Parses a time format string into a format object.

Parameters:

Name Type
timeFormat string

Returns: object

  • hourItem: number

  • itemsCount: number

  • minuteItem: number

  • secondItem: number


# postMortem

postMortem(method: any): (Anonymous function)

Defined in src/Destroy.ts:16 (opens new window)

Parameters:

Name Type
method any

Returns: (Anonymous function)


# replacer

replacer(key: string, val: any): any

Defined in src/errors.ts:134 (opens new window)

Parameters:

Name Type
key string
val any

Returns: any


# roundToEpsilon

roundToEpsilon(arg: number, epsilon: number): number

Defined in src/DateTimeHelper.ts:299 (opens new window)

Parameters:

Name Type Default
arg number -
epsilon number 1

Returns: number


# roundToNearestSecond

roundToNearestSecond(arg: number): number

Defined in src/DateTimeHelper.ts:295 (opens new window)

Parameters:

Name Type
arg number

Returns: number


# simpleCellAddress Const

simpleCellAddress(sheet: number, col: number, row: number): SimpleCellAddress

Defined in src/Cell.ts:198 (opens new window)

Parameters:

Name Type
sheet number
col number
row number

Returns: SimpleCellAddress


# simpleCellRange Const

simpleCellRange(start: SimpleCellAddress, end: SimpleCellAddress): object

Defined in src/AbsoluteCellRange.ts:43 (opens new window)

Parameters:

Name Type
start SimpleCellAddress
end SimpleCellAddress

Returns: object


# simpleColumnAddress Const

simpleColumnAddress(sheet: number, col: number): SimpleColumnAddress

Defined in src/Cell.ts:188 (opens new window)

Parameters:

Name Type
sheet number
col number

Returns: SimpleColumnAddress


# simpleRowAddress Const

simpleRowAddress(sheet: number, row: number): SimpleRowAddress

Defined in src/Cell.ts:179 (opens new window)

Parameters:

Name Type
sheet number
row number

Returns: SimpleRowAddress


# split

splitT›(iterable: IterableIterator‹T›): object

Defined in src/generatorUtils.ts:11 (opens new window)

Type parameters:

T

Parameters:

Name Type
iterable IterableIterator‹T›

Returns: object

  • rest: IterableIterator‹T›

  • value? : T


# timeToNumber

timeToNumber(time: SimpleTime): number

Defined in src/DateTimeHelper.ts:315 (opens new window)

Parameters:

Name Type
time SimpleTime

Returns: number


# toBasisEU

toBasisEU(date: SimpleDate): SimpleDate

Defined in src/DateTimeHelper.ts:319 (opens new window)

Parameters:

Name Type
date SimpleDate

Returns: SimpleDate


# truncateDayInMonth

truncateDayInMonth(date: SimpleDate): SimpleDate

Defined in src/DateTimeHelper.ts:291 (opens new window)

Parameters:

Name Type
date SimpleDate

Returns: SimpleDate


# validateArgToType

validateArgToType(inputValue: any, expectedType: string, paramName: string): void

Defined in src/ArgumentSanitization.ts:81 (opens new window)

Parameters:

Name Type
inputValue any
expectedType string
paramName string

Returns: void


# validateAsSheet

validateAsSheet(sheet: Sheet): void

Defined in src/Sheet.ts:33 (opens new window)

Parameters:

Name Type
sheet Sheet

Returns: void


# validateNumberToBeAtLeast

validateNumberToBeAtLeast(value: number, paramName: string, minimum: number): void

Defined in src/ArgumentSanitization.ts:34 (opens new window)

Parameters:

Name Type
value number
paramName string
minimum number

Returns: void


# validateNumberToBeAtMost

validateNumberToBeAtMost(value: number, paramName: string, maximum: number): void

Defined in src/ArgumentSanitization.ts:40 (opens new window)

Parameters:

Name Type
value number
paramName string
maximum number

Returns: void

# Object literals

# CellValueDetailedType Const

#CellValueDetailedType: object

Defined in src/Cell.ts:95 (opens new window)


# CellValueType Const

#CellValueType: object

Defined in src/Cell.ts:92 (opens new window)


# consoleMessages Const

#consoleMessages: object

Defined in src/helpers/licenseKeyValidator.ts:36 (opens new window)

List of all not valid messages which may occur.

# expired

expired(__namedParameters: object): string

Defined in src/helpers/licenseKeyValidator.ts:38 (opens new window)

Parameters:

__namedParameters: object

Name Type
keyValidityDate string

Returns: string

# invalid

invalid(): string

Defined in src/helpers/licenseKeyValidator.ts:37 (opens new window)

Returns: string

# missing

missing(): string

Defined in src/helpers/licenseKeyValidator.ts:40 (opens new window)

Returns: string


# maxDate Const

#maxDate: object

Defined in src/DateTimeHelper.ts:51 (opens new window)

# day

day: number = 31

Defined in src/DateTimeHelper.ts:51 (opens new window)

# month

month: number = 12

Defined in src/DateTimeHelper.ts:51 (opens new window)

# year

year: number = 9999

Defined in src/DateTimeHelper.ts:51 (opens new window)


  1. 0-9/.\-: ↩︎