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
IntRange Inclusive #803
Labels
Comments
Yeah, we should add a inclusive range method too. Alternative name: |
Yes please, would be easy to define it type IntClosedRange<Start extends number, End extends number> = IntRange<Start, End> | End |
I think it should be type IntClosedRange<Start extends number, End extends number, Skip extends number> = IntRange<Start, Add<End, 1>, Skip> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
IntRange
type was added in this PR. As mentioned in the documentationThe numbers are created from the given
Start(inclusive) parameter to the given
End(exclusive) parameter.
.Could an option be added to this type that would allow the end parameter to be inclusive? For example,
Upvote & Fund
The text was updated successfully, but these errors were encountered: