Respond to PR comment

This commit is contained in:
Andy Hanson
2016-06-14 06:50:44 -07:00
parent f6cee27af9
commit 33e4c7a9a3
+2 -3
View File
@@ -6157,12 +6157,11 @@ const _super = (function (geti, seti) {
/** Serializes the return type of function. Used by the __metadata decorator for a method. */
function emitSerializedReturnTypeOfNode(node: Node) {
if (node && isFunctionLike(node)) {
const fn = <FunctionLikeDeclaration>node;
if (fn.type) {
if ((<FunctionLikeDeclaration>node).type) {
emitSerializedTypeNode((<FunctionLikeDeclaration>node).type);
return;
}
else if (isAsyncFunctionLike(fn)) {
else if (isAsyncFunctionLike(<FunctionLikeDeclaration>node)) {
write("Promise");
return;
}