Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/components/Editor/Footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ import "./Footer.css";
class SourceFooter extends PureComponent {
props: {
selectedSource: SourceRecord,
selectSource: (string, ?Object) => any,
selectSource: (string, ?Object) => void,
editor: any,
togglePrettyPrint: string => any,
toggleBlackBox: () => any,
recordCoverage: () => any,
togglePaneCollapse: () => any,
togglePrettyPrint: string => void,
toggleBlackBox: () => void,
recordCoverage: () => void,
togglePaneCollapse: () => void,
endPanelCollapsed: boolean,
horizontal: boolean
};
Expand Down
8 changes: 4 additions & 4 deletions src/components/Editor/Preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ import "./Preview.css";

class Preview extends Component {
props: {
loadObjectProperties: Object => any,
addExpression: (string, ?Object) => any,
loadObjectProperties: Object => void,
addExpression: (string, ?Object) => void,
loadedObjects: Object,
popoverTarget: Object,
value: Object,
expression: string,
onClose: () => any,
selectSourceURL: (string, Object) => any
onClose: () => void,
selectSourceURL: (string, Object) => void
};

componentDidMount() {
Expand Down
20 changes: 10 additions & 10 deletions src/components/Editor/SearchBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,23 +101,23 @@ class SearchBar extends Component {
editor?: SourceEditor,
symbols: SymbolDeclarations,
symbolSearchResults: Array<*>,
selectSource: (string, ?SelectSourceOptions) => any,
selectSource: (string, ?SelectSourceOptions) => void,
selectedSource?: SourceRecord,
highlightLineRange: ({ start: number, end: number }) => any,
clearHighlightLineRange: () => any,
highlightLineRange: ({ start: number, end: number }) => void,
clearHighlightLineRange: () => void,
searchOn?: boolean,
toggleFileSearch: (?boolean) => any,
toggleFileSearch: (?boolean) => void,
searchResults: SearchResults,
modifiers: FileSearchModifiers,
toggleFileSearchModifier: string => any,
toggleFileSearchModifier: string => void,
symbolSearchOn: boolean,
selectedSymbolType: SymbolSearchType,
toggleSymbolSearch: boolean => any,
setSelectedSymbolType: SymbolSearchType => any,
toggleSymbolSearch: boolean => void,
setSelectedSymbolType: SymbolSearchType => void,
query: string,
setFileSearchQuery: string => any,
updateSearchResults: ({ count: number, index?: number }) => any,
updateSymbolSearchResults: ({ count: number, index?: number }) => any
setFileSearchQuery: string => void,
updateSearchResults: ({ count: number, index?: number }) => void,
updateSymbolSearchResults: ({ count: number, index?: number }) => void
};

constructor(props) {
Expand Down
16 changes: 8 additions & 8 deletions src/components/Editor/Tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,14 @@ class SourceTabs extends PureComponent {
props: {
sourceTabs: SourcesList,
selectedSource: SourceRecord,
selectSource: (string, ?Object) => any,
moveTab: (string, number) => any,
closeTab: string => any,
closeTabs: (List<string>) => any,
toggleProjectSearch: () => any,
togglePrettyPrint: string => any,
togglePaneCollapse: () => any,
showSource: string => any,
selectSource: (string, ?Object) => void,
moveTab: (string, number) => void,
closeTab: string => void,
closeTabs: (List<string>) => void,
toggleProjectSearch: () => void,
togglePrettyPrint: string => void,
togglePaneCollapse: () => void,
showSource: string => void,
horizontal: boolean,
startPanelCollapsed: boolean,
endPanelCollapsed: boolean
Expand Down
2 changes: 1 addition & 1 deletion src/components/Outline.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class Outline extends Component {
props: {
isHidden: boolean,
symbols: SymbolDeclarations,
selectSource: (string, { line: number }) => any,
selectSource: (string, { line: number }) => void,
selectedSource: ?SourceRecord
};

Expand Down
12 changes: 6 additions & 6 deletions src/components/SecondaryPanes/CommandBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,13 @@ class CommandBar extends Component {
props: {
sources: SourcesMap,
selectedSource: SourceRecord,
resume: () => any,
stepIn: () => any,
stepOut: () => any,
stepOver: () => any,
breakOnNext: () => any,
resume: () => void,
stepIn: () => void,
stepOut: () => void,
stepOver: () => void,
breakOnNext: () => void,
pause: any,
pauseOnExceptions: (boolean, boolean) => any,
pauseOnExceptions: (boolean, boolean) => void,
shouldPauseOnExceptions: boolean,
shouldIgnoreCaughtExceptions: boolean,
isWaitingOnBreak: boolean
Expand Down
10 changes: 5 additions & 5 deletions src/components/SecondaryPanes/EventListeners.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ class EventListeners extends Component {

props: {
listeners: Array<Listener>,
selectSource: (SourceId, { line: number }) => any,
addBreakpoint: ({ sourceId: SourceId, line: number }) => any,
enableBreakpoint: Location => any,
disableBreakpoint: Location => any,
removeBreakpoint: Location => any
selectSource: (SourceId, { line: number }) => void,
addBreakpoint: ({ sourceId: SourceId, line: number }) => void,
enableBreakpoint: Location => void,
disableBreakpoint: Location => void,
removeBreakpoint: Location => void
};

constructor(...args) {
Expand Down
10 changes: 5 additions & 5 deletions src/components/SecondaryPanes/Expressions.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ class Expressions extends PureComponent {

props: {
expressions: List<Expression>,
addExpression: (string, ?Object) => any,
evaluateExpressions: () => any,
updateExpression: (string, Expression) => any,
deleteExpression: Expression => any,
loadObjectProperties: () => any,
addExpression: (string, ?Object) => void,
evaluateExpressions: () => void,
updateExpression: (string, Expression) => void,
deleteExpression: Expression => void,
loadObjectProperties: () => void,
loadedObjects: Map<string, any>
};

Expand Down
4 changes: 2 additions & 2 deletions src/components/SecondaryPanes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ type SecondaryPanesItems = {
header: string,
component: any,
opened?: boolean,
onToggle?: () => any,
shouldOpen?: () => any,
onToggle?: () => void,
shouldOpen?: () => void,
buttons?: any
};

Expand Down
4 changes: 2 additions & 2 deletions src/components/shared/Accordion.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ type AccordionItem = {
component(): any,
header: string,
opened: boolean,
onToggle?: () => any,
shouldOpen?: () => any
onToggle?: () => void,
shouldOpen?: () => void
};

type Props = { items: Array<Object> };
Expand Down
6 changes: 3 additions & 3 deletions src/components/shared/Autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ type State = {
};

type Props = {
selectItem: (event: SyntheticKeyboardEvent, item: Object) => any,
onSelectedItem: (selectedItem: Object) => any,
selectItem: (event: SyntheticKeyboardEvent, item: Object) => void,
onSelectedItem: (selectedItem: Object) => void,
items: Array<Object>,
close: (value: any) => any,
close: (value: any) => void,
inputValue: string,
placeholder: string,
size: string
Expand Down
2 changes: 1 addition & 1 deletion src/components/shared/Button/PaneToggle.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import "./PaneToggle.css";

type Props = {
collapsed: boolean,
handleClick: (string, boolean) => any,
handleClick: (string, boolean) => void,
horizontal?: boolean,
position: string
};
Expand Down
6 changes: 3 additions & 3 deletions src/components/shared/ManagedTree.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ type Props = {
highlightItems?: Array<Item>,
itemHeight: number,
listItems?: Array<Item>,
onFocus?: (item: any) => any,
onExpand?: (item: any) => any,
onCollapse?: (item: any) => any,
onFocus?: (item: any) => void,
onExpand?: (item: any) => void,
onCollapse?: (item: any) => void,
renderItem: any
};

Expand Down
2 changes: 1 addition & 1 deletion src/components/shared/ObjectInspector.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ class ObjectInspector extends Component {
focused: boolean,
_: Object,
expanded: boolean,
{ setExpanded }: () => any
{ setExpanded }: () => void
) {
let objectValue;
let label = item.name;
Expand Down
2 changes: 1 addition & 1 deletion src/components/shared/ResultList.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type Props = {
event: SyntheticKeyboardEvent,
item: ResultListItem,
index: number
) => any,
) => void,
size: string
};

Expand Down
16 changes: 8 additions & 8 deletions src/components/shared/SearchInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ class SearchInput extends Component {
count: number,
placeholder: string,
summaryMsg: string,
onChange: () => any,
handleClose: () => any,
onKeyUp: () => any,
onKeyDown: () => any,
onFocus: () => any,
onBlur: () => any,
onChange: () => void,
handleClose: () => void,
onKeyUp: () => void,
onKeyDown: () => void,
onFocus: () => void,
onBlur: () => void,
size: string,
handleNext: () => any,
handlePrev: () => any
handleNext: () => void,
handlePrev: () => void
};

static defaultProps: Object;
Expand Down