Consider a scenario where there is a file named user.ts containing the following declaration:
export interface User {
userName: string;
}
The task at hand is to import this particular interface from another TypeScript script. However, due to JavaScript's lack of support for interfaces, the transpiler fails to generate the user.js file and an error occurs during the import process.
One potential solution would involve declaring User as a class, but is there a method to define an interface in a separate TypeScript file?