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 improve/fix component typing #1

Closed
wants to merge 1 commit into from

Conversation

luke-john
Copy link
Owner

No description provided.

@luke-john
Copy link
Owner Author

Waiting on a response on microsoft/TypeScript#17003 before finishing fixing the glamorous component factory typings.

The usage of a union between Partials and Functions resulted in any functions passed to glamorous
component factories being accepted by the type system.  As part of fixing this I also renamed some
types to align with the glamorous documentation.

BREAKING CHANGE: Renamed types `HTMLGlamorousInterface` -> `HTMLComponentFactory`, `StyledFunction`
-> `GlamorousComponentFactory`, `SVGGlamorousInterface` -> `SVGComponentFactory`. Also improved
typesafety on them, so things that previously could have passed will now fail.

212
@luke-john
Copy link
Owner Author

Just need to break this out into discrete commits now.

All working as expected though on this branch.

@luke-john luke-john closed this Aug 1, 2017
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.

1 participant