Skip to content

Conversation

@sandersn
Copy link
Contributor

TS 4.8 improves narrowing of type predicates when a union is passed in. This changes the return type of a couple of underscore and weak-napi functions. For now I just updated the tests, since underscore's change is pretty minor. And weak-napi's types probably need to be rewritten substantially, which would probably result in fixing this change.

See microsoft/TypeScript#49625 for the change.

TS 4.8 improves narrowing of type predicates when a union is passed in.
This changes the return type of a couple of underscore and weak-napi
functions. For now I just updated the tests, since underscore's change
is pretty minor. And weak-napi's types
probably need to be rewritten substantially, which would probably result
in fixing this change.

See microsoft/TypeScript#49625 for the change.
@typescript-bot
Copy link
Contributor

typescript-bot commented Jul 22, 2022

@sandersn Thank you for submitting this PR!

This is a live comment which I will keep updated.

2 packages in this PR

Code Reviews

Because this PR edits multiple packages, it can be merged once it's reviewed by a DT maintainer.

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

Status

  • ✅ No merge conflicts
  • ✅ Continuous integration tests have passed
  • 🕐 A DT maintainer needs to approve changes which affect more than one package

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": 61419,
  "author": "sandersn",
  "headCommitOid": "399faf690c0f6317050eac380ded07526179489a",
  "mergeBaseOid": "6203b4a07c83db25b9b420a837d46284a4b565b7",
  "lastPushDate": "2022-07-22T22:23:44.000Z",
  "lastActivityDate": "2022-07-22T22:40:45.000Z",
  "hasMergeConflict": false,
  "isFirstContribution": false,
  "tooManyFiles": false,
  "hugeChange": false,
  "popularityLevel": "Popular",
  "pkgInfo": [
    {
      "name": "underscore",
      "kind": "edit",
      "files": [
        {
          "path": "types/underscore/underscore-tests.ts",
          "kind": "test"
        }
      ],
      "owners": [
        "borisyankov",
        "jbaldwin",
        "ccurrens",
        "confususs",
        "jgonggrijp",
        "ffflorian",
        "regevbr",
        "peterblazejewicz",
        "reubenrybnik"
      ],
      "addedOwners": [],
      "deletedOwners": [],
      "popularityLevel": "Popular"
    },
    {
      "name": "weak-napi",
      "kind": "edit",
      "files": [
        {
          "path": "types/weak-napi/weak-napi-tests.ts",
          "kind": "test"
        }
      ],
      "owners": [
        "DefinitelyTyped"
      ],
      "addedOwners": [],
      "deletedOwners": [],
      "popularityLevel": "Well-liked by everyone"
    }
  ],
  "reviews": [],
  "mainBotCommentID": 1192985208,
  "ciResult": "pass"
}

@typescript-bot typescript-bot added Popular package This PR affects a popular package (as counted by NPM download counts). Edits multiple packages labels Jul 22, 2022
@typescript-bot
Copy link
Contributor

🔔 @borisyankov @jbaldwin @ccurrens @confususs @jgonggrijp @ffflorian @regevbr @peterblazejewicz @reubenrybnik @DefinitelyTyped — 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.

@sandersn sandersn merged commit 6a6411f into master Jul 22, 2022
@sandersn sandersn deleted the update-underscore/weak-napi-tests-for-4.8 branch July 22, 2022 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Edits multiple packages Popular package This PR affects a popular package (as counted by NPM download counts).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants