Todo work
This commit is contained in:
@@ -12,6 +12,8 @@ export class Todo extends Class<Todo>("Todo")({
|
||||
content: S.String,
|
||||
|
||||
due: S.OptionFromSelf(S.DateFromSelf),
|
||||
completed: S.Boolean,
|
||||
|
||||
createdAt: S.DateFromSelf,
|
||||
updatedAt: S.DateFromSelf,
|
||||
}) {}
|
||||
|
||||
@@ -14,6 +14,7 @@ export const createDefaultTodos = TodoRepository.pipe(
|
||||
title: "A test todo",
|
||||
content: "Lorem ipsum",
|
||||
due: Option.none(),
|
||||
completed: false,
|
||||
createdAt: new Date(),
|
||||
updatedAt: new Date(),
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user