Enabling noImplicitAny
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -171,7 +171,7 @@ export class UhkBuffer {
|
||||
this._enableDump = value;
|
||||
}
|
||||
|
||||
dump(value) {
|
||||
dump(value: any) {
|
||||
if (!this.enableDump) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -7,7 +7,8 @@
|
||||
"emitDecoratorMetadata": true,
|
||||
"experimentalDecorators": true,
|
||||
"removeComments": false,
|
||||
"noImplicitAny": false
|
||||
"noImplicitAny": true,
|
||||
"suppressImplicitAnyIndexErrors": true
|
||||
},
|
||||
"exclude": [
|
||||
"node_modules",
|
||||
|
||||
Reference in New Issue
Block a user