Last active
March 5, 2016 12:52
-
-
Save andevsoftware/44c6ce0dd4f9f8e21372 to your computer and use it in GitHub Desktop.
TSValidate.Validators.InclusionIn
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 InclusionIn = TSValidate.Validators.InclusionIn; | |
validator.add('status', new InclusionIn() | |
.message('The status must 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