mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 21:10:23 +00:00
Merge pull request #1644 from derekcicerone/patch-38
Create jquery.simulate.d.ts
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
/// <reference path="jquery.simulate.d.ts"/>
|
||||
|
||||
var $element = $("body");
|
||||
|
||||
$element.simulate("click");
|
||||
$element.simulate("mousewheel", { detail: 50 });
|
||||
Vendored
+19
@@ -0,0 +1,19 @@
|
||||
// Type definitions for jquery.simulate.js
|
||||
// Project: https://github.com/jquery/jquery-simulate
|
||||
// Definitions by: Derek Cicerone <https://github.com/derekcicerone/>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
/// <reference path="../jquery/jquery.d.ts"/>
|
||||
|
||||
interface JQuery {
|
||||
|
||||
/**
|
||||
* Simulates an event.
|
||||
*
|
||||
* @param type
|
||||
* the type of event (eg: "mousemove", "keydown", etc...)
|
||||
* @param options
|
||||
* the options for the event (these are event-specific)
|
||||
*/
|
||||
simulate(type: string, options?: any): void;
|
||||
}
|
||||
Reference in New Issue
Block a user