mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-01 09:01:45 +08:00
Create jquery.simulate.d.ts
I choose to go with a more relaxed definition (versus specifying the exact options allowed for each event type) because it would have required duplicating event definitions from lib.d.ts (the properties of the events in lib.d.ts are all mandatory whereas they would be optional in this usage).
This commit is contained in:
19
jquery.simulate/jquery.simulate.d.ts
vendored
Normal file
19
jquery.simulate/jquery.simulate.d.ts
vendored
Normal file
@@ -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