Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add exports.*.types instead of @ts-self-types #977

Open
ai opened this issue Feb 22, 2025 · 0 comments
Open

Add exports.*.types instead of @ts-self-types #977

ai opened this issue Feb 22, 2025 · 0 comments

Comments

@ai
Copy link

ai commented Feb 22, 2025

As I understand for JS files needs Deno a way to find .d.ts types without scanning file system. Right now we are using comments like /* @ts-self-types="./index.d.ts" */.

Adding these comments doesn’t look beautiful for me and for esthetic reasons I prefer to have something like:

{
  "name": "@sitnik/nanoid",
  "version": "5.1.0",
  "license": "MIT",
  "exports": {
    ".": {
      "types": "./index.d.ts",
      "default": "./index.js"
    }
  }
}
@github-project-automation github-project-automation bot moved this to Needs Triage in JSR Feb 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Needs Triage
Development

No branches or pull requests

1 participant