frontend
    Preparing search index...

    Interface DealSequenceResult

    Return value of useDealSequence.

    interface DealSequenceResult {
        getDelay: (index: number) => number;
        reset: () => void;
        startDeal: () => void;
        state: DealState;
    }
    Index

    Properties

    getDelay: (index: number) => number

    Get the deal delay for a card at the given index. Returns 0 when not dealing.

    reset: () => void

    Reset to idle state.

    startDeal: () => void

    Start the deal sequence. Transitions from idle to dealing.

    state: DealState

    Current deal state.