I have a typescript file (generated) that is being used in my angular project.
The contents of this file called contracts.ts are as follows:
export module A.B.C.Models {
export class Activity {
prop1: number;
...
}
}
I am attempting to use these classes in another file within the same folder, but I am struggling to correctly import the classes and would also like to create an alias for the overly lengthy module name.
import { Activity } from './contracts';
However, the code does not compile and shows the following error:
Can't find module 'contracts'
Since the file is generated each time our database model changes, I am unable to modify it.
Any assistance would be greatly appreciated. Thank you in advance.