diff --git a/config-serializer/ClassArray.ts b/config-serializer/ClassArray.ts index bb887263..77cb48d7 100644 --- a/config-serializer/ClassArray.ts +++ b/config-serializer/ClassArray.ts @@ -26,7 +26,7 @@ export abstract class ClassArray> extends Serializable } _toJsObject(): any { - let array = []; + let array: any[] = []; for (let element of this.elements) { array.push(element.toJsObject()); } diff --git a/config-serializer/Serializable.ts b/config-serializer/Serializable.ts index 1180b8e8..47031a43 100644 --- a/config-serializer/Serializable.ts +++ b/config-serializer/Serializable.ts @@ -55,7 +55,7 @@ export abstract class Serializable { abstract _toJsObject(): any; abstract _toBinary(buffer: UhkBuffer): void; - private dump(value) { + private dump(value: any) { if (Serializable.enableDump) { process.stdout.write(value); } diff --git a/config-serializer/UhkBuffer.ts b/config-serializer/UhkBuffer.ts index 25914bcc..d7572bcf 100644 --- a/config-serializer/UhkBuffer.ts +++ b/config-serializer/UhkBuffer.ts @@ -171,7 +171,7 @@ export class UhkBuffer { this._enableDump = value; } - dump(value) { + dump(value: any) { if (!this.enableDump) { return; } diff --git a/src/components/popover/tab/keymap-tab.component.ts b/src/components/popover/tab/keymap-tab.component.ts index 8a5f95b7..90b06242 100644 --- a/src/components/popover/tab/keymap-tab.component.ts +++ b/src/components/popover/tab/keymap-tab.component.ts @@ -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); } diff --git a/src/components/popover/tab/layer-tab.component.ts b/src/components/popover/tab/layer-tab.component.ts index 47f2407a..138b8633 100644 --- a/src/components/popover/tab/layer-tab.component.ts +++ b/src/components/popover/tab/layer-tab.component.ts @@ -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; } } diff --git a/src/components/popover/tab/macro-tab.component.ts b/src/components/popover/tab/macro-tab.component.ts index a53b4dbc..9440c5e6 100644 --- a/src/components/popover/tab/macro-tab.component.ts +++ b/src/components/popover/tab/macro-tab.component.ts @@ -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; } diff --git a/src/services/data-provider.service.ts b/src/services/data-provider.service.ts index aea8f4cc..ae6fdc80 100644 --- a/src/services/data-provider.service.ts +++ b/src/services/data-provider.service.ts @@ -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 } diff --git a/tsconfig.json b/tsconfig.json index 6f5bc573..1082aa6d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -7,7 +7,8 @@ "emitDecoratorMetadata": true, "experimentalDecorators": true, "removeComments": false, - "noImplicitAny": false + "noImplicitAny": true, + "suppressImplicitAnyIndexErrors": true }, "exclude": [ "node_modules",