I wanted to use the Google's JS API, so I included it into my index.html and installed the typings with typings install dt~gapi --global --save
My IDE (Webstorm), shows me that the variable gapi has auth and client as function, but it shows me no sub-functions of these two. When I include
/// <reference path="../../../typings/globals/gapi/index.d.ts" /> at the top of my Service everything works.
/// <reference path="../../../typings/globals/gapi/index.d.ts" />
export class foo {
constructor() {
gapi.auth.authorize({
//my config
});
}
}
So did I miss anything or is this the right way?