webpack - Typescript: How to use bowser typings? -


i'm updating angularjs project typescript using webpack.

because using bowser in our codebase installed , referenced related typings.

but still after done compiler keeps complaining bowser name unknown.

does know how use bowser typings? worked out of box other libraries.

in separate *.d.ts file (i have 1 miscellaneous shims since many typings terrible), need add line:

declare var bowser: bowsermodule.ibowser; 

for reason typing doesn't include actual instantiated object.


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -