Skip to content

Commit

Permalink
feat(config): make the setters chainable
Browse files Browse the repository at this point in the history
  • Loading branch information
RomkeVdMeulen committed Nov 22, 2019
1 parent c4e5fe2 commit bd118a6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit bd118a6

Please sign in to comment.