/* @flow */
import type { Action } from './types';
import type { SeatData } from '../types';


export function loadSeats(seats: { [id: string]: SeatData }): Action {
  return { type: 'LOAD_SEATS', seats };
}

/* @flow */
import type { Action } from './types';
import type { SeatsMap } from '../reducers/types';


export function loadSeats(seats: SeatsMap ): Action {
  return { type: 'LOAD_SEATS', seats };
}

Use SeatsMap type in loadSeats signature.
Use SeatsMap type in loadSeats signature.
