Skip to content

Commit 33e4c7a

Browse files
author
Andy Hanson
committed
Respond to PR comment
1 parent f6cee27 commit 33e4c7a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/compiler/emitter.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -6157,12 +6157,11 @@ const _super = (function (geti, seti) {
61576157
/** Serializes the return type of function. Used by the __metadata decorator for a method. */
61586158
function emitSerializedReturnTypeOfNode(node: Node) {
61596159
if (node && isFunctionLike(node)) {
6160-
const fn = <FunctionLikeDeclaration>node;
6161-
if (fn.type) {
6160+
if ((<FunctionLikeDeclaration>node).type) {
61626161
emitSerializedTypeNode((<FunctionLikeDeclaration>node).type);
61636162
return;
61646163
}
6165-
else if (isAsyncFunctionLike(fn)) {
6164+
else if (isAsyncFunctionLike(<FunctionLikeDeclaration>node)) {
61666165
write("Promise");
61676166
return;
61686167
}

0 commit comments

Comments
 (0)