From 1d97ae62b63de876c7b73aff2ca152d57f787495 Mon Sep 17 00:00:00 2001 From: Titian Cernicova-Dragomir Date: Wed, 11 Sep 2019 21:20:55 +0300 Subject: [PATCH] Update src/services/refactors/extractSymbol.ts Fixed typo in comment Co-Authored-By: Orta --- src/services/refactors/extractSymbol.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 };