Open
Description
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];
}>;
I'd be willing to provide a PR adding the missing type.