Cotal TypeScript packages
    Preparing search index...

    Type Alias Submit

    Submit:
        | { kind: "nothing" }
        | { kind: "leave" }
        | { command: SlashCommand; kind: "slash" }
        | {
            clear?: true;
            kind: "hold";
            pick?: true;
            text: string;
            tone: "waiting" | "failed" | "hint";
        }
        | { kind: "publish"; text: string; to: Recipient }

    What Enter does with a draft. slash and leave consume the line. A hold with clear is a slash command the grammar refused: the line is shown as the refusal and then cleared, so the next command is not typed onto it. Every other hold keeps the line, and a hold with pick asks the front end to choose a recipient.