'Should exported types always be moved to seperate file?

I don't like the idea of having a file with both export type SomeType ... etc. (can be multiple) and an exported class.

But my colleague argues that its a desired way to do this, when this exported type is used within the certain functionality.

For me having to go through multiple exported types definitions until I reach the class itself is not readable. I would always move those to seperate files. But he says different. Is there an official guideline here ?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source