mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
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
40 lines
704 B
TypeScript
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
|
|
} |