tinybench - v6.2.0
    Preparing search index...

    Type Alias FnHook

    FnHook: (this: Task, mode?: HookMode) => Promise<void> | void

    The task hook function signature. Hooks apply to both run and warmup phases when warmup is enabled. beforeAll/afterAll run once per task and phase; beforeEach/afterEach run once per iteration.

    Type Declaration

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

        • this: Task
        • Optionalmode: HookMode

          the mode where the hook is being called

        Returns Promise<void> | void