llrt icon indicating copy to clipboard operation
llrt copied to clipboard

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

Open everett1992 opened this issue 1 year ago • 1 comments

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.

everett1992 avatar Feb 12 '24 01:02 everett1992

That's a great idea! Thanks for the suggestion

richarddavison avatar Feb 12 '24 06:02 richarddavison