WebhookResolver
@rotorsoft/act-root / act-http/src/webhook / WebhookResolver
Type Alias: WebhookResolver<TEvents, T>
WebhookResolver<
TEvents,T> =T| ((event) =>T)
Defined in: libs/act-http/src/webhook/types.ts:14
Function or static value resolver. Used so callers can pass either a constant or a per-event function for headers / body / url.
The static side T is constrained to non-function types so that a
passed (event) => ... is unambiguously typed as the function variant.
Type Parametersโ
TEventsโ
TEvents extends Schemas
Tโ
T