Bolisov / google-api-typings-generator

⚠️ This repo is no longer maintained and outdated, use active fork ⚠️
https://github.com/Maxim-Mazurok/google-api-typings-generator
8 stars 5 forks source link

gapi.client.classroom structure is incorrect #5

Open dobesv opened 5 years ago

dobesv commented 5 years ago

You are supposed to access the api via gapi.client.classroom.courses but the typings on DefinitelyTyped suggest you would use gapi.client.courses.

nwshane commented 5 years ago

I'm having this problem as well, and figured out a workaround:

// `gapiclassroom.d.ts` file in my own application
declare namespace gapi.client.classroom {
  const courses: typeof gapi.client.courses;
}
Maxim-Mazurok commented 4 years ago

This repo is abandoned, see #19 and use active fork instead: Maxim-Mazurok/google-api-typings-generator

Please, close this issue if you will, thanks for your cooperation!