error TS2652: Merged declaration ‘
MyPerson‘ cannot include a default export declaration. Consider adding a separate ‘
export default MyPerson‘ declaration instead.
Broken Code ❌
Fixed Code ✔️
You cannot use the same name to declare a constant and a function. If your intention is to export your constant, then do the following: