Skip to content

Restore string in all non-printf-style overloads to accept message union types like string | Error - #75846

Open
ulrichb wants to merge 1 commit into
DefinitelyTyped:masterfrom
ulrichb:NodeAssertOverloads
Open

ulrichb wants to merge 1 commit into
DefinitelyTyped:masterfrom
ulrichb:NodeAssertOverloads

Conversation

@ulrichb

@ulrichb ulrichb commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor
  • This was a regression of the node 26 typings introduced in f92b5dc.

Please fill in this template.

Select one of these and delete the others:

If changing an existing definition:

@typescript-automation

typescript-automation Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

@ulrichb Thank you for submitting this PR!

This is a live comment that 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 passed
  • 🕐 Most recent commit is approved by a DT maintainer

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": 75846,
  "author": "ulrichb",
  "headCommitOid": "6da3230d1e7c8dd0717e3d713efd16b428a5081c",
  "mergeBaseOid": "7347d8e7f785a39a6e499c13d4563304d4170ede",
  "lastPushDate": "2026-10-24T23:03:08.000Z",
  "lastActivityDate": "2026-10-24T23:03:08.000Z",
  "hasMergeConflict": false,
  "isFirstContribution": false,
  "tooManyFiles": false,
  "hugeChange": false,
  "tooManyCommits": false,
  "tooManyReviews": false,
  "popularityLevel": "Critical",
  "pkgInfo": [
    {
      "name": "node",
      "version": "26.6",
      "kind": "edit",
      "files": [
        {
          "path": "types/node/assert.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/assert/strict.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/node-tests/assert.ts",
          "kind": "test"
        }
      ],
      "owners": [
        "Microsoft",
        "jkomyno",
        "r3nya",
        "btoueg",
        "touffy",
        "mohsen1",
        "galkin",
        "eps1lon",
        "WilcoBakker",
        "trivikr",
        "yoursunny",
        "ExE-Boss",
        "peterblazejewicz",
        "addaleax",
        "NodeJS",
        "LinusU",
        "wafuwafu13",
        "mcollina",
        "Semigradsky",
        "Renegade334",
        "anonrig"
      ],
      "addedOwners": [],
      "deletedOwners": [],
      "popularityLevel": "Critical"
    }
  ],
  "reviews": [],
  "mainBotCommentID": 6390572594,
  "ciResult": "pass"
}

@typescript-automation

Copy link
Copy Markdown
Contributor

🔔 @microsoft @jkomyno @r3nya @btoueg @Touffy @mohsen1 @galkin @eps1lon @WilcoBakker @trivikr @yoursunny @ExE-Boss @peterblazejewicz @addaleax @nodejs @LinusU @wafuwafu13 @mcollina @Semigradsky @Renegade334 @anonrig — please review this PR in the next few days. Be sure to explicitly select Approve or Request Changes in the GitHub UI so I know what's going on.

…union types like `string | Error`

* This was a regression of the node 26 typings introduced in f92b5dc.
@ulrichb
ulrichb force-pushed the NodeAssertOverloads branch from e9aa0bf to 6da3230 Compare October 24, 2026 23:03
@typescript-automation typescript-automation Bot moved this from Waiting for Code Reviews to Needs Maintainer Review in Pull Request Status Board Oct 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Needs Maintainer Review

Development

Successfully merging this pull request may close these issues.

1 participant