Add types.string and types.json

This commit is contained in:
uwap 2018-04-02 10:22:43 +02:00
parent 52e825549d
commit 92dab1c8f5
9 changed files with 154 additions and 143 deletions

View file

@ -6,7 +6,7 @@ import filter from "lodash/filter";
import keys from "lodash/keys";
import merge from "lodash/merge";
import type { Config, Control, Topics } from "config/types";
import type { Config, Control, Topics } from "config/flowtypes";
import MuiThemeProvider from "material-ui/styles/MuiThemeProvider";
import createMuiTheme from "material-ui/styles/createMuiTheme";

View file

@ -6,7 +6,7 @@ import map from "lodash/map";
import mapValues from "lodash/mapValues";
import parseIconName, { controlGetIcon } from "utils/parseIconName";
import type { Controls, Control } from "config/types";
import type { Controls, Control } from "config/flowtypes";
export type Point = [number, number];

View file

@ -10,7 +10,7 @@ import Toolbar from "material-ui/Toolbar";
import List from "material-ui/List";
import { renderIcon } from "utils/parseIconName";
import type { Control } from "config/types";
import type { Control } from "config/flowtypes";
export type SideBarProps = {
control: ?Control,

View file

@ -18,7 +18,7 @@ import { LinearProgress } from "material-ui/Progress";
import type {
UIControl, UIToggle, UIDropDown, UILink,
UISection, UIText, UIProgress
} from "config/types";
} from "config/flowtypes";
import keyOf from "utils/keyOf";
import { getInternals, getActuals } from "utils/state";

View file

@ -8,7 +8,7 @@ import {
} from "material-ui/List";
import { renderIcon } from "utils/parseIconName";
import type { ControlUI, UIControl, UISlider } from "config/types";
import type { ControlUI, UIControl, UISlider } from "config/flowtypes";
// TODO: Use something else
import Slider from "material-ui-old/Slider";