diff --git a/src/services/refactors/extractSymbol.ts b/src/services/refactors/extractSymbol.ts index df8be2808ff..8a4003ac4a2 100644 --- a/src/services/refactors/extractSymbol.ts +++ b/src/services/refactors/extractSymbol.ts @@ -1107,7 +1107,7 @@ namespace ts.refactor.extractSymbol { return { renameFilename, renameLocation, edits }; function transformFunctionInitializerAndType(variableType: TypeNode | undefined, initializer: Expression): { variableType: TypeNode | undefined, initializer: Expression } { - // If no contextual type exists there is noting to transfer to the function signature + // If no contextual type exists there is nothing to transfer to the function signature if (variableType === undefined) return { variableType, initializer }; // Only do this for function expressions and arrow functions that are not generic if (!isFunctionExpression(initializer) && !isArrowFunction(initializer) || !!initializer.typeParameters) return { variableType, initializer };