Is there any way I can make the product in canDisplayConditions also generic?
export interface ViewModel {
canDisplayConditions$: Observable<(_arg: {
product: T; <-- to generic type
}) => boolean>[];
}
canDisplayConditions is an optional parameter, so I wonder if there is a way other than setting the generic type on the Class?
export interface ViewModel<T> {
canDisplayConditions$: Observable<(_arg: {
product: T;
}) => boolean>[];
}