We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05442bb commit 445e95eCopy full SHA for 445e95e
src/transforms/v2-to-v3/apis/getV2ClientIdentifiers.ts
@@ -10,11 +10,13 @@ export interface GetV2ClientIdentifiersOptions {
10
v2GlobalName?: string;
11
}
12
13
+export type V2ClientIdentifier = Identifier | ThisMemberExpression;
14
+
15
export const getV2ClientIdentifiers = (
16
j: JSCodeshift,
17
source: Collection<unknown>,
18
options: GetV2ClientIdentifiersOptions
-): (Identifier | ThisMemberExpression)[] => {
19
+): V2ClientIdentifier[] => {
20
const namesFromNewExpr = getV2ClientIdNamesFromNewExpr(j, source, options);
21
const namesFromTSTypeRef = getV2ClientIdNamesFromTSTypeRef(j, source, options);
22
const clientIdNames = [...new Set([...namesFromNewExpr, ...namesFromTSTypeRef])];
0 commit comments