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
+ fixed ?: ( ) => void ;
17
+ postFixed ?: ( ) => void ;
18
+ preUnfixed ?: ( ) => void ;
19
+ unfixed ?: ( ) => 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
+ }
30
+ }
31
+
32
+ interface JQuery {
33
+ isScrollToFixed ( el : Element ) : JQuery ;
34
+ isScrollToFixed ( el : Element [ ] ) : JQuery ;
35
+ isScrollToFixed ( el : { } ) : JQuery ;
36
+ isScrollToFixed ( el : JQuery ) : JQuery ;
37
+ ScrollToFixed ( el : Element , options : ScrollToFixed . ScrollToFixedOptions ) : JQuery ;
38
+ ScrollToFixed ( el : Element [ ] , options : ScrollToFixed . ScrollToFixedOptions ) : JQuery ;
39
+ ScrollToFixed ( el : { } , options : ScrollToFixed . ScrollToFixedOptions ) : JQuery ;
40
+ ScrollToFixed ( el : JQuery , options : ScrollToFixed . ScrollToFixedOptions ) : JQuery ;
41
+
42
+ scrollToFixed : ( options ? : ScrollToFixed . ScrollToFixedOptions ) => JQuery [ ] ;
43
+ }
0 commit comments