Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save andevsoftware/7642a5886229f1c571f5 to your computer and use it in GitHub Desktop.
Save andevsoftware/7642a5886229f1c571f5 to your computer and use it in GitHub Desktop.
TSValidate.Validators.Identical
import Identical = TSValidate.Validators.Identical;
validator.add('terms', new Identical()
.accepted('yes')
.message('Terms and conditions must be accepted')
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment