I am reading the following code:
export interface Contact {
contactOptions?: string[];
}
const mapToContact: (
value: Record<string, any>
) => Contact = (value) => {
return {
...
}
};
..and I don't understand of the instruction:
Contact = (value)
What does it mean? 'Contact' is an interface, why is that expression not :
(value: Contact)
I am confused by this function declaration, can anyone help me understand? Thanks