mirror of
https://github.com/linsa-io/linsa.git
synced 2026-01-12 12:20:23 +01:00
* tasks * task input * community route * added thread and list for community QA * answers thread * journal sidebar section * journal calendar * fix: stuff * fix: stuff * fix: stuff * chore: disable comunitty toggle * fix: typo import header --------- Co-authored-by: marshennikovaolga <marshennikova@gmail.com> Co-authored-by: Aslam H <iupin5212@gmail.com>
12 lines
338 B
TypeScript
12 lines
338 B
TypeScript
import { co, CoList, CoMap, Encoders } from "jazz-tools"
|
|
|
|
export class Task extends CoMap {
|
|
title = co.string
|
|
description = co.optional.string
|
|
status = co.literal("todo", "in_progress", "done")
|
|
createdAt = co.encoded(Encoders.Date)
|
|
updatedAt = co.encoded(Encoders.Date)
|
|
}
|
|
|
|
export class ListOfTasks extends CoList.Of(co.ref(Task)) {}
|