Skip to content

Commit

Permalink
fix(updateSubscription): pause is not nullable (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
kldzj authored Apr 19, 2024
1 parent 8603bae commit 09fdd1a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/quick-planets-know.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@lemonsqueezy/lemonsqueezy.js": patch
---

Made `UpdateSubscription`.`pause` nullable
2 changes: 1 addition & 1 deletion src/subscriptions/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ export type UpdateSubscription = Partial<{
pause: {
mode: "void" | "free";
resumesAt?: string | null;
};
} | null;
/**
* Set as `true` to cancel the subscription. You can resume a subscription (before the `ends_at` date) by setting this to `false`.
*/
Expand Down

0 comments on commit 09fdd1a

Please sign in to comment.