Skip to content

Commit b2dabbd

Browse files
committed
chore(types): optional chart/workbook; need better signatures
1 parent 9b19898 commit b2dabbd

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/helper/modify-chart-helper.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ export default class ModifyChartHelper {
1515
*/
1616
static setChartData = (data: ChartData) => (
1717
element: XMLDocument | Element,
18-
chart: Document,
19-
workbook: Workbook,
18+
chart?: Document,
19+
workbook?: Workbook,
2020
): void => {
2121
const slots = [] as ChartSlot[];
2222
data.series.forEach((series: ChartSeries, s: number) => {
@@ -40,8 +40,8 @@ export default class ModifyChartHelper {
4040
*/
4141
static setChartVerticalLines = (data: ChartData) => (
4242
element: XMLDocument | Element,
43-
chart: Document,
44-
workbook: Workbook,
43+
chart?: Document,
44+
workbook?: Workbook,
4545
): void => {
4646
const slots = [] as ChartSlot[];
4747

@@ -69,8 +69,8 @@ export default class ModifyChartHelper {
6969
*/
7070
static setChartBubbles = (data: ChartData) => (
7171
element: XMLDocument | Element,
72-
chart: Document,
73-
workbook: Workbook,
72+
chart?: Document,
73+
workbook?: Workbook,
7474
): void => {
7575
const slots = [] as ChartSlot[];
7676

0 commit comments

Comments
 (0)