I'm dealing with a Typescript file structured like this:
export interface Prisma {
// Members
}
export const Prisma = (): Prisma => {
// returns a object with of type Prisma
};
Both the interface and the constant share the same name within the file, making it tricky to import the interface in another file. How can I work around this issue? Simply writing
import Prisma from './myFile';
seems to always import the exported const
instead of the interface
.