Skip to content

Instantly share code, notes, and snippets.

@ivanminutillo
Created April 18, 2016 14:05
Show Gist options
  • Save ivanminutillo/9ca0f6de40ecbcddae70e2b173028401 to your computer and use it in GitHub Desktop.
Save ivanminutillo/9ca0f6de40ecbcddae70e2b173028401 to your computer and use it in GitHub Desktop.
const AppStateRecord = Record({
// todos: List<TodoItem>([]),
// uiState: new UIState({})
news: List<CategoryItem>([]),
worklist: List<WorklistItem>([]),
smartlist:
vetrine:
});
export class AppState extends AppStateRecord {
todos:List<TodoItem>;
uiState:UIState;
constructor(props:any) {
super(props);
}
}
export const defaultState = new AppState({
news: List<CategoryItem>([
]),
worlist: List<WorklistItem>([]),
uiState: new UIState({})
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment