Skip to content

Commit 2bd7866

Browse files
committed
Remove type assertion for ImportSpecifierType
1 parent 07e2379 commit 2bd7866

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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)