Last active
July 31, 2017 01:42
-
-
Save Emilios1995/ec28e8e270107988ed63dcd99e98dff4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const isType = R.curry((type, value) => R.type(value) === type); | |
const rules = { | |
version: [[isType('Number')], 'Version must be a number'], | |
build: [[isType('Number')], 'Build must be a number'], | |
appName: [[isType('String'), 'appName must be a string']] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment