UNPKG

react-google-charts

Version:
17 lines (16 loc) 589 B
import { GoogleChartVersion, GoogleChartPackages, GoogleViz, ReactGoogleChartProps } from "../types"; export interface IUseLoadGoogleChartsParams { chartVersion?: GoogleChartVersion; chartPackages?: GoogleChartPackages[]; chartLanguage?: string; mapsApiKey?: string; } export declare function useLoadGoogleCharts(props: ReactGoogleChartProps): { error: Error | null; isLoading: boolean; google: GoogleViz | null; }; export interface ILoadGoogleChartsProps extends IUseLoadGoogleChartsParams { onLoad?(googleCharts: GoogleViz): void; onError?(): void; }