import { InputSignal, InputSignalWithTransform } from '@angular/core'; /** * Type design to convert a properties type to its equivalent for Angular signal inputs. * * Example : * ```ts * // For given type, * type MyType = { * foo: string; * bar: boolean; * }; * * // this * type MySignalPropsType = InputSignalProps; * * // is equivalent to : * type MySignalPropsType = { * foo: InputSignal; * bar: InputSignalWithTransform; * } * ``` */ export type InputSignalProps = { [K in keyof T]: NonNullable extends boolean ? InputSignalWithTransform, unknown> : InputSignal; };