Files: 06ba928e6dae6f3bb75720b2d3deee46ebb1dd18 / app / todos / models.js
165 bytesRaw
1 | import t from 'tcomb' |
2 | |
3 | export const Todo = t.struct({ |
4 | id: t.Number, |
5 | text: t.String, |
6 | complete: t.Boolean |
7 | }, 'Todo') |
8 | |
9 | export const Todos = t.list(Todo, 'Todos') |
10 |
Built with git-ssb-web