Skip to content

[Feature]: Replace TSTypeReference inside NewExpression #657

Open
@trivikr

Description

@trivikr

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestp3This is a minor priority issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions