View shapes
The read-side projections verbs return. ItemView is an Item enriched with computed path + sibling position; ViewNode adds children (used by tree views); CurrentTreeView is the mutating-verb return; DeletedItem is the tombstone verbs.delete reports; DeleteResult is the wrapper verbs.delete returns with descendant counts and the updated view.
ItemView
An Item enriched with computed path and 1-based sibling position.
Extends
Extended by
Properties
| Property | Type | Inherited from |
|---|---|---|
createdAt? | string | Item.createdAt |
done | boolean | Item.done |
key | string | Item.key |
notes | Note[] | Item.notes |
parentKey | string | Item.parentKey |
path | string | - |
position | number | - |
title | string | Item.title |
ViewNode
A node in a CurrentTreeView's recursive tree.
Extends
Properties
| Property | Type | Inherited from |
|---|---|---|
children? | ViewNode[] | - |
createdAt? | string | ItemView.createdAt |
done | boolean | ItemView.done |
key | string | ItemView.key |
notes | Note[] | ItemView.notes |
parentKey | string | ItemView.parentKey |
path | string | ItemView.path |
position | number | ItemView.position |
title | string | ItemView.title |
CurrentTreeView
Shape returned by every mutating verb and by verbs.show.
Properties
| Property | Type |
|---|---|
activeKey | string |
activePath | string |
items | ViewNode[] |
targetKey | string |
DeletedItem
Identifying tombstone for a deleted item.
Properties
| Property | Type |
|---|---|
key | string |
path | string |
title | string |
DeleteResult
Result of verbs.delete.
Properties
| Property | Type |
|---|---|
deleted | DeletedItem |
descendantCount | number |
view | CurrentTreeView |