Currently, I find myself either declaring interfaces directly where I use them or importing them like
import {ISomeInterface} from './somePlace'
. Is there a way to centralize interface declarations in files like something.interface.ts
and use them without needing to import?
For example, when using interfaces declared in @types/node
, we don't have to explicitly import the @types/node
package. Is there a similar approach for custom interfaces as well?