These are the 2 interfaces I currently have
export interface Contact {
first_name: string;
last_name: string;
emails?: (EmailsEntity)[] | null;
company: string;
job_title: string;
}
export interface EmailsEntity {
email: string;
label: string;
}
Can you explain what
emails?: (EmailsEntity)[] | null;
means with EmailsEntity
in parentheses?
How is it different from this notation: emails?: EmailsEntity[] | null;
?