Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

optimize the definition of props with a more proper way #83

Merged
merged 1 commit into from
Oct 20, 2018
Merged

optimize the definition of props with a more proper way #83

merged 1 commit into from
Oct 20, 2018

Conversation

jadertao
Copy link
Contributor

@jadertao jadertao commented Aug 8, 2018

In this PR, I mainly change ButtonProps#activeStyle from boolean to StyleProp<ViewStyle>


It is because when I run this button demo,
<Button activeStyle={{ backgroundColor: 'red' }}>custom feedback style</Button><WhiteSpace />

TSLint warns me that

不能将类型“{ backgroundColor: string; }”分配给类型“boolean | undefined”。

It's confusing and kind of a mistake.
So I make this PR.

BTW, I correct a little other related code.

@jadertao
Copy link
Contributor Author

jadertao commented Aug 8, 2018

:(
Maybe the CI need a thorough check.
This kind of build failure should not be owed to contributors.

@DavidNorena
Copy link
Contributor

DavidNorena commented Aug 10, 2018

@JadeTao there is something with this command "antd-tools run tsc" I have the same problem too with my PRs :( and the maintainers don't seem to be active in the repository :(

@BANG88 BANG88 merged commit d27b20d into ant-design:master Oct 20, 2018
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.

None yet

3 participants