mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-20 13:45:34 -05:00
Fix typo and capitalization
This commit is contained in:
@@ -2682,7 +2682,7 @@ namespace ts {
|
||||
|
||||
function buildReturnTypeDisplay(signature: Signature, writer: SymbolWriter, enclosingDeclaration?: Node, flags?: TypeFormatFlags, symbolStack?: Symbol[]) {
|
||||
const returnType = getReturnTypeOfSignature(signature);
|
||||
if (flags & TypeFormatFlags.supressAnyReturnType && isTypeAny(returnType)) {
|
||||
if (flags & TypeFormatFlags.SuppressAnyReturnType && isTypeAny(returnType)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -2364,7 +2364,7 @@ namespace ts {
|
||||
InFirstTypeArgument = 0x00000100, // Writing first type argument of the instantiated type
|
||||
InTypeAlias = 0x00000200, // Writing type in type alias declaration
|
||||
UseTypeAliasValue = 0x00000400, // Serialize the type instead of using type-alias. This is needed when we emit declaration file.
|
||||
supressAnyReturnType = 0x00000800, // If the return type is any-like, don't offer a return type.
|
||||
SuppressAnyReturnType = 0x00000800, // If the return type is any-like, don't offer a return type.
|
||||
}
|
||||
|
||||
export const enum SymbolFormatFlags {
|
||||
|
||||
@@ -1439,7 +1439,7 @@ namespace ts {
|
||||
return "";
|
||||
}
|
||||
// TODO: (arozga) Deal with multiple signatures.
|
||||
const sigString = checker.signatureToString(signatures[0], enclosingDeclaration, TypeFormatFlags.supressAnyReturnType, SignatureKind.Call);
|
||||
const sigString = checker.signatureToString(signatures[0], enclosingDeclaration, TypeFormatFlags.SuppressAnyReturnType, SignatureKind.Call);
|
||||
|
||||
return `${visibility}${name}${sigString}${getMethodBodyStub(newlineChar)}`;
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user