UNPKG

@visactor/react-vtable

Version:
11 lines (10 loc) 507 B
import React from 'react'; import type { ListTable, PivotTable, PivotChart } from '@visactor/vtable'; export interface TableContextType { table?: ListTable | PivotTable | PivotChart; onError?: (err: Error) => void; isChildrenUpdated?: boolean; } declare const TableContext: React.Context<TableContextType>; export declare function withTableInstance<T>(Component: typeof React.Component): React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<any>>; export default TableContext;