mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
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:
parent
f23cd55e31
commit
767f577db3
@ -2,3 +2,7 @@
|
||||
/// <reference path="jquery.placeholder.d.ts"/>
|
||||
|
||||
$('input').placeholder();
|
||||
|
||||
// specify custom class
|
||||
$('input').placeholder({ customClass: 'my-placeholder' });
|
||||
|
||||
|
||||
9
jquery.placeholder/jquery.placeholder.d.ts
vendored
9
jquery.placeholder/jquery.placeholder.d.ts
vendored
@ -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
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user