Skip to content

Support ESM #95

Closed
Closed
@sindresorhus

Description

@sindresorhus
Collaborator

I have started to convert some of my packages to ESM and I noticed an issue:

index.test-d.ts:4:0
  ✖  2:7  Module "/Users/sindresorhus/dev/oss/array-union/index" can only be default-imported using the esModuleInterop flag

I think we should set esModuleInterop in tsd for now to work around TS's lack of ESM support.

Activity

added a commit that references this issue on Sep 4, 2024
d2284a1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

        Participants

        @sindresorhus

        Issue actions

          Support ESM · Issue #95 · tsdjs/tsd