Skip to content

Instantly share code, notes, and snippets.

View FrenchMajesty's full-sized avatar
🎯
Building great applications

Verdi FrenchMajesty

🎯
Building great applications
  • Dallas, TX
View GitHub Profile
@rndD
rndD / sendgrid-webhook-events.type.ts
Last active June 14, 2024 15:22
Sendgrid webhook events ts type
// @see https://docs.sendgrid.com/for-developers/tracking-events/event
// There is a mistake in the offical doc. Category is array of strings. I took it from the real webhook call.
type BaseSendgridEvent = {
email: string;
timestamp: number;
'smtp-id': string;
category: string | string[];
sg_event_id: string;
sg_message_id: string;