Skip to content

Instantly share code, notes, and snippets.

@andevsoftware
Last active March 6, 2016 10:42
Show Gist options
  • Save andevsoftware/62a01f5b387d1806bc85 to your computer and use it in GitHub Desktop.
Save andevsoftware/62a01f5b387d1806bc85 to your computer and use it in GitHub Desktop.
TSValidate.Validators.Between
import Between = TSValidate.Validators.Between;
validator.add('price', new Between()
.minimum(0)
.maximum(100)
.message('The price must be between 0 and 100')
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment