Skip to content

Commit

Permalink
fix(ValidationRules): satisfies callback arg required
Browse files Browse the repository at this point in the history
fixes #426
  • Loading branch information
jdanyow committed Mar 25, 2017
1 parent dd9ba18 commit 258615e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/implementation/validation-rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export class FluentRuleCustomizer<TObject, TValue> {
* Will be called with two arguments, the property value and the object.
* Should return a boolean or a Promise that resolves to a boolean.
*/
public satisfies(condition: (value: TValue, object?: TObject) => boolean | Promise<boolean>, config?: object) {
public satisfies(condition: (value: TValue, object: TObject) => boolean | Promise<boolean>, config?: object) {
return this.fluentRules.satisfies(condition, config);
}

Expand Down

0 comments on commit 258615e

Please sign in to comment.