Skip to content

Conversation

@ghost
Copy link

@ghost ghost commented Jan 23, 2024

Please fill in this template.

If changing an existing definition:

  • Provide a URL to documentation or source code which provides context for the suggested changes: <>
  • If this PR brings the type definitions up to date with a new version of the JS library, update the version number in the package.json.

@ghost ghost requested review from eps1lon and peterblazejewicz as code owners January 23, 2024 05:23
@typescript-bot
Copy link
Contributor

typescript-bot commented Jan 23, 2024

@codershiba Thank you for submitting this PR!

This is a live comment which I will keep updated.

1 package in this PR

Code Reviews

Because this is a widely-used package, a DT maintainer will need to review it before it can be merged.

You can test the changes of this PR in the Playground.

Status

  • ✅ No merge conflicts
  • ❌ Continuous integration tests have failed
  • 🕐 Only a DT maintainer can approve changes without tests

Once every item on this list is checked, I'll ask you for permission to merge and publish the changes.


Diagnostic Information: What the bot saw about this PR
{
  "type": "info",
  "now": "-",
  "pr_number": 68291,
  "author": "codershiba",
  "headCommitOid": "5575f6abbbb2ab014c46c99fc185fd95f2c4fa47",
  "mergeBaseOid": "7428cc9dec89e7e26692334698f85f721b12ab87",
  "lastPushDate": "2024-01-23T05:23:54.000Z",
  "lastActivityDate": "2024-01-23T09:09:19.000Z",
  "hasMergeConflict": false,
  "isFirstContribution": false,
  "tooManyFiles": false,
  "hugeChange": false,
  "popularityLevel": "Critical",
  "pkgInfo": [
    {
      "name": "node",
      "kind": "edit",
      "files": [
        {
          "path": "types/node/events.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/module.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/stream.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/ts4.8/events.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/ts4.8/module.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/ts4.8/stream.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/v16/events.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/v16/module.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/v16/stream.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/v16/ts4.8/events.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/v16/ts4.8/module.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/v16/ts4.8/stream.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/v18/events.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/v18/module.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/v18/stream.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/v18/ts4.8/events.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/v18/ts4.8/module.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/v18/ts4.8/stream.d.ts",
          "kind": "definition"
        }
      ],
      "owners": [
        "Microsoft",
        "jkomyno",
        "alvis",
        "r3nya",
        "btoueg",
        "smac89",
        "touffy",
        "DeividasBakanas",
        "eyqs",
        "Hannes-Magnusson-CK",
        "hoo29",
        "kjin",
        "ajafff",
        "islishude",
        "mwiktorczyk",
        "mohsen1",
        "n-e",
        "galkin",
        "parambirs",
        "eps1lon",
        "ThomasdenH",
        "WilcoBakker",
        "wwwy3y3",
        "samuela",
        "kuehlein",
        "bhongy",
        "chyzwar",
        "trivikr",
        "yoursunny",
        "qwelias",
        "ExE-Boss",
        "peterblazejewicz",
        "addaleax",
        "victorperin",
        "ZYSzys",
        "NodeJS",
        "LinusU",
        "wafuwafu13",
        "mcollina",
        "Semigradsky"
      ],
      "addedOwners": [],
      "deletedOwners": [],
      "popularityLevel": "Critical"
    }
  ],
  "reviews": [],
  "mainBotCommentID": 1905314748,
  "ciResult": "fail",
  "ciUrl": "https://github.com/DefinitelyTyped/DefinitelyTyped/commit/5575f6abbbb2ab014c46c99fc185fd95f2c4fa47/checks?check_suite_id=20030027498"
}

@typescript-bot typescript-bot added Critical package Untested Change This PR does not touch tests labels Jan 23, 2024
@typescript-bot
Copy link
Contributor

@typescript-bot typescript-bot added the The CI failed When GH Actions fails label Jan 23, 2024
@typescript-bot
Copy link
Contributor

@codershiba The CI build failed! Please review the logs for more information.

Once you've pushed the fixes, the build will automatically re-run. Thanks!

Note: builds which are failing do not end up on the list of PRs for the DT maintainers to review.

}
declare module "node:events" {
import events = require("events");
import type events = require("events");
Copy link
Contributor

@Semigradsky Semigradsky Jan 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why? It is not a type only

@ghost ghost marked this pull request as draft January 23, 2024 10:11
@peterblazejewicz
Copy link
Member

for transparency: x-ref #68285

@Semigradsky
Copy link
Contributor

@codershiba it looks like this PR can be closed. It was bug in TS and it was fixed.

@jakebailey
Copy link
Member

Yeah, fixed in microsoft/TypeScript#57148.

@jakebailey jakebailey closed this Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Critical package The CI failed When GH Actions fails Untested Change This PR does not touch tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants