We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8166cb2 commit dd5ee5bCopy full SHA for dd5ee5b
generator/codemods/utils/add-import.js
@@ -36,7 +36,7 @@ module.exports = function addImport(context, specifier, source) {
36
// add new specifier to the existing import declaration
37
matchedDecl.get(0).node.specifiers.push(newImportSpecifier)
38
} else {
39
- const newImportDecl = j.ImportDeclaration(
+ const newImportDecl = j.importDeclaration(
40
[newImportSpecifier],
41
j.stringLiteral(source)
42
)
0 commit comments