Skip to content

Handle exporting types when --isolatedModules is on #17

@IgnusG

Description

@IgnusG

Describe the bug
When the isolatedModules option is on re-exporting types has to be done using export type ... from ... otherwise typescript throws an error.

To Reproduce
Steps to reproduce the behavior:

  1. Set compilerOptions.isolatedModules to true in tsconfig
  2. Run Action to write index.ts
  3. Exports are generated with a typescript error

Expected behavior
Types are exported using a separate export type statement along with the regular export

Screenshots
image

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions