-
Notifications
You must be signed in to change notification settings - Fork 15
Automatic type definition file #48
Copy link
Copy link
Closed
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels