UNPKG

@sheetxl/models

Version:

Models - A Headless javascript spreadsheet library.

45 lines 1.09 kB
import { CellRangeCoords } from '@sheetxl/common'; /** * Returns a cell range by name. * @remarks * This is case insensitive. */ export interface NamedItemLookup<T = CellRangeCoords> { (name: string): T[] | null; } /** * Defined names are descriptive text that is used to represents a cell, range of cells, formula, or constant value. * * TODO - move to another location */ export interface NamedItem<T = CellRangeCoords> { /** * The name of the defined name. * @remarks * This is the name that is used in formulas. */ name: string; /** * The value of the defined name. * @remarks * This is the value that is used in formulas. */ ref: T[]; /** * The comment for the defined name. */ comment?: string; /** * If true not shown in the ui. */ hidden?: boolean; /** * If scope this will be the sheetName. */ scope?: string; /** * Type of the defined name. (this can be a cellRange or a Table) */ type?: string; } //# sourceMappingURL=NamedItem.d.ts.map