Skip to content

🤖 User test baselines have changed#27941

Closed
typescript-bot wants to merge 1 commit into
microsoft:masterfrom
typescript-bot:user-update-20180903
Closed

🤖 User test baselines have changed#27941
typescript-bot wants to merge 1 commit into
microsoft:masterfrom
typescript-bot:user-update-20180903

Conversation

@typescript-bot
Copy link
Copy Markdown
Collaborator

Please review the diff and merge if no changes are unexpected.
You can view the build log here.

cc @weswigham @sandersn @RyanCavanaugh

Copy link
Copy Markdown
Member

@sandersn sandersn left a comment

Choose a reason for hiding this comment

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

Not sure whether to merge this. I think I will try to update our test code instead.

@@ -0,0 +1,20 @@
Exit Code: 1
Standard output:
index.tsx(33,21): error TS2339: Property 'email' does not exist on type 'object'.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks like a result of jaredpalmer/formik#898

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We should probably update the example as a result. It looks like a lot fewer anys are being inferred.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@weswigham, this is a failure of inference; when I explicitly provide a type argument to <Formik<...> ... everything is fine. Maybe this is a result of JSX call resolution? Mind taking a look?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yeah, I'll look into it.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I've got a fix up: #27953

Previously JSX did some jank with using apparent types when they shouldn't have which is probably what hid the issue.

@@ -0,0 +1,20 @@
Exit Code: 1
Standard output:
index.tsx(33,21): error TS2339: Property 'email' does not exist on type 'object'.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@weswigham, this is a failure of inference; when I explicitly provide a type argument to <Formik<...> ... everything is fine. Maybe this is a result of JSX call resolution? Mind taking a look?

@weswigham weswigham closed this Oct 19, 2018
@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.

3 participants