Skip to content

Commit

Permalink
Merge pull request #12 from sagiereder/patch-1
Browse files Browse the repository at this point in the history
make allowedEvents strict
  • Loading branch information
t3dotgg authored Jan 20, 2025
2 parents 0c8b73b + 7255a06 commit 44f7535
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ async function processEvent(event: Stripe.Event) {
If there are more I should be tracking for updates, please file a PR. If they don't affect subscription state, I do not care.
```ts
const allowedEvents = [
const allowedEvents: Stripe.Event.Type[] = [
"checkout.session.completed",
"customer.subscription.created",
"customer.subscription.updated",
Expand All @@ -248,7 +248,7 @@ const allowedEvents = [
"payment_intent.succeeded",
"payment_intent.payment_failed",
"payment_intent.canceled",
] as Stripe.Event.Type[];
];
```
### Custom Stripe subscription type
Expand Down

0 comments on commit 44f7535

Please sign in to comment.