Beignet API reference
    Preparing search index...

    Interface InlineNotificationDispatcherOptions<Ctx>

    Options for the inline notification dispatcher.

    interface InlineNotificationDispatcherOptions<Ctx> {
        ctx?: Ctx | (() => MaybePromise<Ctx>);
        instrumentation?: ProviderInstrumentationTarget;
        onError?: (
            error: unknown,
            args: NotificationChannelHandleArgs<StandardSchema, Ctx>,
        ) => MaybePromise<NotificationChannelResult | undefined>;
    }

    Type Parameters

    • Ctx
    Index

    Properties

    ctx?: Ctx | (() => MaybePromise<Ctx>)

    Static notification context or factory evaluated for each send.

    Optional devtools/provider instrumentation target.

    onError?: (
        error: unknown,
        args: NotificationChannelHandleArgs<StandardSchema, Ctx>,
    ) => MaybePromise<NotificationChannelResult | undefined>

    Called when a channel handler fails. When omitted, errors are rethrown to the caller as NotificationDeliveryError.