mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Respond to PR comment
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user