From 057952b0bacc6e963c74bb1bbebbcccd6174a75c Mon Sep 17 00:00:00 2001 From: Georgios Andreadis Date: Sat, 23 Sep 2017 09:03:10 +0200 Subject: Fix typing errors --- src/scripts/controllers/connection/api.ts | 2 +- src/scripts/controllers/simulation/statecache.ts | 2 +- src/scripts/controllers/simulationcontroller.ts | 2 +- src/scripts/definitions.ts | 10 +++++----- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/scripts/controllers/connection/api.ts b/src/scripts/controllers/connection/api.ts index d3278561..1a1c122f 100644 --- a/src/scripts/controllers/connection/api.ts +++ b/src/scripts/controllers/connection/api.ts @@ -758,7 +758,7 @@ export class APIController { } } - return rack; + return rack; }); }); } diff --git a/src/scripts/controllers/simulation/statecache.ts b/src/scripts/controllers/simulation/statecache.ts index 092bfe32..0a7767fa 100644 --- a/src/scripts/controllers/simulation/statecache.ts +++ b/src/scripts/controllers/simulation/statecache.ts @@ -10,7 +10,7 @@ export class StateCache { public cacheBlock: boolean; private simulationController: SimulationController; - private intervalId: number; + private intervalId: any; private caching: boolean; // Item caches diff --git a/src/scripts/controllers/simulationcontroller.ts b/src/scripts/controllers/simulationcontroller.ts index 69997047..1185087d 100644 --- a/src/scripts/controllers/simulationcontroller.ts +++ b/src/scripts/controllers/simulationcontroller.ts @@ -42,7 +42,7 @@ export class SimulationController { public rackToRoomMap: {[key: number]: number;}; private taskViewController: TaskViewController; - private tickerId: number; + private tickerId: any; public static showOrHideSimComponents(visibility: boolean): void { diff --git a/src/scripts/definitions.ts b/src/scripts/definitions.ts index a6893407..e187af09 100644 --- a/src/scripts/definitions.ts +++ b/src/scripts/definitions.ts @@ -6,11 +6,11 @@ */ // Webpack require declaration -declare var require: { - (path: string): T; - (paths: string[], callback: (...modules: any[]) => void): void; - ensure: (paths: string[], callback: (require: (path: string) => T) => void) => void; -}; +//declare var require: { +// (path: string): T; + // (paths: string[], callback: (...modules: any[]) => void): void; + //ensure: (paths: string[], callback: (require: (path: string) => T) => void) => void; +//}; // Meta-constructs interface IDateTime { -- cgit v1.2.3