DefinitelyTyped/types/react-virtualized/genericTypes.d.ts
Kalle Ott 8484faf774 update for react-virtualized 9.4
replaced single declaration file with multiple files to represent the module structure of react-virtualized. 
This makes the future maintanance easier, because changes in the lib can be easier mirrored in the corresponding declaration file.
This typings update should be the last with large breaking changes
2017-03-27 21:23:45 +02:00

40 lines
704 B
TypeScript

export type Index = {
index: number
};
export type PositionInfo = {
x: number,
y: number
};
export type ScrollPosition = {
scrollLeft: number,
scrollTop: number
};
export type SizeInfo = {
height: number,
width: number
};
export type SizeAndPositionInfo = SizeInfo & PositionInfo;
export type Map<T> = { [key: string]: T };
export type Alignment = 'auto' | 'end' | 'start' | 'center';
export type IndexRange = {
startIndex: number,
stopIndex: number
}
export type OverscanIndexRange = {
overscanStartIndex: number,
overscanStopIndex: number,
}
export type ScrollEventData = {
clientHeight: number,
scrollHeight: number,
scrollTop: number
}