MCPcopy Create free account
hub / github.com/boringstack-xyz/boringstack / isResendEventShape

Function isResendEventShape

apps/api/src/api/webhooks/resend.utils.ts:151–161  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

149};
150
151const isResendEventShape = (value: unknown): value is IResendEventBase => {
152 if (value === null || typeof value !== "object") {
153 return false;
154 }
155
156 return !("type" in value)
157 ? false
158 : typeof Reflect.get(value, "type") === "string";
159};
160
161/**
162 * Map a Resend event to a suppression reason when relevant. Returns
163 * `null` for event types that are not deliverability signals (delivered,
164 * opened, clicked, …).

Callers 1

parseResendBodyFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected