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

refactor(componentProps): clean up code and improve types #410

Closed
wants to merge 2 commits into from

Conversation

dsseng
Copy link
Contributor

@dsseng dsseng commented Oct 29, 2019

No description provided.

Co-Authored-By: katashin <ktsn55@gmail.com>
| DefaultFactory<T>
| null
| undefined
| (T extends Function ? never : T) // If type of prop is function, only allow factory function
Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure if this makes sense. Actually it seems to break certain cases.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Which ones?

@yyx990803
Copy link
Member

Closing as stale. Thanks for the PR still!

@yyx990803 yyx990803 closed this Jul 15, 2020
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.

4 participants