Skip to content

Commit f90f0fa

Browse files
committed
chore: tsc fix
1 parent 0356ac8 commit f90f0fa

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

packages/collectionview/collectionview.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ export * from './collectionview-common';
66
export type Orientation = 'horizontal' | 'vertical';
77

88
export class CollectionView extends CollectionViewBase {
9+
10+
public scrollOffset: number;
911
public refresh();
1012
public refreshVisibleItems();
1113
public isItemAtIndexVisible(index: number): boolean;

src/collectionview/collectionview-common.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ export abstract class CollectionViewBase extends View implements CollectionViewD
100100
public _effectiveColWidth: number;
101101

102102
public loadMoreThreshold: number;
103+
public scrollOffset: number;
103104

104105
public reorderEnabled: boolean;
105106
public reorderLongPressEnabled: boolean;
@@ -137,7 +138,7 @@ export abstract class CollectionViewBase extends View implements CollectionViewD
137138

138139
public abstract refresh();
139140
public abstract refreshVisibleItems();
140-
public abstract isItemAtIndexVisible(index:number);
141+
public abstract isItemAtIndexVisible(index: number);
141142
public abstract scrollToIndex(index: number, animated: boolean);
142143
public onLayout(left: number, top: number, right: number, bottom: number) {
143144
super.onLayout(left, top, right, bottom);

0 commit comments

Comments
 (0)