/** * Types for transformed data to be used in our widgets */ export type DataValue = number | string | boolean | Date; export type DataPointShape = { [key in string]: DataValue; }; export type Data = Shape[] | { [Key in keyof Shape]: Shape[Key][]; }; export type DataSource = { state: 'loading' | 'success' | 'failed' | 'error'; value: Value; }; export interface DataSourceTransformer { canTransform: (dataSource: DataSource) => boolean; transform(dataSource: DataSource): TransformedData; describe(dataSource: DataSource): Description; } //# sourceMappingURL=types.d.ts.map