UNPKG

@1771technologies/lytenyte-pro

Version:

Blazingly fast headless React data grid with 100s of features.

10 lines (9 loc) 528 B
import type { RowAtom, RowNode, RowSelectionStateWithParent } from "@1771technologies/lytenyte-shared"; import type { ServerData } from "../server-data.js"; import { type Signal } from "@1771technologies/lytenyte-core/internal"; export declare function useRowByIndex<T>(source: ServerData, state: { rowSelections: RowSelectionStateWithParent; }, globalSignal: Signal<number>, getParents: (id: string) => string[]): { rowInvalidate: (row?: number) => void; rowByIndex: (row: number) => RowAtom<RowNode<T> | null>; };