Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update power-assert types to include type assertions used in node's assert #56062

Merged

Conversation

ChristianMurphy
Copy link
Contributor

Please fill in this template.

If changing an existing definition:

This primarily leverages asserts and unknown similar to how node's assert module does.
Allowing for type narrowing through assertions.
In addition this re-enables a number of dtslint rules which were previously disabled, and resolves the associated issues.

@typescript-bot
Copy link
Contributor

typescript-bot commented Sep 29, 2021

@ChristianMurphy Thank you for submitting this PR!

This is a live comment which I will keep updated.

1 package in this PR

Code Reviews

Because you edited one package and updated the tests (👏), I can help you merge this PR once someone else signs off on it.

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 type definition owners, DT maintainers or others

All of the items on the list are green. To merge, you need to post a comment including the string "Ready to merge" to bring in your changes.


Diagnostic Information: What the bot saw about this PR
{
  "type": "info",
  "now": "-",
  "pr_number": 56062,
  "author": "ChristianMurphy",
  "headCommitOid": "de80745a4ca55ed3cc46cba93e7e9b286725d9f5",
  "lastPushDate": "2021-09-29T16:52:24.000Z",
  "lastActivityDate": "2021-09-29T17:03:16.000Z",
  "mergeOfferDate": "2021-09-29T16:57:43.000Z",
  "mergeRequestDate": "2021-09-29T17:03:16.000Z",
  "mergeRequestUser": "ChristianMurphy",
  "hasMergeConflict": false,
  "isFirstContribution": false,
  "tooManyFiles": false,
  "popularityLevel": "Well-liked by everyone",
  "pkgInfo": [
    {
      "name": "power-assert",
      "kind": "edit",
      "files": [
        {
          "path": "types/power-assert/index.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/power-assert/power-assert-tests.ts",
          "kind": "test"
        },
        {
          "path": "types/power-assert/tslint.json",
          "kind": "package-meta-ok"
        }
      ],
      "owners": [
        "vvakame"
      ],
      "addedOwners": [],
      "deletedOwners": [],
      "popularityLevel": "Well-liked by everyone"
    }
  ],
  "reviews": [
    {
      "type": "approved",
      "reviewer": "wooorm",
      "date": "2021-09-29T16:54:39.000Z",
      "isMaintainer": false
    }
  ],
  "mainBotCommentID": 930343191,
  "ciResult": "pass"
}

@typescript-bot typescript-bot added the Check Config Changes a module config files label Sep 29, 2021
@typescript-bot typescript-bot added this to Waiting for Code Reviews in New Pull Request Status Board Sep 29, 2021
@typescript-bot
Copy link
Contributor

🔔 @vvakame — 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.

Copy link
Contributor

@wooorm wooorm left a comment

Choose a reason for hiding this comment

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

sweeeeet

@typescript-bot typescript-bot added the Other Approved This PR was reviewed and signed-off by a community member. label Sep 29, 2021
@typescript-bot typescript-bot removed Other Approved This PR was reviewed and signed-off by a community member. Check Config Changes a module config files labels Sep 29, 2021
@typescript-bot typescript-bot added Other Approved This PR was reviewed and signed-off by a community member. Self Merge This PR can now be self-merged by the PR author or an owner labels Sep 29, 2021
@typescript-bot
Copy link
Contributor

@ChristianMurphy: Everything looks good here. I am ready to merge this PR (at de80745) on your behalf whenever you think it's ready.

If you'd like that to happen, please post a comment saying:

Ready to merge

and I'll merge this PR almost instantly. Thanks for helping out! ❤️

(@vvakame: you can do this too.)

@typescript-bot typescript-bot moved this from Waiting for Code Reviews to Waiting for Author to Merge in New Pull Request Status Board Sep 29, 2021
@ChristianMurphy
Copy link
Contributor Author

Ready to merge

@typescript-bot typescript-bot moved this from Waiting for Author to Merge to Recently Merged in New Pull Request Status Board Sep 29, 2021
@typescript-bot typescript-bot merged commit b46bdba into DefinitelyTyped:master Sep 29, 2021
@ChristianMurphy ChristianMurphy deleted the update-power-assert branch September 29, 2021 17:05
@typescript-bot typescript-bot removed this from Recently Merged in New Pull Request Status Board Sep 29, 2021
@ChristianMurphy ChristianMurphy restored the update-power-assert branch October 13, 2021 17:36
@ChristianMurphy ChristianMurphy deleted the update-power-assert branch October 13, 2021 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Other Approved This PR was reviewed and signed-off by a community member. Self Merge This PR can now be self-merged by the PR author or an owner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants