mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
jQuery: The interface used to specify easing functions add
This commit is contained in:
@@ -410,6 +410,11 @@ function test_animatedSelector() {
|
||||
animateIt();
|
||||
}
|
||||
|
||||
function test_easing() {
|
||||
var result: number = $.easing.linear(3);
|
||||
var result: number = $.easing.swing(3);
|
||||
}
|
||||
|
||||
function test_append() {
|
||||
$('.inner').append('<p>Test</p>');
|
||||
$('.container').append($('h2'));
|
||||
|
||||
Vendored
+8
@@ -348,6 +348,13 @@ interface JQueryEventConstructor {
|
||||
new (name: string, eventProperties?: any): JQueryEventObject;
|
||||
}
|
||||
|
||||
/**
|
||||
* The interface used to specify easing functions.
|
||||
*/
|
||||
interface JQueryEasing {
|
||||
linear(p: number): number;
|
||||
swing(p: number): number;
|
||||
}
|
||||
|
||||
/*
|
||||
Static members of jQuery (those on $ and jQuery themselves)
|
||||
@@ -647,6 +654,7 @@ interface JQueryStatic {
|
||||
|
||||
Animation(elem: any, properties: any, options: any): any;
|
||||
|
||||
easing: JQueryEasing;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user