import { observable , action , useStrict } from 'mobx' ; useStrict ( true ) ; export class AppState { constructor ( ) { this . currentTodoFilter = TodoFilter . All ; } @ observable public currentTodoFilter : TodoFilter ; @ action setTodoFilter ( filter ) { this . currentTodoFilter = filter ; } } export enum TodoFilter { All , Active , Completed }