We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6cee27 commit 33e4c7aCopy full SHA for 33e4c7a
src/compiler/emitter.ts
@@ -6157,12 +6157,11 @@ const _super = (function (geti, seti) {
6157
/** Serializes the return type of function. Used by the __metadata decorator for a method. */
6158
function emitSerializedReturnTypeOfNode(node: Node) {
6159
if (node && isFunctionLike(node)) {
6160
- const fn = <FunctionLikeDeclaration>node;
6161
- if (fn.type) {
+ if ((<FunctionLikeDeclaration>node).type) {
6162
emitSerializedTypeNode((<FunctionLikeDeclaration>node).type);
6163
return;
6164
}
6165
- else if (isAsyncFunctionLike(fn)) {
+ else if (isAsyncFunctionLike(<FunctionLikeDeclaration>node)) {
6166
write("Promise");
6167
6168
0 commit comments