Skip to content

fix: correct types for PickerStyle interface#528

Merged
lfkwtz merged 1 commit intolawnstarter:masterfrom
stevebutler2210:issue_527_style_type_amends
Nov 14, 2023
Merged

fix: correct types for PickerStyle interface#528
lfkwtz merged 1 commit intolawnstarter:masterfrom
stevebutler2210:issue_527_style_type_amends

Conversation

@stevebutler2210
Copy link
Copy Markdown
Contributor

The previous typings for the PickerStyle interface were restrictive, preventing valid passing of arrays of styles to each of the attributes.

Updating these to use StyleProp<XStyle> ensures valid arrays of style objects are accepted.

Fixes: #527

The previous typings for the `style` prop were restrictive, preventing valid passing of arrays of styles to each of the attributes.

Updating these to use `StyleProp<XStyle>` ensures valid arrays of style objects are accepted.

Fixes: lawnstarter#527
Copy link
Copy Markdown

@mimitch2 mimitch2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lfkwtz lfkwtz merged commit cf87c9d into lawnstarter:master Nov 14, 2023
@stevebutler2210 stevebutler2210 deleted the issue_527_style_type_amends branch November 14, 2023 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Typing doesn't permit arrays when supplying style overrides

3 participants