Let\'s say I have an interface:
interface IUser { email: string; id: number; phone: string; };
Then I have a function that expects a
You can declare some or all fields as optional fields.
interface IUser { email: string; // not optional id?: number; // optional phone?: string; // optional };