Skip to content

Commit

Permalink
fix(sdk,main-button): mark backgroundColor and textColor as optional …
Browse files Browse the repository at this point in the history
…in State
  • Loading branch information
heyqbnk committed Oct 1, 2024
1 parent 61cb2fa commit 67b1dd5
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions packages/sdk/src/scopes/components/main-button/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ import type { RGB } from '@telegram-apps/bridge';
export interface State {
/**
* The main button background color.
*
* This value may be missing in case, some specific RGB color was not yet set.
*/
backgroundColor: RGB;
backgroundColor?: RGB;
/**
* True if the Main Button has a shining effect.
*/
Expand All @@ -27,6 +29,8 @@ export interface State {
text: string;
/**
* The main button text color.
*
* This value may be missing in case, some specific RGB color was not yet set.
*/
textColor: RGB;
}
textColor?: RGB;
}

0 comments on commit 67b1dd5

Please sign in to comment.