Upon closer examination the file generated together with the .js file built by JaySvcUtil -- in my case called BO_Data.d.ts cannot resolve the two references to $data.IPromise. This started happening after I added a new table in the database, regenerated my .edmx model in Visual Studio and then regenerated the entity model with JaySvcUtil.exe.
declare module WcfService1 {
export class BOLOEntities extends $data.EntityContext {
onReady(): $data.IPromise;
onReady(handler: (context: BOLOEntities) => void): $data.IPromise;
In the console I see this error: typeOrName requires a value other than undefined or null at this line in my code:
window['bolo'] = new WcfService1.BOLOEntities(oProviderConfig);
Thanks in advance!
P.S. I did this, but it didn't help: TypeScript compile errors with JayData library and JaySvcUtil generated code