Skip to content

When the dts.resolve option is enabled and the type of axios is referenced using named imports, the type is not found #367

@Groupguanfang

Description

@Groupguanfang

Reproduction link or steps

https://stackblitz.com/edit/github-xd2oqbfm?file=src%2Findex.ts

What is expected?

When the dts.resolve option is enabled and the type of axios is referenced using named imports, the type is not found.

What is actually happening?

Actually I'm not sure if this is a bug, because in the .d.ts file it shows the type hint correctly, but it seems that resolving this type fails when tsdown builds:

Image

Any additional comments?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdts

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions