Skip to content

Commit b5a025c

Browse files
authored
Fix typo decleration -> declaration (#94)
1 parent 1af8c97 commit b5a025c

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/transforms/v2-to-v3/utils/addV3ClientImport.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const addV3ClientImport = (
1313
source: { value: v3ClientPackageName },
1414
});
1515

16-
// Import decleration already exists.
16+
// Import declaration already exists.
1717
if (existingImports.size()) {
1818
existingImports.forEach((nodePath) => {
1919
// Append to existing import if specifier not present.

src/transforms/v2-to-v3/utils/addV3ClientRequire.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export const addV3ClientRequire = (
2727
},
2828
});
2929

30-
// Require decleration already exists.
30+
// Require declaration already exists.
3131
if (existingRequires.size()) {
3232
existingRequires.forEach((nodePath) => {
3333
// Append to existing require if property not present.

src/transforms/v2-to-v3/utils/removeImportIdentifierName.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ export const removeImportIdentifierName = (
1515
specifiers: [{ local: { name: identifierName } }],
1616
source: { value: literalValue },
1717
})
18-
.forEach((declerationPath) => {
18+
.forEach((declarationPath) => {
1919
// Remove default import from ImportDeclaration.
20-
declerationPath.value.specifiers = declerationPath.value.specifiers.filter(
20+
declarationPath.value.specifiers = declarationPath.value.specifiers.filter(
2121
(specifier) => specifier.local.name !== identifierName
2222
);
2323
// Remove ImportDeclaration if there are no other imports.
24-
if (declerationPath.value.specifiers.length === 0) {
25-
j(declerationPath).remove();
24+
if (declarationPath.value.specifiers.length === 0) {
25+
j(declarationPath).remove();
2626
}
2727
});
2828
};

0 commit comments

Comments
 (0)