uNetworking / uWebSockets.js

μWebSockets for Node.js back-ends :metal:
Apache License 2.0
8.08k stars 574 forks source link

Fix typescript types issue with ESM #780

Closed amirrezamahyari closed 2 years ago

amirrezamahyari commented 2 years ago

Screen Shot 2022-08-02 at 4 08 18 PM

this tiny PR fixes ts types for esm

cklmercer commented 2 years ago

Tested this change locally and it works great! Would be awesome to have this merged.

e3dio commented 2 years ago

PR looks fine, docs for that exports/types field is here https://nodejs.org/api/packages.html#community-conditions-definitions and https://github.com/nodejs/node/pull/40708