UNPKG

@visactor/react-vtable

Version:

The react version of VTable

10 lines (9 loc) 479 B
import React from 'react'; import type { ListTable, PivotTable, PivotChart } from '@visactor/vtable'; export interface TableContextType { table?: ListTable | PivotTable | PivotChart; isChildrenUpdated?: boolean; } declare const TableContext: React.Context<TableContextType>; export declare function withTableInstance<T>(Component: typeof React.Component): React.ForwardRefExoticComponent<React.PropsWithoutRef<T> & React.RefAttributes<any>>; export default TableContext;