UNPKG

@nodeject/ui-components

Version:

UI library for non-trivial components

11 lines (10 loc) 541 B
/// <reference types="react" /> import { DragDropListsEvents, OnNewItemClickedArgs, OptimisticLocalState, State } from '../../dtos'; export interface CreateNewItemProps { onNewItemAddServer?: DragDropListsEvents['onNewItemAdd']; optimisticOptions?: any; setOptimisticState?: React.Dispatch<React.SetStateAction<OptimisticLocalState>>; setState: React.Dispatch<React.SetStateAction<State>>; state: State; } export declare const createNewItem: (props: CreateNewItemProps) => (args: OnNewItemClickedArgs) => void;