Added overload for definition of a custom CSS class

Bumped version number. Added to definitions by. Corrected return type of
JQuery method.
This commit is contained in:
Neil Culver 2015-05-26 16:51:50 +01:00
parent f23cd55e31
commit 767f577db3
2 changed files with 8 additions and 5 deletions

View File

@ -2,3 +2,7 @@
/// <reference path="jquery.placeholder.d.ts"/>
$('input').placeholder();
// specify custom class
$('input').placeholder({ customClass: 'my-placeholder' });

View File

@ -1,13 +1,12 @@
// Type definitions for jquery.placeholder.js 2.0.7
// Type definitions for jquery.placeholder.js 2.1.1
// Project: https://github.com/mathiasbynens/jquery-placeholder
// Definitions by: Peter Gill <https://github.com/majorsilence>
// Definitions by: Peter Gill <https://github.com/majorsilence>, Neil Culver <https://github.com/EnableSoftware>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../jquery/jquery.d.ts"/>
interface JQuery {
placeholder() : void;
placeholder(options: { customClass: string }) : JQuery
placeholder() : JQuery
}