Skip to content

Commit 1d97ae6

Browse files
dragomirtitianorta
andauthored
Update src/services/refactors/extractSymbol.ts
Fixed typo in comment Co-Authored-By: Orta <[email protected]>
1 parent 232ee60 commit 1d97ae6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/refactors/extractSymbol.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1107,7 +1107,7 @@ namespace ts.refactor.extractSymbol {
11071107
return { renameFilename, renameLocation, edits };
11081108

11091109
function transformFunctionInitializerAndType(variableType: TypeNode | undefined, initializer: Expression): { variableType: TypeNode | undefined, initializer: Expression } {
1110-
// If no contextual type exists there is noting to transfer to the function signature
1110+
// If no contextual type exists there is nothing to transfer to the function signature
11111111
if (variableType === undefined) return { variableType, initializer };
11121112
// Only do this for function expressions and arrow functions that are not generic
11131113
if (!isFunctionExpression(initializer) && !isArrowFunction(initializer) || !!initializer.typeParameters) return { variableType, initializer };

0 commit comments

Comments
 (0)