Skip to content
This repository was archived by the owner on Aug 4, 2021. It is now read-only.
This repository was archived by the owner on Aug 4, 2021. It is now read-only.

export of interface from package results in error #109

Closed
@maciejw

Description

@maciejw

I have a ts module that exports an interface and then I reexport it in index.ts as a public contract for ts users.

I think that rollup expects that exported type is a class or function, type that is emitted to js also.

[!] Error: 'InterfaceXXX' is not exported by src\types.ts
https://github.com/rollup/rollup/wiki/Troubleshooting#name-is-not-exported-by-module

this code works fine when I transpile it using tsc.

is my diagnose correct?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions