UNPKG

@tarojsx/library

Version:
22 lines (21 loc) 698 B
import React from 'react'; import type { Chart, Global, ChartParams, Data, DataRecord } from '@antv/f2'; interface F2CoreProps<TRecord extends DataRecord = DataRecord> { className?: string; style?: React.CSSProperties; config: { Chart: typeof Chart; Global: typeof Global; } & ChartParams; data: Data<TRecord>; fontFamily?: string; children(renderProps: { chart: Chart<TRecord>; data: Data<TRecord>; }): any; } export declare namespace F2Core { type Props<TRecord> = F2CoreProps<TRecord>; } export declare const F2Core: <TRecord extends Record<any, any> = Record<any, any>>(props: F2CoreProps<TRecord>) => JSX.Element; export {};