Consider a scenario where we define a class as follows:
class House {
street: string;
pools: number;
helicopterLandingPlace: boolean;
}
Now, I have created a service to update my house.
putHouse(house: House) {
// some put request
}
However, there are times when I only want to update specific parts of the house.
patchHouse(house: ?????) {
// some patch request...
}
What would be the most efficient way to declare the variable "house" within the second function?
I appreciate any assistance you can provide in advance!