Skip to content

Commit

Permalink
Make nullable the options parameter in index.d.ts (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
e-gauthier authored and stuyam committed Sep 5, 2019
1 parent d2955d3 commit 2e1a147
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ interface IHelpers {
}

declare class SimpleReactValidator {
constructor(options: IOptions);
constructor(options?: IOptions);
fields: IObject;
visibleFields: any[];
errorMessages: IObject;
Expand All @@ -62,9 +62,9 @@ declare class SimpleReactValidator {
allValid(): boolean;
fieldValid(field: string): boolean;
purgeFields(): void;
messageWhenPresent(message: any, options: IObject): any;
messageAlways(field: string, message: any, options: IObject): any;
message(field: string, inputValue: any, validations: any, options: IObject): any;
messageWhenPresent(message: any, options?: IObject): any;
messageAlways(field: string, message: any, options?: IObject): any;
message(field: string, inputValue: any, validations: any, options?: IObject): any;
helpers: IHelpers;
}

Expand Down

0 comments on commit 2e1a147

Please sign in to comment.