Skip to content

Add type to inner components#374

Merged
Mortaro merged 1 commit intonullstack:nextfrom
GuiDevloper:type-inner-component
Aug 22, 2023
Merged

Add type to inner components#374
Mortaro merged 1 commit intonullstack:nextfrom
GuiDevloper:type-inner-component

Conversation

@GuiDevloper
Copy link
Member

TL;DR:

Details

This PR makes the inner components to be typed exactly like Nullstack['render'], meaning errors will appear when them are typed differently of that (i.e.: what would be undefined nodes).

PS: It was developed together with what would become the savior for inner components types declaration (i.e. declare function Head(): NullstackNode). That is more complex and will be presented in another time (probably as a RFC community proposal)

@Mortaro Mortaro merged commit 5b7f49f into nullstack:next Aug 22, 2023
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