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
Post a Comment