Correct typo - pass correct argument

All of the other calls in extractSymbol are already correct.
This commit is contained in:
Andrew Casey committed 2017-10-30 11:21:22 -07:00
1 parent d8aafeef0a
commit aa59a69e14
1 file changed
+1 -1
+1 -1
View File
@@ -730,7 +730,7 @@ namespace ts.refactor.extractSymbol {
let type = checker.getTypeOfSymbolAtLocation(usage.symbol, usage.node);
// Widen the type so we don't emit nonsense annotations like "function fn(x: 3) {"
type = checker.getBaseTypeOfLiteralType(type);
typeNode = checker.typeToTypeNode(type, node, NodeBuilderFlags.NoTruncation);
typeNode = checker.typeToTypeNode(type, scope, NodeBuilderFlags.NoTruncation);
}
const paramDecl = createParameter(