-
Notifications
You must be signed in to change notification settings - Fork 29.9k
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
issue with @types/ws? #25890
Comments
I found that to the latest type definitions for node fixed this problem:
|
yup! thx. |
This means that these types are only compatible with Closest thing I can find is that version 5.0.0 of |
I'm trying to use these types on node @6.12 and they're not working. |
I just downgraded |
@kyledetella a pull request has been submitted and should be completed in the next week or so. In the meantime you can add the following code to an empty .d.ts file in your project to get it to compile declare module 'net' {
export interface AddressInfo {}
} Writing on phone - sorry for mistakes. |
Thanks @Griffork. That did the trick! |
Looks like the fix has been merged. I haven't tested it yet though. |
node_modules/@types/ws/index.d.ts(179,24): error TS2694: Namespace '"net"' has no exported member 'AddressInfo'.
any ideas?
The text was updated successfully, but these errors were encountered: