Add type annotations to functions
This commit is contained in:
Родитель
c61bc3b4c5
Коммит
73c6cbc27e
|
@ -582,7 +582,7 @@ function printDeploymentList(command: cli.IDeploymentListCommand, deployments: D
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function printJson(object: any) {
|
function printJson(object: any): void {
|
||||||
log(JSON.stringify(object, /*replacer=*/ null, /*spacing=*/ 2));
|
log(JSON.stringify(object, /*replacer=*/ null, /*spacing=*/ 2));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@ import * as cli from "../definitions/cli";
|
||||||
import * as cmdexec from "../script/command-executor";
|
import * as cmdexec from "../script/command-executor";
|
||||||
import * as os from "os";
|
import * as os from "os";
|
||||||
|
|
||||||
function assertJsonDescribesObject(json: string, object: Object) {
|
function assertJsonDescribesObject(json: string, object: Object): void {
|
||||||
// Make sure JSON is indented correctly
|
// Make sure JSON is indented correctly
|
||||||
assert.equal(json, JSON.stringify(object, /*replacer=*/ null, /*spacing=*/ 2));
|
assert.equal(json, JSON.stringify(object, /*replacer=*/ null, /*spacing=*/ 2));
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче