I was refactoring the other people's code. The original fragment was:
this.respondValue$
.subscribe((partForm) => {
this.sale = { ...this.sale, ...partForm };
});
I wanted to introduce unsubscribe here and added takeUntil:
this.respondValue$
.pipe(takeUntil(this.unsubscribe$))
.subscribe((partForm) => {
this.sale = { ...this.sale, ...partForm };
});
After that i've started getting the following error:
(parameter) partForm: unknown: Spread types may only be created from object types.ts(2698)
Is there any fast workaround if i don't want to take care of investigating and describing the exact partForm type?