export TimeSeries to type file
parent
15fb883c5f
commit
76fc779467
|
@ -1,4 +1,4 @@
|
|||
export type TimeSeriesValue = string | number | Date | null
|
||||
export type TimeSeriesValue = string | number | null
|
||||
|
||||
export interface TimeSeriesSeries {
|
||||
name: string
|
||||
|
@ -30,6 +30,6 @@ export interface TimeSeriesServerResponse {
|
|||
}
|
||||
|
||||
export interface TimeSeries {
|
||||
time: TimeSeriesValue[]
|
||||
values: TimeSeriesValue[][]
|
||||
time: TimeSeriesValue
|
||||
values: TimeSeriesValue[]
|
||||
}
|
||||
|
|
|
@ -14,6 +14,7 @@ import {
|
|||
TimeSeriesSeries,
|
||||
TimeSeriesValue,
|
||||
TimeSeriesSuccessfulResult,
|
||||
TimeSeries,
|
||||
} from 'src/types/series'
|
||||
import {get} from 'src/utils/wrappers'
|
||||
|
||||
|
@ -49,11 +50,6 @@ interface Label {
|
|||
responseIndex: number
|
||||
}
|
||||
|
||||
interface TimeSeries {
|
||||
time: TimeSeriesValue
|
||||
values: TimeSeriesValue[]
|
||||
}
|
||||
|
||||
const flattenGroupBySeries = (
|
||||
results: TimeSeriesSuccessfulResult[],
|
||||
responseIndex: number,
|
||||
|
|
Loading…
Reference in New Issue