blob: 61f1807295d744dfb51c156850805abcf515effb [file] [log] [blame]
import { QueryFormData, QueryContext } from '../..';
import ChartProps from '../models/ChartProps';
import { PlainObject } from './Base';
export type PlainProps = PlainObject;
type TransformFunction<Input = PlainProps, Output = PlainProps> = (x: Input) => Output;
export type PreTransformProps = TransformFunction<ChartProps, ChartProps>;
export type TransformProps<Props extends ChartProps = ChartProps> = TransformFunction<Props>;
export type PostTransformProps = TransformFunction;
export type BuildQueryFunction<T extends QueryFormData> = (formData: T) => QueryContext;