DefinitelyTyped/types/jquery-animate-scroll/index.d.ts
2018-06-10 11:05:09 -04:00

25 lines
651 B
TypeScript

// Type definitions for JQuery Animate Scroll 1.0
// Project: https://github.com/risan/jquery-animate-scroll
// Definitions by: Anderson Friaça <https://github.com/AndersonFriaca>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
/// <reference types="jquery" />
export type Options = Partial<{
$container: JQuery;
speed: number;
offset: number;
}>;
declare global {
interface JQuery {
animateScroll(options?: Options): JQuery;
scrollHere(options?: Options): JQuery;
}
interface JQueryStatic {
scrollTo(element: JQuery, options?: Options): void;
}
}