diff --git a/jquery.validation/jquery.validation.d.ts b/jquery.validation/jquery.validation.d.ts index 78cf13a05e..fb686837dc 100644 --- a/jquery.validation/jquery.validation.d.ts +++ b/jquery.validation/jquery.validation.d.ts @@ -128,9 +128,9 @@ declare namespace JQueryValidation */ showErrors?: (errorMap: ErrorDictionary, errorList: ErrorListItem[]) => void; /** - * Callback for handling the actual submit when the form is valid. Gets the form as the only argument. Replaces the default submit. The right place to submit a form via Ajax after it is validated. + * Callback for handling the actual submit when the form is valid. Gets the form and the event object. Replaces the default submit. The right place to submit a form via Ajax after it is validated. */ - submitHandler?: (form: HTMLFormElement) => void; + submitHandler?: (form: HTMLFormElement, event?: JQueryEventObject) => void; /** * String or Function. If specified, the error label is displayed to show a valid element. If a String is given, it is added as a class to the label. If a Function is given, it is called with the label (as a jQuery object) and the validated input (as a DOM element). The label can be used to add a text like "ok!". */ diff --git a/materialize-css/materialize-css.d.ts b/materialize-css/materialize-css.d.ts index ea1d15c0d1..0383244431 100644 --- a/materialize-css/materialize-css.d.ts +++ b/materialize-css/materialize-css.d.ts @@ -420,8 +420,10 @@ interface JQuery { /** * Close a modal programatically + * + * @name options the lean modal options */ - closeModal(): void; + closeModal(options?: Materialize.LeanModalOptions): void; /** * Parallax is an effect where the background content or image in this case, is moved at a different speed than the foreground content while scrolling.