UNPKG

antd-table-editable-af

Version:
15 lines (14 loc) 521 B
import { FormInstance } from 'antd'; import React from 'react'; export interface CellContextProps<EditorType extends string = any> { mode: 'read' | 'edit'; setMode: React.Dispatch<React.SetStateAction<'read' | 'edit'>>; selected: boolean; setSelected: React.Dispatch<React.SetStateAction<boolean>>; form: FormInstance<any>; editable: boolean; editorType: EditorType; record: Record<string, any>; index: number; } export declare const CellContext: React.Context<CellContextProps<any>>;