Home > @uniformdev/webhooks > WebhookPayload

WebhookPayload type

Any payload the catalog can deliver, as a discriminated union on eventType.

Every definition's schema carries eventType as a literal, so assigning an object literal to this type checks it against the one member its own eventType selects — a payload cannot be paired with the wrong event.

Signature:

References: WebhookEventName, WebhookPayloadFor