From 4908d6bad56ffcd03f93df1a2bced3f06052b272 Mon Sep 17 00:00:00 2001 From: Matt Bailey Date: Fri, 3 Feb 2017 15:00:02 -0800 Subject: [PATCH] Updated definitions with checkForm() function on Validator prototype --- jquery.validation/index.d.ts | 1 + jquery.validation/jquery.validation-tests.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/jquery.validation/index.d.ts b/jquery.validation/index.d.ts index 953755a065..2bb690c07e 100644 --- a/jquery.validation/index.d.ts +++ b/jquery.validation/index.d.ts @@ -217,6 +217,7 @@ declare namespace JQueryValidation interface Validator { element(element: string|JQuery): boolean; + checkForm(): boolean; /** * Validates the form, returns true if it is valid, false otherwise. */ diff --git a/jquery.validation/jquery.validation-tests.ts b/jquery.validation/jquery.validation-tests.ts index 15bb9f790c..0b2de520f2 100644 --- a/jquery.validation/jquery.validation-tests.ts +++ b/jquery.validation/jquery.validation-tests.ts @@ -208,6 +208,7 @@ function test_methods() { $("#myform").submit(); $("#myinput").attr(rules); }); + $("#myform").validate().checkForm(); $("#myform").validate().form(); $("#myform").validate().element("#myselect"); $("#myform").validate().element($("#myselect"));