Skip to content

Commit e9efdd5

Browse files
authored
Remove type assertion for ImportSpecifierType (#932)
1 parent 49ff721 commit e9efdd5

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.changeset/soft-books-wink.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"aws-sdk-js-codemod": patch
3+
---
4+
5+
Remove type assertion for ImportSpecifierType

src/transforms/v2-to-v3/ts-type/getClientTypeNames.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import type { Collection, JSCodeshift, TSQualifiedName, TSTypeReference } from "jscodeshift";
22

3-
import type { ImportSpecifierType } from "../modules";
43
import { getImportSpecifiers } from "../modules/importModule";
54
import { getClientDeepImportPath } from "../utils";
65
import {
@@ -52,7 +51,7 @@ export const getClientTypeNames = (
5251
clientTypeNames.push(
5352
...getImportSpecifiers(j, source, getClientDeepImportPath(v2ClientName))
5453
.filter((importSpecifier) => importSpecifier.importedName)
55-
.map((importSpecifier) => (importSpecifier as ImportSpecifierType).localName)
54+
.map((importSpecifier) => importSpecifier.localName)
5655
);
5756

5857
return [...new Set(clientTypeNames)];

0 commit comments

Comments
 (0)