Skip to content

[BUG] TypeScript version doesn't have definition for Worksheet.addConditionalFormatting  #1194

Closed
@romanovma

Description

🐛 Bug Report

I cannot find the way to use addConditionalFormatting() method on a Worksheet in TypeScript.

Lib version: 3.8.1

Steps To Reproduce

    const wb = await workbook.xlsx.readFile(
      `./template.xlsx`
    );

    const mySheet: Worksheet = wb.getWorksheet(1);
    mySheet.addConditionalFormatting({})

    // error TS2339: Property 'addConditionalFormatting' does not exist on type 'Worksheet'.

The expected behaviour:

Since it is supported in JS would be nice to have it in TS as well.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions