Type fixes

pull/862/head
Rick Carlino 2018-05-22 13:44:37 -05:00
parent c91fee164c
commit 7e76dd8030
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
import { TaggedLog } from "../resources/tagged_resources";
import { store } from "../redux/store";
import { batchInitResources, bothUp } from "./connect_device";
import { getDeviceAccountSettings, maybeGetDevice } from "../resources/selectors";
import { maybeGetDevice } from "../resources/selectors";
import * as moment from "moment";
import { DeviceAccountSettings } from "../devices/interfaces";

View File

@ -190,7 +190,7 @@ export function maybeGetDevice(index: ResourceIndex): TaggedDevice | undefined {
}
export const getDeviceAccountSettings =
(index: ResourceIndex): TaggedDevice | undefined => {
(index: ResourceIndex): TaggedDevice => {
const device = maybeGetDevice(index);
switch (index.byKind.Device.length) {
case 0: return bail(`Tried to load device before it was loaded.`);