[@types/underscore] Collection and Array Tests - Shortening Cleanup#46799
Conversation
…caught by linting and making all lines for changed functions 80 characters long or less.
|
@reubenrybnik Thank you for submitting this PR! This is a live comment which I will keep updated. Code ReviewsBecause you edited one package and updated the tests (👏), I can help you merge this PR once someone else signs off on it. Status
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": 46799,
"author": "reubenrybnik",
"owners": [
"borisyankov",
"jbaldwin",
"ccurrens",
"confususs",
"jgonggrijp",
"ffflorian",
"regevbr",
"peterblazejewicz",
"reubenrybnik"
],
"dangerLevel": "ScopedAndTested",
"headCommitAbbrOid": "5baece9",
"headCommitOid": "5baece9b1cea7decbeb8637f800d2a68135f47c9",
"mergeIsRequested": true,
"stalenessInDays": 0,
"lastPushDate": "2020-08-15T02:53:22.000Z",
"lastCommentDate": "2020-08-17T21:32:53.000Z",
"maintainerBlessed": false,
"reviewLink": "https://github.com/DefinitelyTyped/DefinitelyTyped/pull/46799/files",
"hasMergeConflict": false,
"authorIsOwner": true,
"isFirstContribution": false,
"popularityLevel": "Popular",
"anyPackageIsNew": false,
"packages": [
"underscore"
],
"files": [
{
"path": "types/underscore/index.d.ts",
"kind": "definition",
"package": "underscore"
},
{
"path": "types/underscore/underscore-tests.ts",
"kind": "test",
"package": "underscore"
}
],
"hasDismissedReview": false,
"ciResult": "pass",
"lastReviewDate": "2020-08-17T19:46:37.000Z",
"reviewersWithStaleReviews": [],
"approvalFlags": 2,
"isChangesRequested": false
} |
|
🔔 @borisyankov @jbaldwin @ccurrens @confususs @jgonggrijp @ffflorian @regevbr @peterblazejewicz — please review this PR in the next few days. Be sure to explicitly select |
|
👋 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 📊
It looks like nothing changed too much. I won’t post performance data again unless it gets worse. |
jgonggrijp
left a comment
There was a problem hiding this comment.
Very thorough job, all smooth. I'm very happy with the shorter lines and names. Great work, Mike!
|
Thanks @jgonggrijp, glad you're happy with the result here! Thanks for looking over this admittedly somewhat daunting-looking set of changes 😅 |
|
Ready to merge |
|
I just published |
…rray Tests - Shortening Cleanup by @reubenrybnik * Shortening test type and variable names and reorganizing tests. * Updating section headers to be uniform. * Cleaning up summary comments and a few unnecessary _Chain values not caught by linting and making all lines for changed functions 80 characters long or less. * Using a constant tuple instead of a generic array for deepProperty.
…rray Tests - Shortening Cleanup by @reubenrybnik * Shortening test type and variable names and reorganizing tests. * Updating section headers to be uniform. * Cleaning up summary comments and a few unnecessary _Chain values not caught by linting and making all lines for changed functions 80 characters long or less. * Using a constant tuple instead of a generic array for deepProperty.
npm run lint package-name(ortscif notslint.jsonis present).This is the second of three planned cleanup PRs for #45201 and includes the following changes:
_Chainthat the linter and I missed.declare const.No logic changes are made in this PR.
IntersectingMixedTypeRecordis consolidated withMixedTypeRecord, andStringRecordOrUndefinedis dropped in favor of usingStringRecord | undefined.As an additional item of cleanup, I'm going to claim that this fixes #7931 even though #45304 is actually what fixed it since I'd like to close that issue and I didn't know about the effect that the word "fix" has back when I was doing that PR.