Skip to content

Commit

Permalink
Add deprecated TSDoc tag for dark (#126)
Browse files Browse the repository at this point in the history
* docs: add deprecated tag for `dark`
  • Loading branch information
brankoconjic authored Sep 9, 2024
1 parent 6937f29 commit 3c5c048
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/gentle-tables-tell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@lemonsqueezy/lemonsqueezy.js": patch
---

Added deprecated TSDoc tag for `dark`
5 changes: 5 additions & 0 deletions .changeset/tricky-poets-watch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@lemonsqueezy/lemonsqueezy.js": patch
---

Added "deprecated" TSDoc tag to the `dark` option
10 changes: 6 additions & 4 deletions src/checkouts/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@ type CheckoutOptions = {
terms_privacy_color: string;

/**
* `Deprecated` If `true`, use the dark theme. Use color options
* If `true`, use the dark theme.
* @deprecated Use color options instead.
*/
dark: boolean;
};
Expand Down Expand Up @@ -306,7 +307,7 @@ type Attributes = {
* - `button_color` - A custom hex color to use for the checkout button.
* - `button_text_color` - A custom hex color to use for the text within the checkout button.
* - `terms_privacy_color` - A custom hex color to use for the terms and privacy text on the checkout page. Used only on embedded checkouts.
* - `dark` - Deprecated. If `true`, use the dark theme. Use color options instead.
* - `dark` - If `true`, use the dark theme. Deprecated. Use color options instead.
*/
checkout_options: CheckoutOptions;
/**
Expand Down Expand Up @@ -466,7 +467,7 @@ export type NewCheckout = {
* - `button_color` - A custom hex color to use for the checkout button.
* - `button_text_color` - A custom hex color to use for the text within the checkout button.
* - `terms_privacy_color` - A custom hex color to use for the terms and privacy text on the checkout page. Used only on embedded checkouts.
* - `dark` - Deprecated. If `true`, use the dark theme. Use color options instead.
* - `dark` - If `true`, use the dark theme. Deprecated. Use color options instead.
*/
checkoutOptions?: {
/**
Expand Down Expand Up @@ -554,7 +555,8 @@ export type NewCheckout = {
termsPrivacyColor?: string;

/**
* `Deprecated` If `true`, use the dark theme. Use color options
* If `true`, use the dark theme.
* @deprecated Use color options instead.
*/
dark?: boolean;
};
Expand Down

0 comments on commit 3c5c048

Please sign in to comment.