pagamio-frontend-commons-lib
Version:
Pagamio library for Frontend reusable components like the form engine and table container
10 lines (9 loc) • 448 B
TypeScript
import type { QueryProps } from '../../shared/types';
import type { MetricData } from '../types';
export declare const useChartData: <T = MetricData[], TransformReturnType = T>(url: string, query: QueryProps, transform?: (data: T) => TransformReturnType) => {
data: T | TransformReturnType | undefined;
error: import("../../api").ApiErrorResponse | undefined;
loading: boolean;
isEmpty: boolean;
refresh: () => Promise<any>;
};