Skip to content

[moxy/next-router-scroll] withRouterScroll receives a ComponentType#56033

Merged
sandersn merged 2 commits into
DefinitelyTyped:masterfrom
eps1lon:fix/moxy__next-router-scroll/ReactNode-object-like
Sep 30, 2021
Merged

[moxy/next-router-scroll] withRouterScroll receives a ComponentType#56033
sandersn merged 2 commits into
DefinitelyTyped:masterfrom
eps1lon:fix/moxy__next-router-scroll/ReactNode-object-like

Conversation

@eps1lon
Copy link
Copy Markdown
Collaborator

@eps1lon eps1lon commented Sep 28, 2021

Revealed by #56026
Change is already tested but only works due to ReactNode including {}:

const MyComponent = withRouterScroll(({ routerScroll }: any) => {
const providerValue = useRouterScroll();
expect(routerScroll).toBe(providerValue);
return null;
});

Please fill in this template.

Select one of these and delete the others:

If changing an existing definition:

@eps1lon eps1lon marked this pull request as ready for review September 28, 2021 18:48
@typescript-bot
Copy link
Copy Markdown
Contributor

typescript-bot commented Sep 28, 2021

@eps1lon Thank you for submitting this PR!

This is a live comment which I will keep updated.

1 package in this PR

Code Reviews

This PR can be merged once it's reviewed by a DT maintainer.

You can test the changes of this PR in the Playground.

Status

  • ✅ No merge conflicts
  • ✅ Continuous integration tests have passed
  • 🕐 Only a DT maintainer can approve changes without tests

Once every item on this list is checked, I'll ask you for permission to merge and publish the changes.


Diagnostic Information: What the bot saw about this PR
{
  "type": "info",
  "now": "-",
  "pr_number": 56033,
  "author": "eps1lon",
  "headCommitOid": "dea435e4962257f10656529b54b2ce1cf3517f8b",
  "lastPushDate": "2021-09-30T07:40:36.000Z",
  "lastActivityDate": "2021-09-30T08:30:45.000Z",
  "hasMergeConflict": false,
  "isFirstContribution": false,
  "tooManyFiles": false,
  "hugeChange": false,
  "popularityLevel": "Well-liked by everyone",
  "pkgInfo": [
    {
      "name": "moxy__next-router-scroll",
      "kind": "edit",
      "files": [
        {
          "path": "types/moxy__next-router-scroll/index.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/moxy__next-router-scroll/with-router-scroll.d.ts",
          "kind": "definition"
        }
      ],
      "owners": [
        "me"
      ],
      "addedOwners": [
        "heozeop"
      ],
      "deletedOwners": [
        "me"
      ],
      "popularityLevel": "Well-liked by everyone"
    }
  ],
  "reviews": [
    {
      "type": "approved",
      "reviewer": "heozeop",
      "date": "2021-09-30T08:30:45.000Z",
      "isMaintainer": false
    }
  ],
  "mainBotCommentID": 929530683,
  "ciResult": "pass"
}

@typescript-bot typescript-bot added the Untested Change This PR does not touch tests label Sep 28, 2021
@typescript-bot
Copy link
Copy Markdown
Contributor

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

1 similar comment
@typescript-bot
Copy link
Copy Markdown
Contributor

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

@sandersn
Copy link
Copy Markdown
Contributor

@heozeop can you review this?
@eps1lon can you change the author list from me to heozeop (assuming @heozeop is OK with that)

@typescript-bot typescript-bot added the Edits Owners This PR adds or removes owners label Sep 30, 2021
@typescript-bot typescript-bot added the Other Approved This PR was reviewed and signed-off by a community member. label Sep 30, 2021
@heozeop
Copy link
Copy Markdown
Contributor

heozeop commented Sep 30, 2021

Sorry for late review. @eps1lon

@sandersn sandersn merged commit b950b1b into DefinitelyTyped:master Sep 30, 2021
@eps1lon eps1lon deleted the fix/moxy__next-router-scroll/ReactNode-object-like branch October 1, 2021 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Edits Owners This PR adds or removes owners Other Approved This PR was reviewed and signed-off by a community member. Untested Change This PR does not touch tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants