I need to include an InputSignal in my Angular component that only accepts arrays of numbers. Each number in the array should fall between 0.01 and 10, and cannot have more than 2 decimal places.
It is important to enforce these restrictions to ensure that developers are notified if the input does not comply with the specified criteria. How can I define the type of this InputSignal or set constraints to achieve this?
export class MyComponent {
public readonly value: InputSignal<valueType[]> = input<valueType[]>([]);
}