mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-21 17:20:32 +08:00
Merge pull request #12518 from cannontrodder/types-2.0
expose mock property
This commit is contained in:
1
velocity-animate/index.d.ts
vendored
1
velocity-animate/index.d.ts
vendored
@@ -79,6 +79,7 @@ declare namespace jquery.velocity {
|
||||
|
||||
interface VelocityStatic {
|
||||
Sequences: any;
|
||||
mock: any;
|
||||
animate(options: {elements: NodeListOf<HTMLElement>; properties: Properties; options: Options}): any;
|
||||
animate(elements: HTMLElement|NodeListOf<HTMLElement>, properties: Properties, options: Options): any;
|
||||
RegisterEffect(name: string, options: RegisterEffectOptions): VelocityStatic;
|
||||
|
||||
@@ -23,6 +23,7 @@ function basics_arguments() {
|
||||
$el.velocity({ top: 50 }, 1000, "swing");
|
||||
$el.velocity({ top: 50 }, "swing");
|
||||
$el.velocity({ top: 50 }, 1000, function() { alert("Hi"); });
|
||||
$.Velocity.mock = 1;
|
||||
|
||||
$el.velocity({
|
||||
properties: { opacity: 1 },
|
||||
|
||||
Reference in New Issue
Block a user