Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Importing local declare module types results in reference to missing module file #67

@legobeat

Description

@legobeat

Description

// src/foo.d.ts
declare module 'foo' {
  export { X: string };
}

// src/index.ts
import type { X } from 'foo';

Results a built file with reference to src/foo.d.ts - maybe this should be copied over to the dist?

Steps to reproduce

Refer to:

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions