Skip to content
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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problems with type inference in the face of the any type #74

Open
faassen opened this issue Feb 7, 2019 · 0 comments
Open

problems with type inference in the face of the any type #74

faassen opened this issue Feb 7, 2019 · 0 comments

Comments

@faassen
Copy link
Contributor

faassen commented Feb 7, 2019

When you create a repeatingAccessor or a subForm accessor and you set their type to RepeatingFormAccessor<any,any> or SubFormAccessor<any, any>, typescript loses the ability to recognize that a field exists deeper down in an indexed accessor. It doesn't seem to happen when a repeating/sub form isn't in play.

This may await a big incompatible rework where we do as MST does and make sub/repeating forms declare their MST type just like we ask for forms.

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

No branches or pull requests

1 participant