Enabling noImplicitAny

This commit is contained in:
József Farkas
2016-06-26 15:12:50 +02:00
parent 948060f9bf
commit ebbe1559fc
8 changed files with 14 additions and 9 deletions

View File

@@ -26,7 +26,7 @@ export abstract class ClassArray<T extends Serializable<T>> extends Serializable
}
_toJsObject(): any {
let array = [];
let array: any[] = [];
for (let element of this.elements) {
array.push(element.toJsObject());
}

View File

@@ -55,7 +55,7 @@ export abstract class Serializable<T> {
abstract _toJsObject(): any;
abstract _toBinary(buffer: UhkBuffer): void;
private dump(value) {
private dump(value: any) {
if (Serializable.enableDump) {
process.stdout.write(value);
}

View File

@@ -171,7 +171,7 @@ export class UhkBuffer {
this._enableDump = value;
}
dump(value) {
dump(value: any) {
if (!this.enableDump) {
return;
}

View File

@@ -57,7 +57,8 @@ export class KeymapTabComponent implements OnInit, KeyActionSaver {
}));
}
onChange(event) {
// TODO: change to the correct type when the wrapper has added it.
onChange(event: any) {
this.selectedKeymapIndex = parseInt(event.value, 10);
}

View File

@@ -72,11 +72,13 @@ export class LayerTabComponent implements OnInit, KeyActionSaver {
return keyAction;
}
private toggleChanged(event) {
// TODO: change to the correct type when the wrapper has added it.
private toggleChanged(event: any) {
this.toggle = event.value;
}
private layerChanged(event) {
// TODO: change to the correct type when the wrapper has added it.
private layerChanged(event: any) {
this.layer = +event.value;
}
}

View File

@@ -56,7 +56,8 @@ export class MacroTabComponent implements OnInit, KeyActionSaver {
}));
}
onChange(event) {
// TODO: change to the correct type when the wrapper has added it.
onChange(event: any) {
this.selectedMacroIndex = event.value;
}

View File

@@ -21,7 +21,7 @@ export class DataProviderService {
}
getSvgModules(): SvgModule[] {
let modules = this.getBaseLayer().g[0].g.map(obj => new SvgModule(obj));
let modules = this.getBaseLayer().g[0].g.map((obj: any) => new SvgModule(obj));
return [modules[1], modules[0]]; // TODO: remove if the svg will be correct
}

View File

@@ -7,7 +7,8 @@
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"removeComments": false,
"noImplicitAny": false
"noImplicitAny": true,
"suppressImplicitAnyIndexErrors": true
},
"exclude": [
"node_modules",