Deprecate @types/socket.io
See original GitHub issueIs your feature request related to a problem? Please describe.
When using version 3+ of Socket.io the @types/socket.io
should not be any used anymore. This is only briefly mentioned in the upgrade guide and easy to miss. Missing it causes all kinds of strange compilation problems.
Describe the solution you’d like
Deprecate the typings so that a warning is shown on npm install
.
Describe alternatives you’ve considered
Additional context A guiding example could be the way it’s done for https://www.npmjs.com/package/@types/classnames which upon installation gives
warning @types/classnames@2.3.1: This is a stub types definition. classnames provides its own type definitions, so you do not need this installed.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:10 (3 by maintainers)
Top Results From Across the Web
@types/socket.io - npm
Start using @types/socket.io in your project by running `npm i @types/socket.io`. ... This package has been deprecated. Author message:.
Read more >@types/socket.io | Yarn
@types/socket.io. types780.5kMITdeprecated3.0.2. This is a stub types definition. socket.io provides its own type definitions, so you do not need this ...
Read more >Migrating from 2.x to 3.0 - Socket.IO
This method was deprecated in the 1.0 release and kept for backward-compatibility. It is now removed. It was replaced by middlewares.
Read more >@types/socket.io-client - npm package | Snyk
Learn more about @types/socket.io-client: package health score, popularity, security, maintenance, versions and more.
Read more >Getting error while calling IO in socket.io-client, angular 8
But they are included in the npm package now. So just remove them: npm uninstall @types/socket.io-client . – Martin Schneider. Feb 15, 2021 ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Ahnert1 It means that with recent versions of
socket.io
the strong types are built-in and requires no additional packages.Great!
@memark thanks a lot 👍