export TimeSeries to type file

pull/10616/head
ebb-tide 2018-05-16 16:13:38 -07:00
parent 15fb883c5f
commit 76fc779467
2 changed files with 4 additions and 8 deletions

View File

@ -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[]
}

View File

@ -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,