Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1193,24 +1193,24 @@ export interface Worksheet {
* Add a couple of Rows by key-value, after the last current row, using the column keys,
* or add a row by contiguous Array (assign to columns A, B & C)
*/
addRow(data: any[] | any, styleOption: string): Row;
addRow(data: any[] | any, styleOption?: string): Row;

/**
* Add multiple rows by providing an array of arrays or key-value pairs
*/
addRows(rows: any[], styleOption: string): void;
addRows(rows: any[], styleOption?: string): void;

/**
* Insert a Row by key-value, at the pos (shifiting down all rows from pos),
* using the column keys, or add a row by contiguous Array (assign to columns A, B & C)
*/
insertRow(pos: number, value: any[] | any, styleOption: string): Row;
insertRow(pos: number, value: any[] | any, styleOption?: string): Row;

/**
* Insert multiple rows at pos (shifiting down all rows from pos)
* by providing an array of arrays or key-value pairs
*/
insertRows(pos: number, values: any[], styleOption: string): void;
insertRows(pos: number, values: any[], styleOption?: string): void;

/**
* Duplicate rows and insert new rows
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,6 @@
"prettier-eslint-cli": "^5.0.0",
"regenerator-runtime": "^0.13.5",
"ts-node": "^8.9.0",
"typescript": "^3.8.3"
"typescript": "^3.9.5"
}
}