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