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