{
  "schemaVersion": "ebb.rule.v1",
  "id": "npm.package.types.socket.io-client.deprecated",
  "ecosystem": "npm",
  "purl": "pkg:npm/%40types/socket.io-client",
  "affectedVersions": "vers:npm/3.0.0",
  "event": "deprecated",
  "severity": "low",
  "title": "@types/socket.io-client is deprecated",
  "summary": "npm marks @types/socket.io-client as deprecated: \"This is a stub types definition. socket.io-client provides its own type definitions, so you do not need this installed.\"",
  "replacement": "socket.io-client",
  "sources": [
    {
      "title": "@types/socket.io-client on npm",
      "url": "https://www.npmjs.com/package/@types/socket.io-client",
      "accessedAt": "2026-10-19"
    },
    {
      "title": "@types/socket.io-client version metadata",
      "url": "https://registry.npmjs.org/@types%2fsocket.io-client",
      "accessedAt": "2026-10-19"
    }
  ],
  "provenance": {
    "observedAt": "2026-10-19",
    "reviewedAt": "2026-10-19",
    "reviewer": "arminazimi"
  },
  "migration": {
    "constraints": [
      "@types/socket.io-client only declares types; socket.io-client now ships its own declarations, so no conflicting ambient definition may remain."
    ],
    "steps": [
      {
        "id": "remove-types-package",
        "title": "Remove the stub types package",
        "instructions": "Remove @types/socket.io-client from devDependencies and any explicit reference to it, such as a tsconfig.json compilerOptions.types entry.",
        "targets": "declaration"
      },
      {
        "id": "use-bundled-types",
        "title": "Use the bundled declarations",
        "instructions": "Keep socket.io-client on a version that ships its own type definitions and import its types from socket.io-client.",
        "targets": "usages"
      }
    ],
    "verification": [
      {
        "command": "npm run build --if-present",
        "purpose": "Type-check and build with socket.io-client's own declarations."
      },
      {
        "command": "npm run test --if-present",
        "purpose": "Run the repository tests when defined."
      }
    ]
  }
}
