Skip to content

Add ability to infer to the simplified form of a type variable#27953

Merged
weswigham merged 2 commits into
microsoft:masterfrom
weswigham:infer-to-simplified-type
Oct 17, 2018
Merged

Add ability to infer to the simplified form of a type variable#27953
weswigham merged 2 commits into
microsoft:masterfrom
weswigham:infer-to-simplified-type

Conversation

@weswigham
Copy link
Copy Markdown
Member

Fixes a break in formik in the user suite. This allows (FormikConfig<Values> & ExtraProps)["initialValues"] to simplify to Values & ExtraProps["initialValues"] (as FormikConfig<Values>["initialValues"] is simply Values) during inference and yield an inference for Values as a naked type parameter in an intersection.

@weswigham weswigham merged commit 9554f09 into microsoft:master Oct 17, 2018
@weswigham weswigham deleted the infer-to-simplified-type branch October 17, 2018 21:44
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants