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 { export interface TimeSeriesSeries {
name: string name: string
@ -30,6 +30,6 @@ export interface TimeSeriesServerResponse {
} }
export interface TimeSeries { export interface TimeSeries {
time: TimeSeriesValue[] time: TimeSeriesValue
values: TimeSeriesValue[][] values: TimeSeriesValue[]
} }

View File

@ -14,6 +14,7 @@ import {
TimeSeriesSeries, TimeSeriesSeries,
TimeSeriesValue, TimeSeriesValue,
TimeSeriesSuccessfulResult, TimeSeriesSuccessfulResult,
TimeSeries,
} from 'src/types/series' } from 'src/types/series'
import {get} from 'src/utils/wrappers' import {get} from 'src/utils/wrappers'
@ -49,11 +50,6 @@ interface Label {
responseIndex: number responseIndex: number
} }
interface TimeSeries {
time: TimeSeriesValue
values: TimeSeriesValue[]
}
const flattenGroupBySeries = ( const flattenGroupBySeries = (
results: TimeSeriesSuccessfulResult[], results: TimeSeriesSuccessfulResult[],
responseIndex: number, responseIndex: number,