I registered a RegisterAsyncJsObject in the CefSharp ChromiumWebBrowser. This creates an additional JavaScript object instance in the web browser which looks like this:
frame.openWindow(name, data);
frame.navigateToWindow(name, data);
It works great with plain JavaScript. I'm able to access to this object and the methods do their job.
Now I want to program against this object with TypeScript, but the TypeScript compiler doesn't know the types of that object. I tried to create a type definition file of that object, but it doesn't really work. it seems if I import a definition / declaration, what ever, it will override the 'frame' object.
Do you have any idea how to use that object in TypeScript ?
Do I really need to have a type definition for that object? And how does it really work?
Until now I just used TypeScript and already done type definitions, but didn't created definitions by my own.