Hiyve Components - v1.0.0
    Preparing search index...

    Interface UseDrillOptions<Q>

    Options for useDrill.

    interface UseDrillOptions<Q extends TheoryQuestion = TheoryQuestion> {
        generate: (random: () => number) => Q;
        length?: number;
        seed?: number;
    }

    Type Parameters

    Index

    Properties

    generate: (random: () => number) => Q

    Writes one question from the drill's random source; read when a drill starts

    length?: number

    Questions in the drill (default: 10)

    seed?: number

    The seed the drill is drawn from (default: 1); a new seed starts a new drill