Skip to content

[underscore] Fix findIndex and findLastIndex signatures#45842

Merged
typescript-bot merged 1 commit intoDefinitelyTyped:masterfrom
ProdigySim:patch-1
Jul 2, 2020
Merged

[underscore] Fix findIndex and findLastIndex signatures#45842
typescript-bot merged 1 commit intoDefinitelyTyped:masterfrom
ProdigySim:patch-1

Conversation

@ProdigySim
Copy link
Copy Markdown
Contributor

findIndex documentation

Instance methods for findIndex and findLastIndex included an erroneous array: Array<T> parameter.

This PR removes the erroneous <T> type parameter and the array: Array<T> parameter for both instance methods and chain methods of findIndex and findLastIndex

Adds tests for instance methods and chain methods of findIndex and findLastIndex

@typescript-bot
Copy link
Copy Markdown
Contributor

typescript-bot commented Jul 2, 2020

@ProdigySim Thank you for submitting this PR! I see this is your first time submitting to DefinitelyTyped 👋 — I'm the local bot who will help you through the process of getting things through.

This is a live comment which I will keep updated.

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.

Status

  • ✅ No merge conflicts
  • ✅ Continuous integration tests have passed
  • ✅ Most recent commit is approved by type definition owners or DT maintainers

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": 45842,
  "author": "ProdigySim",
  "owners": [
    "borisyankov",
    "jbaldwin",
    "ccurrens",
    "confususs",
    "jgonggrijp",
    "ffflorian",
    "regevbr",
    "peterblazejewicz",
    "reubenrybnik"
  ],
  "dangerLevel": "ScopedAndTested",
  "headCommitAbbrOid": "6643cc5",
  "headCommitOid": "6643cc520e2eab36b8bdeec190f2139e10f43253",
  "mergeIsRequested": true,
  "stalenessInDays": 0,
  "lastCommitDate": "2020-07-02T12:52:38.000Z",
  "lastCommentDate": "2020-07-02T20:01:23.000Z",
  "reviewLink": "https://github.com/DefinitelyTyped/DefinitelyTyped/pull/45842/files",
  "hasMergeConflict": false,
  "authorIsOwner": false,
  "isFirstContribution": true,
  "popularityLevel": "Popular",
  "anyPackageIsNew": false,
  "packages": [
    "underscore"
  ],
  "files": [
    {
      "filePath": "types/underscore/index.d.ts",
      "kind": "definition",
      "package": "underscore"
    },
    {
      "filePath": "types/underscore/underscore-tests.ts",
      "kind": "test",
      "package": "underscore"
    }
  ],
  "hasDismissedReview": false,
  "ciResult": "pass",
  "lastReviewDate": "2020-07-02T19:38:45.000Z",
  "reviewersWithStaleReviews": [],
  "approvalFlags": 2,
  "isChangesRequested": false
}

@typescript-bot
Copy link
Copy Markdown
Contributor

🔔 @borisyankov @jbaldwin @ccurrens @confususs @jgonggrijp @ffflorian @regevbr @peterblazejewicz @reubenrybnik - 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 typescript-bot added the Popular package This PR affects a popular package (as counted by NPM download counts). label Jul 2, 2020
@typescript-bot
Copy link
Copy Markdown
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 #45842 diff
Batch compilation
Memory usage (MiB) 51.4 52.3 +1.7%
Type count 9729 9776 0%
Assignability cache size 1495 1518 +2%
Language service
Samples taken 2160 2204 +2%
Identifiers in tests 2160 2204 +2%
getCompletionsAtPosition
    Mean duration (ms) 181.6 186.3 +2.6%
    Mean CV 10.2% 10.9%
    Worst duration (ms) 423.6 424.2 +0.1%
    Worst identifier mixedIterabilityValue mixedIterabilityValue
getQuickInfoAtPosition
    Mean duration (ms) 173.5 178.0 +2.6%
    Mean CV 10.2% 10.4% +2.5%
    Worst duration (ms) 377.9 398.0 +5.3%
    Worst identifier extractUnderscoreTypes extractChainTypes

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 Jul 2, 2020
Copy link
Copy Markdown
Contributor

@jgonggrijp jgonggrijp left a comment

Choose a reason for hiding this comment

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

Looks good to me. Thanks for the fix!

@typescript-bot typescript-bot added Owner Approved A listed owner of this package signed off on the pull request. Self Merge This PR can now be self-merged by the PR author or an owner labels Jul 2, 2020
@typescript-bot
Copy link
Copy Markdown
Contributor

@ProdigySim Everything looks good here. Great job! I am ready to merge this PR on your behalf.

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! ❤️

@ProdigySim
Copy link
Copy Markdown
Contributor Author

Ready to merge

@typescript-bot typescript-bot merged commit f41b055 into DefinitelyTyped:master Jul 2, 2020
ngbrown pushed a commit to ngbrown-forks/DefinitelyTyped that referenced this pull request Jul 11, 2020
danielrearden pushed a commit to danielrearden/DefinitelyTyped that referenced this pull request Sep 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Owner Approved A listed owner of this package signed off on the pull request. Perf: Same typescript-bot determined that this PR will not significantly impact compilation performance. Popular package This PR affects a popular package (as counted by NPM download counts). 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.

3 participants