Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Type Mismatch in cell.col and cell.row with Type Hint as String Instead of Expected Number #2719

Open
ashc0 opened this issue Mar 5, 2024 · 0 comments 路 May be fixed by #2720
Open

[BUG] Type Mismatch in cell.col and cell.row with Type Hint as String Instead of Expected Number #2719

ashc0 opened this issue Mar 5, 2024 · 0 comments 路 May be fixed by #2720

Comments

@ashc0
Copy link

ashc0 commented Mar 5, 2024

馃悰 Bug Report

I've encountered a type mismatch issue where the type hints for cell.col and cell.row are indicated as string instead of the expected number.

Lib version: 4.4.0

Steps To Reproduce

import ExcelJs from 'exceljs';

export function printTypes() {
  const workbook = new ExcelJs.Workbook();
  const worksheet = workbook.addWorksheet('Sheet1');
  worksheet.addRow([1, 2, 3, 4, 5]);
  worksheet.eachRow(row => {
    row.eachCell(cell => {
      console.log('typeof Address.col:', typeof cell.col);
      console.log('typeof Address.row:', typeof cell.row);
    });
  })
}

ejs1
ejs2
ejs-brow

@ashc0 ashc0 linked a pull request Mar 5, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant