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

cypress/angular-signals support for InputSignalWithTransform #30682

Open
bohoffi opened this issue Nov 27, 2024 · 0 comments
Open

cypress/angular-signals support for InputSignalWithTransform #30682

bohoffi opened this issue Nov 27, 2024 · 0 comments

Comments

@bohoffi
Copy link

bohoffi commented Nov 27, 2024

What would you like?

#29264 brought support for the assignment of pure InputSignal which works fine as long as you do not plan on working with InputSignalWithTransform like:

public readonly enablePreview: InputSignalWithTransform<boolean, unknown> = input(false, {
  transform: booleanAttribute
});

Why is this needed?

The componentProperties of MountConfig<T> from cypress/angular-signals needs to be updated from

componentProperties?: Partial<{
        [P in keyof T]: T[P] extends InputSignal<infer V> ? InputSignal<V> | WritableSignal<V> | V : T[P];
    }>;

to

componentProperties?: Partial<{
        [P in keyof T]: T[P] extends InputSignal<infer V> | InputSignalWithTransform<infer V, unknown> ? InputSignal<V> | WritableSignal<V> | V : T[P];
    }>;

Other

No response

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