question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Deprecate @types/socket.io

See original GitHub issue

Is 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:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
memarkcommented, Aug 19, 2021

@Ahnert1 It means that with recent versions of socket.io the strong types are built-in and requires no additional packages.

1reaction
darrachequesnecommented, May 14, 2021

Great!

$ npm i @types/socket.io
npm WARN deprecated @types/socket.io@3.0.2: This is a stub types definition. socket.io provides its own type definitions, so you do not need this installed.

@memark thanks a lot 👍

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found