Skip to content

Imports in .d.ts file lack .js extension making them fail to typecheck #35

@msteen

Description

@msteen

None of the examples pass the TypeScript (5.5.2 in my case) checker due to package.json having set "type": "module" yet referencing imports without extensions. This causes TypeScript to fail to resolve the files, and causes core functions like signal (a re-export from ./signals) to fail. If I patch the .d.ts files to include the .js extension to the imports, TypeScript is able to resolve them again and properly typechecks.

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