Created
September 21, 2018 14:04
-
-
Save NetanelBasal/2eed34986ee93c3dac3b567c5bc689f3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { ID, guid } from '@datorama/akita'; | |
export type Todo = { | |
id: ID; | |
text: string; | |
completed: boolean; | |
}; | |
export function createTodo(text: string): Todo { | |
return { | |
id: guid(), | |
text, | |
completed: false | |
}; | |
} | |
export const enum VISIBILITY_FILTER { | |
SHOW_COMPLETED = 'SHOW_COMPLETED', | |
SHOW_ACTIVE = 'SHOW_ACTIVE', | |
SHOW_ALL = 'SHOW_ALL' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment