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

Added className prop #78

Merged
merged 1 commit into from
Oct 18, 2018
Merged

Added className prop #78

merged 1 commit into from
Oct 18, 2018

Conversation

joefatora
Copy link
Contributor

In the other props section of the Readme (https://www.npmjs.com/package/react-moment#other-props) there is an example using className as a prop. However, className wasn't included as a prop in the MomentProps interface, so adding a className prop in a typescript project causes an error.

This adds an optional className string to the MomentProps interface, thus resolving the type error.

@headzoo headzoo merged commit 12adebd into headzoo:master Oct 18, 2018
@headzoo
Copy link
Owner

headzoo commented Oct 18, 2018

Great, thank you!

@headzoo
Copy link
Owner

headzoo commented Oct 18, 2018

Published as react-moment@0.8.2

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

2 participants