UNPKG

@nodeject/ui-components

Version:

UI library for non-trivial components

11 lines (10 loc) 480 B
/// <reference types="react" /> import { DragDropData, OptimisticLocalState, State } from '../dtos'; export interface UseOptimisticRendering { dataFromServer: DragDropData; setState: React.Dispatch<React.SetStateAction<State>>; } export declare const useOptimisticRendering: (props: UseOptimisticRendering) => { optimisticState: OptimisticLocalState; setOptimisticState: import("react").Dispatch<import("react").SetStateAction<OptimisticLocalState>>; };