mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-03-16 06:28:12 -05:00
fix(49478): add return type to method signature (#49482)
This commit is contained in:
@@ -332,7 +332,7 @@ namespace ts.codefix {
|
||||
/*questionToken*/ undefined,
|
||||
typeParameters,
|
||||
parameters,
|
||||
type
|
||||
type === undefined ? factory.createKeywordTypeNode(SyntaxKind.UnknownKeyword) : type
|
||||
);
|
||||
case SyntaxKind.FunctionDeclaration:
|
||||
return factory.createFunctionDeclaration(
|
||||
|
||||
@@ -682,7 +682,7 @@ namespace ts.textChanges {
|
||||
return {
|
||||
indentation,
|
||||
prefix: (insertLeadingComma ? "," : "") + this.newLineCharacter,
|
||||
suffix: insertTrailingComma ? "," : ""
|
||||
suffix: insertTrailingComma ? "," : isInterfaceDeclaration(node) && isEmpty ? ";" : ""
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user