Closed SamVerschueren closed 5 years ago
The code looks good. Can you document .optional
in the readme here https://github.com/sindresorhus/ow#predicates ?
Is that the correct place to document this? It's not present on every type. So it's more something that is similar to https://github.com/sindresorhus/ow#owtype.
Added the docs. Feel free to rephrase or if you still want to document it under the Predicates
section, let me know.
No, you're right. That's better and more correct.
I'm super excited about being able to use this!!
Really nice work getting this to work, @SamVerschueren 🎉
This PR introduces the
optional
predicate and closes the attempt in #82.I refactored some things which allows us to add more modifiers in the future. Feedback is more than welcome!
Fixes #58