mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-03-29 08:58:23 +08:00
* Seems like the error callback is malformatted New to typescript, but it complains on my cb function since it expects an error argument and doesn't return an object. I proposed these changes, but haven't done any typescripting really (trying to migrate to TS), so feel free to deny this PR if it's wrong. I did check with the source code in ws before suggesting this though. * Updated argument with an optional any type