@flow-state-dev/orchestration/steer-line
Interfaces
SteerLine
A steer's line, as its item names it.
Properties
from
readonly from: SteerLineSender;
Who sent it.
words
readonly words: string;
What they wrote, without the lead that names them for the run.
Type Aliases
SteerLineSender
type SteerLineSender = "filer" | "board";
Who sends a steer the line names: the task's filer or the board. A user's steer is their own user line.
Functions
steerLineLead()
function steerLineLead(from): string;
The lead a steer's text opens with, naming its sender for the run.
Parameters
from
Returns
string
steerLineMetadata()
function steerLineMetadata(line): object;
The metadata a steer's line is written with.
Parameters
line
Returns
object
steerLine
steerLine: SteerLine;
steerLineOf()
function steerLineOf(item): SteerLine | undefined;
The steer a message item's line is, read from its marker, or undefined for
any other item, including a line with no marker.
Parameters
item
A stored or streamed item.
metadata?
Readonly<Record<string, unknown>>
type?
string
Returns
SteerLine | undefined