@fgaudo/effect-tea - v0.7.2
    Preparing search index...

    Type Alias Rehearsal<State, Model, Message, Command, Event, R>

    Rehearsal: Readonly<
        {
            events: Effect.Effect<ReadonlyArray<Event>>;
            hear: (key: unknown, message: Message) => Effect.Effect<void>;
            hearNext: (
                key: unknown,
            ) => Effect.Effect<Message, never, Exclude<R, Scope.Scope>>;
            ignored: Effect.Effect<ReadonlyArray<Message>>;
            model: Effect.Effect<Model>;
            pending: Effect.Effect<ReadonlyArray<Command>>;
            run: (
                select: (command: Command) => boolean,
            ) => Effect.Effect<Command, never, Exclude<R, Scope.Scope>>;
            runAll: Effect.Effect<void, never, Exclude<R, Scope.Scope>>;
            send: (
                select: (model: Model) => Opt.Option<Message>,
            ) => Effect.Effect<void>;
            state: Effect.Effect<State>;
        },
    >

    A rehearsal of a program, without a runtime: nothing happens unless the test does it. The test acts on what the current model shows, decides when each command runs and what each subscription sends, and reads the result at any point.

    Type Parameters

    • State
    • Model
    • Message
    • Command
    • Event = never
    • R = never