Tweak TS & add missing deps that may cause build failures in some envs

Connects-To: #765
Change-Type: patch
This commit is contained in:
Tim Perry 2018-02-16 15:52:45 +01:00
parent 3d28118f3e
commit c12360daa8
2 changed files with 4 additions and 2 deletions

View File

@ -22,11 +22,11 @@ const resin = ResinSdk.fromSharedOptions();
export function generateBaseConfig(
application: ResinSdk.Application,
options: {},
options: { appUpdatePollInterval?: number },
) {
options = _.mapValues(options, function(value, key) {
if (key === 'appUpdatePollInterval') {
return value * 60 * 1000;
return value! * 60 * 1000;
} else {
return value;
}

View File

@ -56,8 +56,10 @@
"devDependencies": {
"@types/archiver": "^2.0.1",
"@types/bluebird": "^3.5.19",
"@types/es6-promise": "0.0.32",
"@types/fs-extra": "^5.0.0",
"@types/is-root": "^1.0.0",
"@types/lodash": "^4.14.103",
"@types/mkdirp": "^0.5.2",
"@types/prettyjson": "0.0.28",
"@types/raven": "^2.1.2",