Type new synchronous dashboard action creators

pull/10616/head
Jared Scheib 2018-06-08 19:01:17 -07:00
parent 73480c7128
commit 8238caf934
1 changed files with 18 additions and 2 deletions

View File

@ -100,7 +100,15 @@ export const setDashTimeV1 = (
},
})
export const pruneDashTimeV1 = dashboardIDs => ({
interface PruneDashTimeV1Action {
type: 'PRUNE_DASHBOARD_TIME_V1'
payload: {
dashboardIDs: string[]
}
}
export const pruneDashTimeV1 = (
dashboardIDs: string[]
): PruneDashTimeV1Action => ({
type: 'PRUNE_DASHBOARD_TIME_V1',
payload: {dashboardIDs},
})
@ -118,7 +126,15 @@ export const setTimeRange = (timeRange: TimeRange): SetTimeRangeAction => ({
},
})
export const setZoomedTimeRange = zoomedTimeRange => ({
interface SetZoomedTimeRangeAction {
type: 'SET_DASHBOARD_ZOOMED_TIME_RANGE'
payload: {
zoomedTimeRange: TimeRange
}
}
export const setZoomedTimeRange = (
zoomedTimeRange: TimeRange
): SetZoomedTimeRangeAction => ({
type: 'SET_DASHBOARD_ZOOMED_TIME_RANGE',
payload: {
zoomedTimeRange,