Skip to content

Conversation

pmcilwaine
Copy link
Contributor

Summary

This PR updates the typescript definition file to have the correct return type for getRows.

Test plan

As you can see from this file

if (length < 1) return undefined;
when the range is < 1 it will return undefined.

I have also added a unit test to demonstrate that when the range is < 1 it returns undefined

@Siemienik Siemienik self-requested a review February 12, 2021 02:29
Copy link
Member

@Siemienik Siemienik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for great fix :) LGTM 🥇


I'm contributing ExcelJS just for fun. If want you to know something more go into #1500

@Siemienik Siemienik merged commit 410b1be into exceljs:master Feb 14, 2021
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 this pull request may close these issues.

2 participants