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

[WIP] more types #800

Closed
wants to merge 0 commits into from
Closed

[WIP] more types #800

wants to merge 0 commits into from

Conversation

longlho
Copy link
Member

@longlho longlho commented Feb 3, 2017

Before submitting a PR please:

  • Make sure you have based your branch off the dev branch.
  • Submit your PR against the dev branch.
  • Run npm run build and check that the build succeeds.
  • Ensure that the PR hasn't been submitted before.

PR Template

Objective

Adds more types, fixes #798

@@ -44,6 +44,14 @@ export interface ComponentLifecycle<P, S> {
componentWillUnmount?: () => void;
}

export type SFC<P> = StatelessComponent<P>;
Copy link
Contributor

Choose a reason for hiding this comment

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

While it's more verbose. In terms of DX I think that only using StatelessComponent<P> would be better. I think it will avoid a lot of questions with "What's SFC mean?" for new contributors.

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah either way is fine for me. SFC has been in React for a while

Copy link
Member

@Havunen Havunen left a comment

Choose a reason for hiding this comment

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

@longlho Is this ready for merge or still more work needs to be done?

textPath: SVGProps;
tspan: SVGProps;
use: SVGProps;
view: SVGProps;
Copy link
Member

Choose a reason for hiding this comment

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

what about xlink:href: SVGProps; ?

@longlho
Copy link
Member Author

longlho commented Feb 8, 2017

@Havunen this is pretty far from ready :( I'm still workin on it. I'll take the WIP tag away once it's ready

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants