Skip to content

Automatic type definition file #48

@rj-au

Description

@rj-au

TL;DR
Would it be worth switching to TS first files, so the definition file isn't manually maintained?

Long read:
Would it be worth renaming the .js files to .ts and using tsup to transpile to cjs and esm, and adding exports for both in the package.json?

This way you won't need to maintain types manually in the .d.ts, definition file, and the imports for users is automatic.

Related to this PR: #47

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