Add type annotations to functions

This commit is contained in:
Richard Hua 2015-11-09 15:18:14 -08:00
Родитель c61bc3b4c5
Коммит 73c6cbc27e
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

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