Skip to content
Permalink
Browse files

feat(config): make the setters chainable

  • Loading branch information
RomkeVdMeulen committed Nov 22, 2019
1 parent c4e5fe2 commit bd118a61c9cb283cbb9db36712660a0362f5994c
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/config.ts
@@ -17,10 +17,12 @@ export class GlobalValidationConfiguration {
*/
public customValidator(type: { new (...args: any[]): Validator }) {
this.validatorType = type;
return this;
}

public defaultValidationTrigger(trigger: validateTrigger) {
this.validationTrigger = trigger;
return this;
}

public getDefaultValidationTrigger() {

0 comments on commit bd118a6

Please sign in to comment.
You can’t perform that action at this time.