@@ -26,20 +26,20 @@ declare namespace recycleContext {
2626 }
2727
2828 interface RecycleContext < T > {
29- append ( list : T [ ] , callback ?: ( ) => void ) : void
30- appendList ( list : T [ ] , callback ?: ( ) => void ) : void
31- splice ( begin : number , deleteCount : number , appendList : T [ ] , callback ?: ( ) => void ) : void ;
32- updateList ( beginIndex : number , list : T [ ] , callback ?: ( ) => void ) : void
33- update ( beginIndex : number , list : T [ ] , callback ?: ( ) => void ) : void
34- destroy ( ) : void
35- forceUpdate ( callback : ( ) => void , reinitSlot : boolean ) : void
29+ append ( list : T [ ] , callback ?: ( ) => void ) : RecycleContext < T >
30+ appendList ( list : T [ ] , callback ?: ( ) => void ) : RecycleContext < T >
31+ splice ( begin : number , deleteCount : number , appendList : T [ ] , callback ?: ( ) => void ) : RecycleContext < T > ;
32+ updateList ( beginIndex : number , list : T [ ] , callback ?: ( ) => void ) : RecycleContext < T >
33+ update ( beginIndex : number , list : T [ ] , callback ?: ( ) => void ) : RecycleContext < T >
34+ destroy ( ) : RecycleContext < T >
35+ forceUpdate ( callback : ( ) => void , reinitSlot : boolean ) : RecycleContext < T >
3636 getBoundingClientRect ( index : number | undefined ) : position | position [ ]
3737 getScrollTop ( ) : number ;
3838 transformRpx ( rpx : number , addPxSuffix ?: string ) : number ;
3939 getViewportItems ( inViewportPx : number ) : T [ ]
4040 getList ( ) : T [ ]
4141 }
4242}
43- declare function recycleContext < T > ( op : recycleContext . options < T > ) : recycleContext . RecycleContext < T >
43+ declare function createRecycleContext < T > ( op : recycleContext . options < T > ) : recycleContext . RecycleContext < T >
4444
45- export = recycleContext ;
45+ export = createRecycleContext ;
0 commit comments