DefinitelyTyped/types/waypoints/jquery.d.ts
Sergei Dorogin d72c2f781d waypoints.jquery: jQuery Adapter of waypoints 4.x (jquery.waypoints) (#23170)
* 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'.
2018-01-25 09:13:42 -08:00

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;
}