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

provide @types/llrt .d.ts files for built in modules #122

Open
everett1992 opened this issue Feb 12, 2024 · 1 comment
Open

provide @types/llrt .d.ts files for built in modules #122

everett1992 opened this issue Feb 12, 2024 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed javascript Pull requests that update Javascript code

Comments

@everett1992
Copy link

Expressing the Node.js compatibility matrix and API guide as typescript .d.ts files would let users statically check that they are only using supported features, and provide inline IDE documentation.

Users could rely on @types/node but would have to guess at the target version (is it 20, 18, 22?) and remember which APIs aren't supported or rely on tests.

@richarddavison
Copy link
Contributor

That's a great idea! Thanks for the suggestion

@richarddavison richarddavison added enhancement New feature or request javascript Pull requests that update Javascript code help wanted Extra attention is needed labels Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed javascript Pull requests that update Javascript code
Projects
None yet
Development

No branches or pull requests

2 participants