uNetworking / uWebSockets.js

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

index.d.ts not linking properly #768

Closed lifeiscontent closed 2 years ago

lifeiscontent commented 2 years ago

Hi, first off, thanks for this project.

I'm trying to use it with TypeScript, and from what I've seen if I rename the index.d.ts to uws.d.ts everything works correctly, but as it stands, with the latest stable version of TS, the types don't correctly resolve.

also, for what its worth, when looking at the package.json in VSCode, I'm seeing an error that says this about the package name:

String does not match the pattern of "^(?:@[a-z0-9-*~][a-z0-9-*._~]*/)?[a-z0-9-~][a-z0-9-._~]*$".