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

Commit b334ee3

Browse files
AnshulMalikjasonLaster
authored andcommitted
Add flow header to reducers/types.js (#5874)
1 parent e4993a2 commit b334ee3

File tree

4 files changed

+22
-8
lines changed

4 files changed

+22
-8
lines changed

src/actions/pause/paused.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ import {
1717
import { mapFrames } from ".";
1818
import { removeBreakpoint } from "../breakpoints";
1919
import { evaluateExpressions } from "../expressions";
20-
import { selectLocation, loadSourceText } from "../sources";
20+
import { selectLocation } from "../sources";
21+
import { loadSourceText } from "../sources/loadSourceText";
2122
import { togglePaneCollapse } from "../ui";
2223
import { command } from "./commands";
2324
import { shouldStep } from "../../utils/pause";

src/actions/project-text-search.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
import { findSourceMatches } from "../workers/search";
1313
import { getSources, getSource, hasPrettySource } from "../selectors";
1414
import { isThirdParty } from "../utils/source";
15-
import { loadSourceText } from "./sources";
15+
import { loadSourceText } from "./sources/loadSourceText";
1616
import { statusType } from "../reducers/project-text-search";
1717

1818
import type { ThunkArgs } from "./types";

src/reducers/expressions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import type { Expression } from "../types";
1919
import type { Action } from "../actions/types";
2020
import type { Record } from "../utils/makeRecord";
2121

22-
type ExpressionState = {
22+
export type ExpressionState = {
2323
expressions: List<Expression>,
2424
expressionError: boolean
2525
};

src/reducers/types.js

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,29 @@
77
* @module reducers/types
88
*/
99

10-
import type { PauseState } from "./pause";
11-
import type { SourcesState } from "./sources";
10+
// @flow
11+
12+
import type { ASTState } from "./ast";
1213
import type { BreakpointsState } from "./breakpoints";
14+
import type { ExpressionState } from "./expressions";
15+
import type { FileSearchState } from "./file-search";
16+
import type { PauseState } from "./pause";
17+
import type { PendingBreakpointsState } from "../selectors";
1318
import type { ProjectTextSearchState } from "./project-text-search";
19+
import type { Record } from "../utils/makeRecord";
20+
import type { SourcesState } from "./sources";
21+
import type { UIState } from "./ui";
1422

1523
export type State = {
24+
ast: Record<ASTState>,
25+
breakpoints: Record<BreakpointsState>,
26+
expressions: Record<ExpressionState>,
27+
fileSearch: Record<FileSearchState>,
1628
pause: PauseState,
17-
sources: SourcesState,
18-
breakpoints: BreakpointsState,
19-
projectTextSearch: ProjectTextSearchState
29+
pendingBreakpoints: Record<PendingBreakpointsState>,
30+
projectTextSearch: Record<ProjectTextSearchState>,
31+
sources: Record<SourcesState>,
32+
ui: Record<UIState>
2033
};
2134

2235
export type SelectedLocation = {

0 commit comments

Comments
 (0)