Skip to content

Support Input name alias on componentInputs #389

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

Closed
lacolaco opened this issue May 29, 2023 · 0 comments · Fixed by #391
Closed

Support Input name alias on componentInputs #389

lacolaco opened this issue May 29, 2023 · 0 comments · Fixed by #391

Comments

@lacolaco
Copy link
Contributor

lacolaco commented May 29, 2023

Currently, input name aliasing is not supported because componentInputs is typed as Partial<ComponentType>.
For aliased inputs, the first argument of fixture.componentRef.setInput must be the alias name rather than its property name.
This is just a typing problem.

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 a pull request may close this issue.

1 participant