Documentation
    Preparing search index...

    Type Alias EffectHandler<Input, Output>

    EffectHandler: (args: EffectArgs<Input>) => Promise<Output> | Output

    Function that executes an effect on a cache miss.

    The function may be synchronous or asynchronous. Returned values are always validated against the effect's output schema before callers receive them.

    Type Parameters

    • Input = unknown
    • Output = unknown

    Type Declaration