mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* jQuery Adapter of waypoints 4.x (jquery.waypoints) waypoints: refactoring of WaypointOptions to allow waypoint.jquery definition (common options extracted into base interface - WaypointOptionsBase) * waypoints.jquery: set TypeScript version as 2.3 * waypoints.jquery: fixes: context moved to WaypointOptionsJQuery and WaypointOptions; waypoints-jquery-tests.ts renamed to waypoints.jquery-tests.ts * waypoints.jquery: fixes: removed BOM in waypoints.jquery-tests.ts * waypoints: waypoints.jquery has been moved into waypoints (as waypoints/jquery.d.ts) * waypoints: fixes: waypoints-tests.ts: fixed prefer-const Identifier 'waypoint1' is never reassigned; use 'const' instead of 'let'.
14 lines
437 B
TypeScript
14 lines
437 B
TypeScript
/* Type definitions for jQuery Adapter for waypoints 4.0 */
|
|
|
|
/// <reference types="waypoints" />
|
|
|
|
interface JQuery {
|
|
waypoint(handler: (this: Waypoint, direction?: string) => void, options?: WaypointOptionsJQuery): JQuery;
|
|
waypoint(options?: WaypointOptionsJQuery): JQuery;
|
|
}
|
|
|
|
interface WaypointOptionsJQuery extends WaypointOptionsBase {
|
|
handler?: (this: Waypoint, direction?: string) => void;
|
|
context?: HTMLElement|string;
|
|
}
|