Skip to content

Instantly share code, notes, and snippets.

View wobedi's full-sized avatar
thoughts become things

Yanick J.S. wobedi

thoughts become things
  • San Francisco
View GitHub Profile
@wobedi
wobedi / stripeSubscriptionEvents.ts
Created September 23, 2023 03:54
Stripe Subscription Events
import type { Stripe } from 'stripe';
export type Replace<T, K extends object> = Omit<T, keyof K> & K;
/** https://stripe.com/docs/expand#with-webhooks */
export interface StripeSubscriptionUnexpanded extends Stripe.Subscription {
customer: string;
}
export interface StripeSubscriptionEvent extends Stripe.Event {