Skip to content

Referenced types and renamings #286

Closed
@Atrue

Description

@Atrue

It’s kind of duplicate of #153 but I’d like to bring it up again.

Since there is a new collision-resolver feature, some types\enums\variables have a new name in a final file (like export type Type$1 = string). The main idea is to have a main TS logic works properly inside a d.ts file and to export only the result of this logic. So it looks like these types should be hidden by default.

For example, it may confuse someone if some autocomplete tools in an IDE suggest something like do you want to import Type$1 from ‘lib’?

I know about the exportReferencedTypes flag, but according to the above I think there are no much sense of this feature and maybe it’s better to remove it at all (make it false) or to disable it by default

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions