Serialization
Constructors
Section titled “Constructors”constructor
Section titled “constructor”+ new Serialization(dependencyGraph: DependencyGraph, unparser: Unparser, exporter: Exporter): Serialization
Defined in src/Serialization.ts:23
Parameters:
| Name | Type |
|---|---|
dependencyGraph | DependencyGraph |
unparser | Unparser |
exporter | Exporter |
Returns: Serialization
Methods
Section titled “Methods”genericAllSheetsGetter
Section titled “genericAllSheetsGetter”▸ genericAllSheetsGetter‹T›(sheetGetter: function): Record‹string, T›
Defined in src/Serialization.ts:115
Type parameters:
▪ T
Parameters:
▪ sheetGetter: function
▸ (sheet: number): T
Parameters:
| Name | Type |
|---|---|
sheet | number |
Returns: Record‹string, T›
genericSheetGetter
Section titled “genericSheetGetter”▸ genericSheetGetter‹T›(sheet: number, getter: function): T[][]
Defined in src/Serialization.ts:84
Type parameters:
▪ T
Parameters:
▪ sheet: number
▪ getter: function
▸ (address: SimpleCellAddress): T
Parameters:
| Name | Type |
|---|---|
address | SimpleCellAddress |
Returns: T[][]
getAllNamedExpressionsSerialized
Section titled “getAllNamedExpressionsSerialized”▸ getAllNamedExpressionsSerialized(): SerializedNamedExpression[]
Defined in src/Serialization.ts:140
Returns: SerializedNamedExpression[]
getAllSheetsFormulas
Section titled “getAllSheetsFormulas”▸ getAllSheetsFormulas(): Record‹string, Maybe‹string›[][]›
Defined in src/Serialization.ts:132
Returns: Record‹string, Maybe‹string›[][]›
getAllSheetsSerialized
Section titled “getAllSheetsSerialized”▸ getAllSheetsSerialized(): Record‹string, RawCellContent[][]›
Defined in src/Serialization.ts:136
Returns: Record‹string, RawCellContent[][]›
getAllSheetsValues
Section titled “getAllSheetsValues”▸ getAllSheetsValues(): Record‹string, CellValue[][]›
Defined in src/Serialization.ts:128
Returns: Record‹string, CellValue[][]›
getCellFormula
Section titled “getCellFormula”▸ getCellFormula(address: SimpleCellAddress, targetAddress?: SimpleCellAddress): Maybe‹string›
Defined in src/Serialization.ts:42
Parameters:
| Name | Type |
|---|---|
address | SimpleCellAddress |
targetAddress? | SimpleCellAddress |
Returns: Maybe‹string›
getCellHyperlink
Section titled “getCellHyperlink”▸ getCellHyperlink(address: SimpleCellAddress): Maybe‹string›
Defined in src/Serialization.ts:31
Parameters:
| Name | Type |
|---|---|
address | SimpleCellAddress |
Returns: Maybe‹string›
getCellSerialized
Section titled “getCellSerialized”▸ getCellSerialized(address: SimpleCellAddress, targetAddress?: SimpleCellAddress): RawCellContent
Defined in src/Serialization.ts:64
Parameters:
| Name | Type |
|---|---|
address | SimpleCellAddress |
targetAddress? | SimpleCellAddress |
Returns: RawCellContent
getCellValue
Section titled “getCellValue”▸ getCellValue(address: SimpleCellAddress): CellValue
Defined in src/Serialization.ts:68
Parameters:
| Name | Type |
|---|---|
address | SimpleCellAddress |
Returns: CellValue
getRawValue
Section titled “getRawValue”▸ getRawValue(address: SimpleCellAddress): RawCellContent
Defined in src/Serialization.ts:72
Parameters:
| Name | Type |
|---|---|
address | SimpleCellAddress |
Returns: RawCellContent
getSheetFormulas
Section titled “getSheetFormulas”▸ getSheetFormulas(sheet: number): Maybe‹string›[][]
Defined in src/Serialization.ts:80
Parameters:
| Name | Type |
|---|---|
sheet | number |
Returns: Maybe‹string›[][]
getSheetSerialized
Section titled “getSheetSerialized”▸ getSheetSerialized(sheet: number): RawCellContent[][]
Defined in src/Serialization.ts:124
Parameters:
| Name | Type |
|---|---|
sheet | number |
Returns: RawCellContent[][]
getSheetValues
Section titled “getSheetValues”▸ getSheetValues(sheet: number): CellValue[][]
Defined in src/Serialization.ts:76
Parameters:
| Name | Type |
|---|---|
sheet | number |
Returns: CellValue[][]
withNewConfig
Section titled “withNewConfig”▸ withNewConfig(newConfig: Config, namedExpressions: NamedExpressions): Serialization
Defined in src/Serialization.ts:158
Parameters:
| Name | Type |
|---|---|
newConfig | Config |
namedExpressions | NamedExpressions |
Returns: Serialization