Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typing of ReplaceSupers options #11121

Merged
merged 3 commits into from Feb 11, 2020
Merged

Fix typing of ReplaceSupers options #11121

merged 3 commits into from Feb 11, 2020

Conversation

existentialism
Copy link
Member

@existentialism existentialism commented Feb 10, 2020

Q                       A
Fixed Issues? Closes #10048
Patch: Bug Fix?
Major: Breaking Change?
Minor: New Feature?
Tests Added + Pass? Yes
Documentation PR Link
Any Dependency Changes?
License MIT

Hoping to clear some open PRs... this revives #10048

Quick fix.

```NodeJs
  opts: {
    getObjetRef: Function,
    methodPath: NodePath,
    superRef: Object,
    isLoose: boolean,
    file: any,
  };
```
Should be:

```Nodejs
  opts: {
    getObjectRef: Function,
    methodPath: NodePath,
    superRef: Object,
    isLoose: boolean,
    file: any,
  };
```
I think this should do it, right? Let me know if you need anything else changed.
@existentialism existentialism added area: flow PR: Internal 🏠 A type of pull request used for our changelog categories labels Feb 10, 2020
Copy link
Contributor

@JLHwung JLHwung left a comment

Choose a reason for hiding this comment

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

Not related to this PR: Can we export type NodePath in @babel/core? It can help typings of babel plugins where path is frequently manipulated.

@nicolo-ribaudo nicolo-ribaudo merged commit 157bb6e into master Feb 11, 2020
@nicolo-ribaudo nicolo-ribaudo deleted the 10048-2 branch February 11, 2020 09:55
@nicolo-ribaudo
Copy link
Member

Thanks for checking old PRs!

rajasekarm pushed a commit to rajasekarm/babel that referenced this pull request Feb 17, 2020
* Fix type opts.getObjetRef to opts.getObjectRef

* Added // @flow to possibly catch for more errors.

* tweaks

Co-authored-by: InsignificantReasons <41794038+InsignificantReasons@users.noreply.github.com>
@github-actions github-actions bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label May 13, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: flow outdated A closed issue/PR that is archived due to age. Recommended to make a new issue PR: Internal 🏠 A type of pull request used for our changelog categories
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants