effect-io-ai

Package: @effect/cli
Module: Prompt

Prompt.Prompt.Action

Represents the action that should be taken by a Prompt based upon the user input received during the current frame.

Signature

type { readonly _tag: "Beep"; } | { readonly _tag: "NextFrame"; readonly state: State; } | { readonly _tag: "Submit"; readonly value: Output; } = TaggedEnum<{
    readonly Beep: {}
    readonly NextFrame: { readonly state: State }
    readonly Submit: { readonly value: Output }
  }>

Source

Since v1.0.0