Skip to content

Feature: Allow adding a TS 4.5 style type import #103

Open
@IanVS

Description

@IanVS

I'm trying to write a codemod that changes from the old style of type imports:

import type {MyType} from './types';

to the newer style:

import {type MyType} from './types';

I saw you have some import helpers, but don't see anything that allows creation of an ImportSpecifier with importKind: "type", which I think is what is needed. Maybe you could consider adding it?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    📈 enhancementNew feature or request📚 docsImprovements or additions to documentation🙏 help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions