Skip to content

Commit b35e9de

Browse files
authored
Merge pull request #1092 from exceljs/f/typings-fix
Fix index.d.ts
2 parents 4d9cddb + 0c4ce91 commit b35e9de

File tree

1 file changed

+20
-6
lines changed

1 file changed

+20
-6
lines changed

index.d.ts

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ export interface CellModel {
386386
text?: string;
387387
hyperlink?: string;
388388
value?: CellValue;
389-
master: Cell;
389+
master: string;
390390
formula?: string;
391391
sharedFormula?: string;
392392
result?: string | number | any;
@@ -405,7 +405,7 @@ export interface Cell extends Style, Address {
405405
readonly text: string;
406406
readonly fullAddress: {
407407
sheetName: string;
408-
address: Address;
408+
address: string;
409409
row: Row;
410410
col: Column;
411411
};
@@ -612,9 +612,22 @@ export interface Column {
612612
* Column letter key
613613
*/
614614
readonly letter: string;
615-
}
615+
readonly number: number;
616+
readonly worksheet: Worksheet;
617+
readonly isCustomWidth: boolean;
618+
readonly headers: string[];
619+
readonly isDefault: boolean;
620+
readonly headerCount: number;
621+
border: Partial<Borders>;
622+
fill: Fill;
623+
numFmt: string
624+
font: Partial<Font>;
625+
alignment: Partial<Alignment>;
626+
protection: Partial<Protection>;
627+
628+
toString(): string
629+
equivalentTo(other: Column): boolean
616630

617-
export interface ColumnExtension extends Partial<Style> {
618631
/**
619632
* indicate the collapsed state based on outlineLevel
620633
*/
@@ -629,8 +642,9 @@ export interface ColumnExtension extends Partial<Style> {
629642
* Iterate over all current cells in this column including empty cells
630643
*/
631644
eachCell(opt: { includeEmpty: boolean }, callback: (cell: Cell, rowNumber: number) => void): void;
632-
}
633645

646+
defn: any; //todo
647+
}
634648
export interface PageSetup {
635649
/**
636650
* Whitespace on the borders of the page. Units are inches.
@@ -1014,7 +1028,7 @@ export interface Worksheet {
10141028
/**
10151029
* Access an individual columns by key, letter and 1-based column number
10161030
*/
1017-
getColumn(indexOrKey: number | string): Partial<Column> & ColumnExtension;
1031+
getColumn(indexOrKey: number | string): Partial<Column>;
10181032

10191033
/**
10201034
* Cut one or more columns (columns to the right are shifted left)

0 commit comments

Comments
 (0)