typescript - Property 'ChildBrowser' does not exist on type -




migrate hybrid mobile project js typescript , got error in console during compilation

error ts2339: property 'childbrowser' not exist on type '{ pushnotification: pushnotification; }

this code

window.plugins.childbrowser.showwebpage(text,                 { showlocationbar: true, showaddress: true, shownavigationbar: true });         } 

but webstorm doesn't highlight error in row.

i created own d.ts file, contains code (bellow) , include file ts file

interface window {     plugins: plugins;      pushnotification: pushnotification; }  interface pushnotification{     emailcomposer: emailcomposer;     childbrowser: childbrowser;     socialsharing: socialsharing; }  interface childbrowser{     showwebpage: any; }  interface socialsharing {  } interface emailcomposer{     showemailcomposerwithcallback(fu: any, ... fu2: any[]): any; }  interface plugins {     emailcomposer: emailcomposer;     childbrowser: childbrowser;     socialsharing: socialsharing;  } 

unfortunately still message

8 non-emit-preventing type warnings
type errors only.

typescript compilation complete: 3.98s 23 typescript files.

done, without errors.

process finished exit code 0

please, can me?
regards


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -