From 9f97490a766242c7fe55dbb0a214071eb1be432e Mon Sep 17 00:00:00 2001 From: sdg9670 Date: Mon, 29 Jun 2020 13:25:11 +0900 Subject: [PATCH] edit styleOption in ts and ts update --- index.d.ts | 8 ++++---- package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/index.d.ts b/index.d.ts index 6b1879750..8d7825542 100644 --- a/index.d.ts +++ b/index.d.ts @@ -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 diff --git a/package.json b/package.json index 824f5b3b5..8b5703d3f 100644 --- a/package.json +++ b/package.json @@ -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" } }