UNPKG

@nodeject/ui-components

Version:

UI library for non-trivial components

11 lines (10 loc) 533 B
/// <reference types="react" /> import { DragDropListsEvents, OnItemDeleteArgs, OptimisticLocalState, State } from '../../dtos'; export interface DeleteItemProps { onItemDeleteServer?: DragDropListsEvents['onItemDelete']; optimisticOptions?: any; setOptimisticState?: React.Dispatch<React.SetStateAction<OptimisticLocalState>>; setState: React.Dispatch<React.SetStateAction<State>>; state: State; } export declare const deleteItem: (props: DeleteItemProps) => (args: OnItemDeleteArgs) => Promise<void>;