Created
March 5, 2016 12:34
-
-
Save andevsoftware/f0d761651b5c9d980627 to your computer and use it in GitHub Desktop.
TSValidate.Validators.ExclusionIn
This file contains hidden or 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
| import ExclusionIn = TSValidate.Validators.ExclusionIn; | |
| validator.add('status', new ExclusionIn() | |
| .message('The status must not be A or B') | |
| .domain(['A', 'B']) | |
| ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment