01 / 06
Types can go out of the file too
Remember splitting files up by job in the JavaScript course and joining them with export and import? Those two work on types just the same.
The more types you write, the more you end up using the same one over and over. You want the type for a person in the file that makes the data and in the file that shows it. So write it in one place and let everybody fetch it.