diff options
| author | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-09-23 09:03:10 +0200 |
|---|---|---|
| committer | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-09-23 09:03:10 +0200 |
| commit | 057952b0bacc6e963c74bb1bbebbcccd6174a75c (patch) | |
| tree | 798b826dd285b3db6389f4cfe6b1c23bb32c0871 | |
| parent | d6021190753ddc9834ce2763373c592c258e37df (diff) | |
Fix typing errors
| -rw-r--r-- | src/scripts/controllers/connection/api.ts | 2 | ||||
| -rw-r--r-- | src/scripts/controllers/simulation/statecache.ts | 2 | ||||
| -rw-r--r-- | src/scripts/controllers/simulationcontroller.ts | 2 | ||||
| -rw-r--r-- | 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 <IRack>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: { - <T>(path: string): T; - (paths: string[], callback: (...modules: any[]) => void): void; - ensure: (paths: string[], callback: (require: <T>(path: string) => T) => void) => void; -}; +//declare var require: { +// <T>(path: string): T; + // (paths: string[], callback: (...modules: any[]) => void): void; + //ensure: (paths: string[], callback: (require: <T>(path: string) => T) => void) => void; +//}; // Meta-constructs interface IDateTime { |
