Skip to content

Conversation

@weswigham
Copy link
Contributor

@weswigham weswigham commented Jan 29, 2021

See microsoft/TypeScript#42543 for more. This probably shouldn't be merged until that is (though, ofc, the $ExpectType assertions are backwards compatible), and, in fact, it should probably be merged with DT master have it's CI rerun after it is (and a new TS nightly is out), for good measure.

@typescript-bot
Copy link
Contributor

typescript-bot commented Jan 29, 2021

@weswigham Thank you for submitting this PR!

This is a live comment which I will keep updated.

2 packages in this PR

Code Reviews

This PR can be merged once it's reviewed.

Status

  • ✅ No merge conflicts
  • ✅ Continuous integration tests have passed
  • ❌ Type definition owners or DT maintainers 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.

Inactive

This PR has been inactive for 26 days — it is still unreviewed!


Diagnostic Information: What the bot saw about this PR
{
  "type": "info",
  "now": "-",
  "pr_number": 50919,
  "author": "weswigham",
  "headCommitOid": "ef4d1fed62516c24fcc3e66eef0b68b447282bc8",
  "lastPushDate": "2021-01-29T17:27:03.000Z",
  "lastActivityDate": "2021-02-24T10:52:06.000Z",
  "maintainerBlessed": true,
  "hasMergeConflict": false,
  "isFirstContribution": false,
  "popularityLevel": "Critical",
  "pkgInfo": [
    {
      "name": "lodash",
      "kind": "edit",
      "files": [
        {
          "path": "types/lodash/lodash-tests.ts",
          "kind": "test"
        }
      ],
      "owners": [
        "bczengel",
        "chrootsu",
        "stepancar",
        "aj-r",
        "e-cloud",
        "thorn0",
        "jtmthf",
        "DomiR",
        "WilliamChelman"
      ],
      "addedOwners": [],
      "deletedOwners": [],
      "popularityLevel": "Critical"
    },
    {
      "name": "webidl-conversions",
      "kind": "edit",
      "files": [
        {
          "path": "types/webidl-conversions/webidl-conversions-tests.ts",
          "kind": "test"
        }
      ],
      "owners": [
        "ExE-Boss"
      ],
      "addedOwners": [],
      "deletedOwners": [],
      "popularityLevel": "Popular"
    }
  ],
  "reviews": [
    {
      "type": "approved",
      "reviewer": "ExE-Boss",
      "date": "2021-02-24T10:52:06.000Z",
      "isMaintainer": false
    }
  ],
  "ciResult": "pass"
}

@typescript-bot
Copy link
Contributor

🔔 @bczengel @chrootsu @stepancar @aj-r @e-cloud @thorn0 @jtmthf @DomiR @WilliamChelman @ExE-Boss — 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.

@typescript-bot
Copy link
Contributor

👋 Hi there! I’ve run some quick measurements against master and your PR. These metrics should help the humans reviewing this PR gauge whether it might negatively affect compile times or editor responsiveness for users who install these typings.

Let’s review the numbers, shall we?

Comparison details 📊
master #50919 diff
Batch compilation
Memory usage (MiB) 182.3 182.3 0.0%
Type count 60092 60092 0%
Assignability cache size 6888 6888 0%
Language service
Samples taken 5562 5504 -1%
Identifiers in tests 16438 16438 0%
getCompletionsAtPosition
    Mean duration (ms) 638.7 642.8 +0.6%
    Mean CV 0.0% 0.0%
    Worst duration (ms) 1854.1 1878.6 +1.3%
    Worst identifier stubString stubFalse
getQuickInfoAtPosition
    Mean duration (ms) 647.7 657.1 +1.5%
    Mean CV 0.0% 0.0%
    Worst duration (ms) 1642.0 1822.9 +11.0%
    Worst identifier defaultTo defaultTo

It looks like nothing changed too much. I won’t post performance data again unless it gets worse.

@typescript-bot typescript-bot added the Perf: Same typescript-bot determined that this PR will not significantly impact compilation performance. label Jan 29, 2021
@sheetalkamat
Copy link
Contributor

@weswigham can you please make this as draft instead till we are ready on the typescript PR. Thanks. It will help not show up in the DT maintainer todo.

@weswigham weswigham marked this pull request as draft January 29, 2021 20:51
conversions.any(options); // $ExpectType Options
conversions.any(RegExp); // $ExpectType RegExpConstructor
conversions.any(Symbol.toStringTag); // $ExpectType symbol
conversions.any(Symbol.toStringTag); // $ExpectType symbol || typeof toStringTag
Copy link
Contributor

Choose a reason for hiding this comment

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

I would expect that the stringified type would be typeof Symbol.toStringTag and not just typeof toStringTag.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It would be if the test node printer specified an enclosingDeclaration for the node to be generated.

@weswigham weswigham marked this pull request as ready for review February 24, 2021 00:10
@typescript-bot typescript-bot added the Unreviewed No one showed up to review this PR, so it'll be reviewed by a DT maintainer. label Feb 24, 2021
@typescript-bot
Copy link
Contributor

It has been more than two weeks and this PR still has no reviews.

I'll bump it to the DT maintainer queue. Thank you for your patience, @weswigham.

(Ping @bczengel, @chrootsu, @stepancar, @aj-r, @e-cloud, @thorn0, @jtmthf, @DomiR, @WilliamChelman, @ExE-Boss.)

@weswigham
Copy link
Contributor Author

@sandersn @sheetalkamat The TS change should have hit the nightly yesterday, so we will probably need to merge this soon~

@weswigham
Copy link
Contributor Author

Also @elibarzilay I don't think @typescript-bot handles the draft state transition well. Looks like it's using the original PR timestamp, rather than the time it last went un-draft for the maintainer queue.

@sandersn sandersn merged commit ddc173c into master Feb 24, 2021
@sandersn sandersn deleted the builtin-symbols-as-uniques branch February 24, 2021 22:53
kaznovac pushed a commit to kaznovac/DefinitelyTyped that referenced this pull request Mar 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Critical package Edits multiple packages Perf: Same typescript-bot determined that this PR will not significantly impact compilation performance. Unreviewed No one showed up to review this PR, so it'll be reviewed by a DT maintainer.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants