Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix type definitions for connect#35

Closed
anion155 wants to merge 2 commits intodevelopit:masterfrom
anion155:patch-1
Closed

Fix type definitions for connect#35
anion155 wants to merge 2 commits intodevelopit:masterfrom
anion155:patch-1

Conversation

@anion155
Copy link

@anion155 anion155 commented Nov 1, 2018

No description provided.

Copy link
Owner

@developit developit left a comment

Choose a reason for hiding this comment

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

Sorry for the slow review. I still haven't used TypeScript much so I'm not a great reviewer for definition changes.


interface AdvancedComponentDecorator<TProps, TOwnProps> {
(component: AnyComponent<TProps, {}>): ComponentConstructor<TOwnProps, {}>;
(component: ComponentFactory<TProps>): ComponentConstructor<TOwnProps, {}>;
Copy link
Owner

Choose a reason for hiding this comment

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

Would you be able to shed some light on what issue this solves?

Copy link
Author

Choose a reason for hiding this comment

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

AnyComponent is for Component instances and ComponentFactory for factories. At least it was like so, previously.

@anion155 anion155 closed this Apr 30, 2021
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.

2 participants