windease API reference - v0.8.0
    Preparing search index...

    Interface Clock

    Injectable time source. Tests supply a FakeClock so dwell and stagger assertions are deterministic — windease has snapshot round-trip and history tests that real timers would make flaky.

    interface Clock {
        clearTimeout(h: unknown): void;
        now(): number;
        setTimeout(fn: () => void, ms: number): unknown;
    }
    Index

    Methods

    • Parameters

      • h: unknown

      Returns void

    • Parameters

      • fn: () => void
      • ms: number

      Returns unknown