aws-sdk-js-codemod icon indicating copy to clipboard operation
aws-sdk-js-codemod copied to clipboard

[Feature]: Replace TSTypeReference inside NewExpression

Open trivikr opened this issue 1 year ago • 2 comments

Self-service

  • [ ] I'd be willing to implement this feature

Problem

Codemod does not transform TSTypeReference inside NewExpression

Example input:

import AWS from "aws-sdk";
const arr = new Array<AWS.CloudFormation.StackResourceSummary>();

Returned output:

const arr = new Array<AWS.CloudFormation.StackResourceSummary>();

Solution

Replace TSTypeReference inside NewExpression

import { StackResourceSummary } from "@aws-sdk/client-cloudformation";
const arr = new Array<StackResourceSummary>();

Alternatives

N/A

Additional context

No response

trivikr avatar Oct 26 '23 23:10 trivikr