-
Notifications
You must be signed in to change notification settings - Fork 758
Switch SearchBar and ChromeScopes Proptypes to flow props #4092
Conversation
There was a problem hiding this 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>, |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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
@jasonLaster thanks, I've addressed the comments. Would you happen to know if there's any difference between |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
nope, none |
hi! first PR, hoping to help :)
Associated Issue: #2804
Summary of Changes
Changed PropTypes to Flow Props
Test Plan