Skip to content

Tsdown does not detect import as a typed import in all cases causing missing export warning #744

@kalvenschraut

Description

@kalvenschraut

Reproduction link or steps

https://github.com/RTVision/invalid-dts-generation/tree/invalid-type-gen

What is expected?

run build and no warning about missing export

What is actually happening?

Image

above warning saying if meant to add as a type import add type identifier

Any additional comments?

the type identifier is present just outside the curlies
https://github.com/RTVision/invalid-dts-generation/blob/invalid-type-gen/src/DbUpdate.ts#L1

Image

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions