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;
}