clide-js
    Preparing search index...

    Type Alias HookPayload<THook, T>

    HookPayload: Parameters<HookHandler<THook, T>>[0]

    The payload object passed to a hook handler.

    By convention, the payload will be the first argument of the hook, but this may not always be the case for custom hooks at runtime

    Type Parameters

    • THook extends HookName<T> = keyof ClideHooks

      The name of the hook being handled

    • T extends AnyObject = ClideHooks

      The hooks configuration object containing the hook