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

fix(Skip, Limit): make skip and limit only accept number amounts #75

Merged
merged 1 commit into from
Jun 25, 2019

Conversation

jamesfer
Copy link
Owner

Change the type signature for both skip and limit to prevent them from accepting a string argument.
While passing in a string would still functionally work, it is probably a bug as argument only makes
sense with a numeric value.

BREAKING CHANGE: The type of skip and limit clauses no longer accept a string. This will only effect
typescript users, there is no breaking change for javascript users.

Change the type signature for both skip and limit to prevent them from accepting a string argument.
While passing in a string would still functionally work, it is probably a bug as argument only makes
sense with a numeric value.

BREAKING CHANGE: The type of skip and limit clauses no longer accept a string. This will only effect
typescript users, there is no breaking change for javascript users.
@jamesfer jamesfer force-pushed the fix-set-limit-type-signature branch from 6162f37 to cfb62c3 Compare June 25, 2019 09:49
@coveralls
Copy link

Coverage Status

Coverage remained the same at 97.725% when pulling cfb62c3 on fix-set-limit-type-signature into 7f6360c on v4.

@jamesfer jamesfer merged commit 945b549 into v4 Jun 25, 2019
@jamesfer jamesfer deleted the fix-set-limit-type-signature branch June 25, 2019 10:18
@jamesfer
Copy link
Owner Author

🎉 This PR is included in version 4.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants