-
-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
AutoPath
doesn't error on non-existent property
#228
Comments
Thanks for reporting this. I should add a check on |
Actually, if you rollback to version 9.3.10 it works as expected. (You can check it in the codesandbox from above) |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Bad bot. |
This is a duplication for #276 https://codesandbox.io/s/practical-wildflower-8uegn?file=/src/index.ts It will work properly. |
馃悶 Bug Report
Describe the bug
The documentation for
AutoPath
provides two use-cases that should work, and two that should error.The two use-cases that should produce a type error, don't do so.
I have also tried passing a completely bogus, non-dotted path (line 35 in the sandbox), and there is no error produced (is this working as intended? should
AutoPath
only work with dotted paths?).Reproduce the bug
https://codesandbox.io/s/peaceful-leftpad-lbwbg?file=/src/index.ts
Expected behavior
AutoPath
should produce a type errorThe text was updated successfully, but these errors were encountered: