tinybench - v6.2.0
    Preparing search index...

    Type Alias Hook

    Hook: (task?: Task, mode?: HookMode) => Promise<void> | void

    The hook function signature. Called once per task and phase: warmup (if enabled), then run.

    Type Declaration

      • (task?: Task, mode?: HookMode): Promise<void> | void
      • Parameters

        • Optionaltask: Task

          the task instance

        • Optionalmode: HookMode

          the mode where the hook is being called

        Returns Promise<void> | void