[@types/underscore] Collection and Array Tests - Without, Uniq, and SortedIndex#46068
Conversation
|
@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": 46068,
"author": "reubenrybnik",
"owners": [
"borisyankov",
"jbaldwin",
"ccurrens",
"confususs",
"jgonggrijp",
"ffflorian",
"regevbr",
"peterblazejewicz",
"reubenrybnik"
],
"dangerLevel": "ScopedAndTested",
"headCommitAbbrOid": "1ef7c58",
"headCommitOid": "1ef7c589e1bbefbc057d10451a5b47995ac205d0",
"mergeIsRequested": true,
"stalenessInDays": 0,
"lastPushDate": "2020-07-15T08:59:48.000Z",
"lastCommentDate": "2020-07-15T15:33:27.000Z",
"maintainerBlessed": false,
"reviewLink": "https://github.com/DefinitelyTyped/DefinitelyTyped/pull/46068/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-07-15T15:20:38.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 |
|
I thought it would be nice to start in on arrays a bit in parallel with collections. I'll keep it down to only having at most two open PRs at any given time, though. |
|
👋 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.
I'm fine with you submitting two PRs in parallel, as long as you keep in mind that I'll be reviewing them serially. ;-)
I'm fine with the changes as they are, although I think it would make sense to add some matcher tests for uniq and sortedIndex.
The typings look perfectly correct to me. 👍
…aracters long and adding a lowest index distinction to sortedIndex summary comments.
|
@jgonggrijp Thank you for reviewing this PR! The author has pushed new commits since your last review. Could you take another look and submit a fresh review? |
|
I'm done making updates here @jgonggrijp if you wouldn't mind taking one more look and (hopefully) reapproving whenever you get a chance. Thanks for the feedback! These changes don't result in any new errors in my company's solution (and they fix several errors by updating |
|
Ready to merge |
…rray Tests - Without, Uniq, and SortedIndex by @reubenrybnik * Updating type definitions for without, uniq, and sortedIndex and adding tests. * Updating summary comments for updated functions to be less than 80 characters long and adding a lowest index distinction to sortedIndex summary comments. * Adding matcher iteratee tests for uniq and sortedIndex.
npm test.)npm run lint package-name(ortscif notslint.jsonis present).This PR continues the planned set that will together add up to #45201 and includes the following changes:
without,uniq, andsortedIndex.uniqandsortedIndexto useIteratee.uniqueoverloads with a reference touniqoverloads._Chain.uniqto use the correct wrapped value typeVto partially fix @types/underscore error TS2322 for_.chainafter upgrade to v1.9 #36308.