Commit Graph
6 Commits
Author SHA1 Message Date
Nathan Pitman 9319bd0b03 Update jquery.validation bindings and tests. Changes include:
* Relaxed $.validator.format so that the arguments don't have to be strings. Added overloads, so that if called with just a template and no arguments, it returns a curried function, as per http://jqueryvalidation.org/category/validator/. $.format might need changing (?) but I haven't touched it as it's deprecated anyway. Added tests.
* Place everything inside a JQueryValidation module to avoid cluttering the global namespace
* Split Validator into Validator and ValidatorStatic interfaces for correctness. Subdivide tests accordingly.
* Change rules to be typed as a RulesDictionary rather than an Object.
* Change ValidationOptions.groups to be { [groupName: string]: string } rather than Object.
* Change ValidationOptions.onclick, onfocusout and onkeyup from bool | Function to ShouldValidatePredicate, an alias for boolean | ((element: HTMLElement, event: JQueryEventObject) => void). Added more tests
2015-07-02 23:03:43 +12:00
Nathan Pitman f39cdea7ad Fix my contributor info in qtip2.d.ts and CONTRIBUTORS.md 2015-05-12 17:08:33 +12:00
Nathan Pitman 9439dc4ab0 Fixed nullability in qtip2.d.ts. Fixed style tests in qtip2-tests.ts 2015-05-12 17:07:03 +12:00
Nathan Pitman ab457e1898 Added type bindings for jQuery Sortable. 2015-05-12 16:54:14 +12:00
Nathan Pitman b02be7c1c8 Added type bindings for QTip2 API. 2015-05-02 20:22:43 +12:00
Nathan Pitman 09ba90cce0 Added type bindings for the qtip2 library (including tooltip setup, excluding its API). 2015-05-02 15:42:51 +12:00