Partial | Typescript
- Partial | Typescript
- Coloca todas prop como opicionais '?'
interface Person {
name: string;
age: number;
address: string;
}
type PartialPerson = Partial<Person>;
const partialPerson: PartialPerson = {
name: "John",
age: 25,
};