diff --git a/src/compiler/emitter.ts b/src/compiler/emitter.ts index 2c235f9fdca..fdd0d11f120 100644 --- a/src/compiler/emitter.ts +++ b/src/compiler/emitter.ts @@ -5009,7 +5009,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi /** Serializes the return type of function. Used by the __metadata decorator for a method. */ function emitSerializedReturnTypeOfNode(node: Node): string | string[] { - if (node && isFunctionLike(node)) { + if (node && isFunctionLike(node) && (node).type) { emitSerializedTypeNode((node).type); return; }