From 2bd78669e8bde181bcb8a8f2d285191687c7260d Mon Sep 17 00:00:00 2001 From: "Kamat, Trivikram" <16024985+trivikr@users.noreply.github.com> Date: Thu, 8 Aug 2024 09:09:55 -0700 Subject: [PATCH 1/2] Remove type assertion for ImportSpecifierType --- src/transforms/v2-to-v3/ts-type/getClientTypeNames.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/transforms/v2-to-v3/ts-type/getClientTypeNames.ts b/src/transforms/v2-to-v3/ts-type/getClientTypeNames.ts index 21e1bbcda..2dd0c08cb 100644 --- a/src/transforms/v2-to-v3/ts-type/getClientTypeNames.ts +++ b/src/transforms/v2-to-v3/ts-type/getClientTypeNames.ts @@ -1,6 +1,5 @@ import type { Collection, JSCodeshift, TSQualifiedName, TSTypeReference } from "jscodeshift"; -import type { ImportSpecifierType } from "../modules"; import { getImportSpecifiers } from "../modules/importModule"; import { getClientDeepImportPath } from "../utils"; import { @@ -52,7 +51,7 @@ export const getClientTypeNames = ( clientTypeNames.push( ...getImportSpecifiers(j, source, getClientDeepImportPath(v2ClientName)) .filter((importSpecifier) => importSpecifier.importedName) - .map((importSpecifier) => (importSpecifier as ImportSpecifierType).localName) + .map((importSpecifier) => importSpecifier.localName) ); return [...new Set(clientTypeNames)]; From 4a701167ea33107d2228bde1b5d12f544bc05838 Mon Sep 17 00:00:00 2001 From: "Kamat, Trivikram" <16024985+trivikr@users.noreply.github.com> Date: Thu, 8 Aug 2024 09:10:18 -0700 Subject: [PATCH 2/2] chore: yarn changeset --- .changeset/soft-books-wink.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/soft-books-wink.md diff --git a/.changeset/soft-books-wink.md b/.changeset/soft-books-wink.md new file mode 100644 index 000000000..7add58dc2 --- /dev/null +++ b/.changeset/soft-books-wink.md @@ -0,0 +1,5 @@ +--- +"aws-sdk-js-codemod": patch +--- + +Remove type assertion for ImportSpecifierType