gantt-task-react-v
Version:
Interactive Gantt Chart for React with TypeScript.
25 lines (24 loc) • 502 B
TypeScript
import type { RefObject } from "react";
export type OptimizedListParams = [
/**
* start index
*/
number,
/**
* end index
*/
number,
/**
* is scrolled to start
*/
boolean,
/**
* is scrolled to end
*/
boolean,
/**
* client width/height of element
*/
number
];
export declare const useOptimizedList: (containerRef: RefObject<Element>, property: "scrollTop" | "scrollLeft", cellSize: number) => OptimizedListParams;