Flow for all the files

This commit is contained in:
Jori Lallo
2017-05-11 17:23:56 -07:00
parent a98199599a
commit 0a76d6af9e
110 changed files with 512 additions and 269 deletions

View File

@ -1,13 +1,14 @@
// @flow
import { observable, action, computed } from 'mobx';
const UI_STORE = 'UI_STORE';
class UiStore {
@observable sidebar;
@observable sidebar: boolean = false;
/* Computed */
@computed get asJson() {
@computed get asJson(): string {
return JSON.stringify({
sidebar: this.sidebar,
});
@ -15,7 +16,7 @@ class UiStore {
/* Actions */
@action toggleSidebar = () => {
@action toggleSidebar = (): void => {
this.sidebar = !this.sidebar;
};