Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Switch SearchBar and ChromeScopes Proptypes to flow props #4092

Merged
merged 3 commits into from
Sep 21, 2017

Conversation

inyigo
Copy link
Contributor

@inyigo inyigo commented Sep 19, 2017

hi! first PR, hoping to help :)

Associated Issue: #2804

Summary of Changes

Changed PropTypes to Flow Props

Test Plan

  • yarn run test-all
  • yarn run flow

Copy link
Contributor

@jasonLaster jasonLaster left a comment

Choose a reason for hiding this comment

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

Thanks so much! We really need help jumpstarting our move to Props :)

@@ -32,6 +31,12 @@ function createNode(name, path, contents) {
}

class Scopes extends Component {
props: {
scopes: Array<Object>,
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you can import Scope from flow-types/debugger.html

scopes: Array<Object>,
loadedObjects: Map<string, any>,
loadObjectProperties: Function,
pauseInfo: Object
Copy link
Contributor

Choose a reason for hiding this comment

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

perhaps the same w/ PauseInfo

props: {
scopes: Array<Object>,
loadedObjects: Map<string, any>,
loadObjectProperties: Function,
Copy link
Contributor

Choose a reason for hiding this comment

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

lets type the params: (string) => void or something like that

@inyigo
Copy link
Contributor Author

inyigo commented Sep 21, 2017

@jasonLaster thanks, I've addressed the comments.

Would you happen to know if there's any difference between Array<Scope> and Scope[] ?

Copy link
Contributor

@jasonLaster jasonLaster left a comment

Choose a reason for hiding this comment

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

👍

@jasonLaster
Copy link
Contributor

Would you happen to know if there's any difference between Array and Scope[] ?

nope, none

@jasonLaster jasonLaster merged commit 303e994 into firefox-devtools:master Sep 21, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants