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

Already on GitHub? Sign in to your account

Made TypeScript definitions generic and explicit about undefined #17

Merged
merged 2 commits into from
Aug 17, 2018

Conversation

BrandonWilliamsCS
Copy link
Contributor

The types weren't reaching their potential given the presence of the any type, so I added generics to allow for more context when using a Deque. The generic type is defaulted to any, so this change should be entirely backwards compatible. I tried to accurately reflect when a type could be undefined as well, but that might be worth a look.

I didn't do anything with the version number or anything like that, so let me know if you'd like me to handle that.

@coveralls
Copy link

coveralls commented Jul 26, 2018

Coverage Status

Coverage remained the same at 100.0% when pulling 74bf92f on BrandonWilliamsCS:improve-types into 80a545f on Salakar:master.

@moritzuehling
Copy link

👍 looks good, I did literally the same - except I had forgotten about undefined.

@Salakar Salakar merged commit 584215d into invertase:master Aug 17, 2018
@Salakar
Copy link
Member

Salakar commented Aug 17, 2018

Thanks a bunch for this! Will publish a version shortly to update types.

@Salakar
Copy link
Member

Salakar commented Nov 10, 2018

This is up now on v1.4.0, sorry for the delay and thanks again for this PR 👍

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.

4 participants