Skip to content

Fixed return type on getRows #1564

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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 14, 2021

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