-
-
Notifications
You must be signed in to change notification settings - Fork 181
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
setInput doesn't respect the alias names #648
Comments
|
How about if we provide a more loose function overload? public setInput(input: string, inputValue: unknown): void; I think something similar exists also in Angular repo |
@kfrancois @NetanelBasal what do you think? |
Hi @profanis! Thank you for logging this issue. I think what you propose is the best possible option at the moment. Unfortunately, input aliases are defined as interface InputOptions<ReadT, WriteT> {
alias?: string;
transform?: (v: WriteT) => ReadT; If this were a generic type (or rather, if |
I trust you to reach a solution and open a PR |
Can we close it? |
Sorry for the delay. |
Is this a regression?
Yes
Description
An alias name of the input is not a valid option in the
setInput
function. This causes the test to failPlease provide a link to a minimal reproduction of the bug
https://stackblitz.com/edit/stackblitz-starters-vn8kfk?file=src%2Ftest.spec.ts
Please provide the exception or error you saw
Please provide the environment you discovered this bug in
No response
Anything else?
No response
Do you want to create a pull request?
Yes
The text was updated successfully, but these errors were encountered: