max-mapper / websocket-stream

websockets with the node stream API
BSD 2-Clause "Simplified" License
667 stars 114 forks source link

types: improve typing of ClientOptions #151

Open yoursunny opened 4 years ago

yoursunny commented 4 years ago

Also, this commit moves @types/ws from devDependencies to dependencies. This is required for correct type checking in TypeScript projects, because @types/ws is being exposed as part of public API in this package's typing. Without this, TypeScript projects with --noImplicitAny setting would have compilation errors.