Skip to content

Improve type of PropertiesFor#53

Open
checkraisefold wants to merge 1 commit into
ffrostfall:mainfrom
checkraisefold:fixed-create-type
Open

Improve type of PropertiesFor#53
checkraisefold wants to merge 1 commit into
ffrostfall:mainfrom
checkraisefold:fixed-create-type

Conversation

@checkraisefold
Copy link
Copy Markdown

This makes the PropertiesFor type function return a more accurate type to what is actually accepted by fluid's evaluator by improving children in the table along with allowing the entire properties type to be nested.

For example, this code will no longer throw a type error:

return function(props: fluid.PropertiesFor<"ImageButton">)
	return create "ImageButton" {
		props,
	}
end

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