so i wanna have each object property interface to have a value property set as true by default
const defaultValue: Pick<Rules['*'], 'value'> = {
value: true
}
interface Rules {
required?: {
value: true
applyTo: string[]
}
email?: {
value: true
applyTo: string[]
}
alpha?: {
value: true
applyTo: string[]
}
minlength?: {
value: number
applyTo: string[]
}
}
i guess something like this would be usefule and just replace all value:true => ...defaultValue