-
-
Notifications
You must be signed in to change notification settings - Fork 106
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
Add number validator #10
Conversation
Just realised I maybe should've used |
Updated Should we also add a |
Yeah. It's not useful now, but could be useful when we add the |
👌 |
source/ow.ts
Outdated
// TODO: Modify the stack output to show the original `ow()` call instead of this `throw` statement | ||
throw new ArgumentError(message(value), ow); | ||
} | ||
const m = (value: any, predicate: Predicate) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure about the name m
here. Can't use ow
because it is used at the bottom.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
main
?
Made some changes apart from the number validators. Should I extract them to a different commit to keep the focus of this PR on the number validators? |
Yeah, you can just commit those tweaks directly to master. |
9d6db58
to
cdc96e0
Compare
Pushed the generic changes to master and rebased. Also used |
Super good :) |
Sweet :)! 🍻 |
Feel free to suggest other wording for the inline documentation or error messages.