{
  "schemaVersion": "ebb.rule.v1",
  "id": "npm.package.types.koa-helmet.deprecated",
  "ecosystem": "npm",
  "purl": "pkg:npm/%40types/koa-helmet",
  "affectedVersions": "vers:npm/6.1.0",
  "event": "deprecated",
  "severity": "low",
  "title": "@types/koa-helmet is deprecated",
  "summary": "npm marks @types/koa-helmet as deprecated: \"This is a stub types definition. koa-helmet provides its own type definitions, so you do not need this installed.\"",
  "replacement": "koa-helmet",
  "sources": [
    {
      "title": "@types/koa-helmet on npm",
      "url": "https://www.npmjs.com/package/@types/koa-helmet",
      "accessedAt": "2026-10-19"
    },
    {
      "title": "@types/koa-helmet version metadata",
      "url": "https://registry.npmjs.org/@types%2fkoa-helmet",
      "accessedAt": "2026-10-19"
    }
  ],
  "provenance": {
    "observedAt": "2026-10-19",
    "reviewedAt": "2026-10-19",
    "reviewer": "arminazimi"
  },
  "migration": {
    "constraints": [
      "@types/koa-helmet only declares types; koa-helmet 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/koa-helmet 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 koa-helmet on a version that ships its own type definitions and import its types from koa-helmet.",
        "targets": "usages"
      }
    ],
    "verification": [
      {
        "command": "npm run build --if-present",
        "purpose": "Type-check and build with koa-helmet's own declarations."
      },
      {
        "command": "npm run test --if-present",
        "purpose": "Run the repository tests when defined."
      }
    ]
  }
}
