diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index fa57345cbb2..46f1c353dd7 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -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; } diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 7e2b31b794a..7bd2db13ba2 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -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 { diff --git a/src/services/utilities.ts b/src/services/utilities.ts index f9610f81d07..98cf5e0adb8 100644 --- a/src/services/utilities.ts +++ b/src/services/utilities.ts @@ -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: