Skip to content

[BUG] 4.1.0 causes TypeScript compilation errors - addRows styleOption should be optional? #1357

@cduff

Description

@cduff

🐛 Bug Report

Upgrading to 4.1.0 results in TypeScript compilation errors for previously working code like:

sheet.addRows(rows);

It looks like the problem was introduced in Added insert rows functionality with new style inherit options. The new TypeScript definition is:

addRows(rows: any[], styleOption: string): void;

Shouldn't styleOption be optional with a default value?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions