I\'ve seen code snippets like these:
export interface IUser { email?: string; firstName?: string; lastName?: string; }
But why
It means they can be there but dont have to be. It allows for optional field names. It can be quite common to use.
An example use is allowing users on a website to have an optional display name.