diff --git a/Gruntfile.js b/Gruntfile.js index 5f9341f2a0..26988ffd53 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -29,7 +29,8 @@ module.exports = function(grunt) { module: 'commonjs', sourceMap: true, declaration: false, - removeComments: false + removeComments: false, + noImplicitAny: true }, devlib: { diff --git a/lib/common b/lib/common index cdade826e3..d4ad1e3b37 160000 --- a/lib/common +++ b/lib/common @@ -1 +1 @@ -Subproject commit cdade826e35ed2febb5b84ae44abbb9ebc8c9c76 +Subproject commit d4ad1e3b37334dc80797d1c181aed1e5bd1626ae diff --git a/lib/definitions/npm.d.ts b/lib/definitions/npm.d.ts index ce70940eab..407dc50f65 100644 --- a/lib/definitions/npm.d.ts +++ b/lib/definitions/npm.d.ts @@ -1,5 +1,5 @@ declare module "npm" { var cache: string; - var commands: any[]; - function load(config: Object, callback: (err: any, data: any) => void); + var commands: { [index: string]: any }; + function load(config: Object, callback: (err: any, data: any) => void): void; } \ No newline at end of file diff --git a/lib/definitions/osenv.d.ts b/lib/definitions/osenv.d.ts index e02de9be32..7ef7d68b36 100644 --- a/lib/definitions/osenv.d.ts +++ b/lib/definitions/osenv.d.ts @@ -1,3 +1,3 @@ declare module "osenv" { - function home(); + function home(): string; } \ No newline at end of file diff --git a/lib/definitions/shelljs.d.ts b/lib/definitions/shelljs.d.ts index 518e2063e2..be2b18b8c7 100644 --- a/lib/definitions/shelljs.d.ts +++ b/lib/definitions/shelljs.d.ts @@ -2,6 +2,6 @@ declare module "shelljs" { function cp(arg: string, sourcePath: string, destinationPath: string): void; function cp(arg: string, sourcePath: string[], destinationPath: string): void; function sed(arg: string, oldValue: any, newValue: string, filePath: string): void; - function mv(source: string[], destination: string); + function mv(source: string[], destination: string): void; function grep(what: any, where: string): any; } \ No newline at end of file diff --git a/lib/node-package-manager.ts b/lib/node-package-manager.ts index 21a8d2623e..d87acfaec5 100644 --- a/lib/node-package-manager.ts +++ b/lib/node-package-manager.ts @@ -67,7 +67,7 @@ export class NodePackageManager implements INodePackageManager { this.$logger.trace("Installing", packageName); var future = new Future(); - npm.commands["install"](pathToSave, packageName, (err, data) => { + npm.commands["install"](pathToSave, packageName, (err: Error, data: any) => { if(err) { future.throw(err); } else { diff --git a/lib/services/ios-project-service.ts b/lib/services/ios-project-service.ts index a9712bebc2..b08217c693 100644 --- a/lib/services/ios-project-service.ts +++ b/lib/services/ios-project-service.ts @@ -84,7 +84,7 @@ class IOSProjectService implements IPlatformProjectService { "-configuration", options.release, "build" ]; - var args = []; + var args: string[] = []; if(options.device) { args = basicArgs.concat([ diff --git a/lib/services/platform-service.ts b/lib/services/platform-service.ts index df9464b77b..98338d5188 100644 --- a/lib/services/platform-service.ts +++ b/lib/services/platform-service.ts @@ -7,7 +7,7 @@ import constants = require("./../constants"); import helpers = require("./../common/helpers"); class PlatformsData implements IPlatformsData { - private platformsData = {}; + private platformsData : { [index: string]: any } = {}; constructor($androidProjectService: IPlatformProjectService, $iOSProjectService: IPlatformProjectService) { @@ -22,7 +22,7 @@ class PlatformsData implements IPlatformsData { return Object.keys(this.platformsData); } - public getPlatformData(platform): IPlatformData { + public getPlatformData(platform: string): IPlatformData { return this.platformsData[platform]; } }