forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
scrolltofixed.d.ts
49 lines (44 loc) · 1.58 KB
/
scrolltofixed.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// Type definitions for ScrollToFixed
// Project: https://github.com/bigspotteddog/ScrollToFixed
// Definitions by: Ben Dixon <https://github.com/bmdixon>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../jquery/jquery.d.ts" />
declare namespace ScrollToFixed {
interface ScrollToFixedOptions {
marginTop? : number | (() => number);
limit? : number | (() => number);
bottom?: number;
zIndex? : number;
spacerClass? : string;
preFixed?: () => void;
postFixed?: () => void;
fixed?: () => void;
unfixed?: () => void;
preUnfixed?: () => void;
postUnfixed?: () => void;
preAbsolute?: () => void;
postAbsolute?: () => void;
offsets? : boolean;
minWidth? : number;
maxWidth? : number;
dontCheckForPositionFixedSupport? : boolean;
dontSetWidth? : boolean;
removeOffsets? : boolean;
baseClassName?: string;
className?: string;
}
}
interface JQuery {
scrollToFixed : (options? : ScrollToFixed.ScrollToFixedOptions) => JQuery[];
}
interface JQueryStatic {
isScrollToFixed(el: Element) : JQuery;
isScrollToFixed(el: Element[]) : JQuery;
isScrollToFixed(el: {}) : JQuery;
isScrollToFixed(el: JQuery) : JQuery;
ScrollToFixed(el: Element, options: ScrollToFixed.ScrollToFixedOptions): void;
ScrollToFixed(el : Element, options : ScrollToFixed.ScrollToFixedOptions) : JQuery;
ScrollToFixed(el: Element[], options : ScrollToFixed.ScrollToFixedOptions) : JQuery;
ScrollToFixed(el: {}, options : ScrollToFixed.ScrollToFixedOptions) : JQuery;
ScrollToFixed(el: JQuery, options : ScrollToFixed.ScrollToFixedOptions) : JQuery;
}