Closed ramarivera closed 5 years ago
The signature of the patchValue method is:
patchValue(value: Partial<T>, options?: { onlySelf?: boolean; emitEvent?: boolean; }): void;
while for the setValue method:
`setValue(value: {
}, options?: { onlySelf?: boolean; emitEvent?: boolean;
}): void;`
Since the patchValue is a Partial<T>, shouldn't the setValue take a value of type T? Or is there something I am missing regarding setValue?
patchValue
Partial<T>
setValue
T
Thanks!
fixed with #20
The signature of the patchValue method is:
patchValue(value: Partial<T>, options?: { onlySelf?: boolean; emitEvent?: boolean; }): void;
while for the setValue method:
`setValue(value: {
}): void;`
Since the
patchValue
is aPartial<T>
, shouldn't thesetValue
take a value of typeT
? Or is there something I am missing regardingsetValue
?Thanks!