UNPKG

@antv/g2

Version:

the Grammar of Graphics in Javascript

18 lines (17 loc) 502 B
import { DataTransform } from './dataTransform'; export type Data = FetchConnector | InlineConnector; export type DataTypes = 'inline' | 'fetch'; export type FetchConnector = { type?: 'fetch'; value?: string; format?: 'json' | 'csv'; delimiter?: string; /** Automatically infer the data to Javascript type */ autoType?: boolean; transform?: DataTransform[]; }; export type InlineConnector = { type?: 'inline'; value?: any; transform?: DataTransform[]; } | any;