records.Renderedtypeno test imports ittype Rendered = { readonly text: string; readonly unexpressed: readonly { readonly field: Field; readonly reason: string }[] };A rendering: the text, and what the format could not hold.
Rendering items in a format (0037-planning FR-039): a pure function from items to text, Markdown or JSON5, that says what its format cannot hold and does not drop it silently. Markdown holds the title, the state (as a task list item), the labels, the assignees, the severity, the body and the links as text; it cannot hold the events, the actors with their principals or the carried fields, and says so.
import { renderMarkdown } from "./render.ts";
// renderMarkdown(items).text starts with "- [ ] "records.Renderedtypeno test imports ittype Rendered = { readonly text: string; readonly unexpressed: readonly { readonly field: Field; readonly reason: string }[] };A rendering: the text, and what the format could not hold.
records.renderMarkdownfunctionno test imports itfunction renderMarkdown(items: readonly Item[]): RenderedThe items as a Markdown task list: closed items checked; what Markdown cannot hold is named at the end.
records.renderJson5functionno test imports itfunction renderJson5(items: readonly Item[]): RenderedThe items as JSON5, with the events of each in the order of their id and the keys in order: it holds every field.
Renderedtypeno test imports ittype Rendered = { readonly text: string; readonly unexpressed: readonly { readonly field: Field; readonly reason: string }[] };A rendering: the text, and what the format could not hold.
renderMarkdownfunctionno test imports itfunction renderMarkdown(items: readonly Item[]): RenderedThe items as a Markdown task list: closed items checked; what Markdown cannot hold is named at the end.
renderJson5functionno test imports itfunction renderJson5(items: readonly Item[]): RenderedThe items as JSON5, with the events of each in the order of their id and the keys in order: it holds every field.