Browse Source

Fixed fixing lint issues

update-deps
Alex Mikhalev 8 years ago
parent
commit
dc116f050f
  1. 8
      app/script/mqtt.ts

8
app/script/mqtt.ts

@ -4,10 +4,10 @@ import MQTT = Paho.MQTT;
import { EventEmitter } from "events"; import { EventEmitter } from "events";
import * as objectAssign from "object-assign"; import * as objectAssign from "object-assign";
import { import {
SprinklersDevice, SprinklersApi, Section, Program, ProgramItem, Schedule, TimeOfDay, Weekday, SprinklersDevice, ISprinklersApi, Section, Program, IProgramItem, Schedule, ITimeOfDay, Weekday,
} from "./sprinklers"; } from "./sprinklers";
export class MqttApiClient extends EventEmitter implements SprinklersApi { export class MqttApiClient extends EventEmitter implements ISprinklersApi {
private static newClientId() { private static newClientId() {
return "sprinklers3-MqttApiClient-" + Math.round(Math.random() * 1000); return "sprinklers3-MqttApiClient-" + Math.round(Math.random() * 1000);
} }
@ -182,7 +182,7 @@ class MqttSection extends Section {
} }
interface IScheduleJSON { interface IScheduleJSON {
times: TimeOfDay[]; times: ITimeOfDay[];
weekdays: number[]; weekdays: number[];
from?: string; from?: string;
to?: string; to?: string;
@ -200,7 +200,7 @@ function scheduleFromJSON(json: IScheduleJSON): Schedule {
interface IProgramJSON { interface IProgramJSON {
name: string; name: string;
enabled: boolean; enabled: boolean;
sequence: ProgramItem[]; sequence: IProgramItem[];
sched: IScheduleJSON; sched: IScheduleJSON;
} }

Loading…
Cancel
Save